Ubuntu 14.04 Configuration lamp+phpmyadmin PHP development environment!
Install the Apache Web server first, Terminal: sudo apt-get install apache2 apache2-doc, and then test if the installation is successful. Browser address bar Input: http://localhost, enter, the appearance of the display is the success!
Next install PHP5 and Apache PHP module, terminal: sudo apt-get install php5 libapache2-mod-php5. Restart Apache service to make PHP module effective, terminal: sudo service apache2 restart. To test if the PHP5 is installed successfully, first edit a test file, Terminal: sudo vim/var/www/html/phpinfo.php, enter the following:
[PHP] view plaincopy
-
- Phpinfo ();
- ?>
Save, and then enter in the browser address bar: http://localhost/phpinfo.php, the content indicates that the installation was successful!
Install MySQL database, terminal: sudo apt-get install Mysql-server mysql-client, the installation process will prompt to set the password, set one and remember!
Install MySQL interface management phpMyAdmin, Terminal: sudo apt-get install phpMyAdmin, the installation process will be prompted to select the Web server, check Apache, enter, will also prompt to set the password! phpMyAdmin after installation, not in the Apache default path, need to establish a connection, terminal: sudo ln-s/usr/share/phpmyadmin/var/www/html, restart Apache server, browser open:/http Localhost/phpmyadmin, the Sign-in page appears indicating the installation was successful!
Enter the password you just set, click ' Execute ' in the bottom right corner to log in!
Prompt after login, mcrypt Error! Terminal execution: sudo php5enmod mcrypt,
Then restart Apache, log in again phpMyAdmin normal!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.