In the past few days, I started a PHP project and installed Ubuntu8.04. It took me some time to build a basic support environment. Zend optimization is not applied yet, so the installation of zendoptimizer is not involved here. In fact, the installation in Ubuntu8.04 is far easier than setting in Windows, and setting in a terminal is easier. 1. Install the Apache service sudoapt-getinstallapache2 and follow the prompts to complete apah
In the past few days, I started a PHP project and installed Ubuntu8.04. It took me some time to build a basic support environment. Zend optimization is not applied yet, so zend optimizer installation is not involved here. In fact, the installation in Ubuntu8.04 is far easier than setting in Windows, and setting in a terminal is easier.
1. Install the Apache service
Sudo apt-get install apache2
Then, follow the prompts to install apahce. You can enable http: // 127.0.0.1 to view It works
2. Install php5
Sudo apt-get install php5
Sudo apt-get install libapache2-mod-php5
Sudo/etc/init. d/apache2 restart
After OK, let's see if it takes effect.
Gksudo gedit/var/www/testphp. php
Inbound Probe
Save run
Http: // 127.0.0.1/testphp. php
3. Install mysql
Sudo apt-get install mysql-server
After installation is complete, follow the prompts to set the root password
4. Make apache and php support mysql
Sudo apt-get install libapache2-mod-auth-mysql
Sudo apt-get install php5-mysqlsudo/etc/init. d/apache2 restart
Now The apache2 + php 5.2.4.2 + mysql5.0.51 environment is complete.