Due to the need for learning, I moved the site development environment from windows to the Ubuntu,ubuntu before and found no difficult place, as long as Baidu generally have a solution. But it's always known that Ubuntu is a collection of open source software, and because of the version of the problem many online tutorials are no longer applicable. It took 2 hours today to configure the Eclipse,tomcat,mysql,phpadmin installation properly. Here only the problem of the relatively large MySQL and Phpadmin installation methods recorded, for future reference.
1. Install Apache.
ubuntu14.04 seems to be bringing Apache, or it may be the same time I installed what software, but the installation is also very simple, as follows:
sudo apt-get install apache2
Open http://localhost/with Firefox, the interface displays "it works", OK.
Remember, the restart command is sudo/etc/init.d/apache2 restart
2. Install PHP.
Some people say I do not have PHP, I just want to use MySQL GUI only, there is no need to be so troublesome. I have been to find some of the graphical interface before others to share the experience of the client can not be used, the new version of Mysql-bench I do not understand, simply directly with phpMyAdmin, this page display, is also very intuitive, recommended.
sudo apt-get install php5sudo apt-get install libapache2-mod-php5sudo/etc/init.d/apache2 restart
Watch this step! Because of the version problem now the page in the HTML folder, placed directly under the WWW folder cannot be displayed successfully. Of course, this can also be solved by the configuration file, I think this is more convenient.
Test:
sudo gedit/var/www/html/test.php
Write
<?phpphpinfo ();? >
, then save, open http://localhost/test.php, display PHP configuration information on ok!
3. Install MySQL Database
sudo apt-get install Mysql-server
Wait until the popup password input, enter the password note login mysql command for:
Mysql-u root-p
To have PHP work with MySQL, edit
Uncomment the extension=msql.so, save the file, and then restart Apache.
4. Installing phpMyAdmin
sudo apt-get install phpMyAdmin
Installation is complete, browser access to Http://localhost/phpmyadmin does not open the database management interface, because the phpMyAdmin folder is not in the/var/www/html/folder, this time with a soft connection is good
Cd/var/www//htmlsudo ln-s/usr/share/phpmyadmin
Visit again Http://localhost/phpmyadminYes, the account password here refers to your MySQL account password.
This completes the installation process.