1, installation Apache2+php5+mysql
sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql phpMyAdmin
Joelhy reminds you that this step can be installed using the new stand, the same effect.
Open new Rieter, edit –> Use Task group tagging package –> tick LAMP Server
And then install the phpMyAdmin separately.
sudo apt-get install phpMyAdmin
2. Enable the Mod_rewrite module
sudo a2enmod rewrite
3, Configuration apache2.conf
sudo gedit/etc/apache2/apache2.conf
Remove the comment "#" before the AddHandler cgi-script. CGI.
Then add the paragraph anywhere:
DocumentRoot "/var/www/"
Options FollowSymLinks
AllowOverride None
Restarting the server
Sudo/etc/init.d/apache2 restart
Get.
Description: PHP program put/var/www/below all can, CGI program put/var/www/cgi-bin/below.
Is it too simple to remove the download time, or a minute to complete the configuration, on Ubuntu also need APM package? Just remember the following commands and locations.
Sudo/etc/init.d/apache2 Restart (restart Apache)
sudo gedit/etc/php5/apache2/php.ini (config php.ini)
sudo gedit/etc/apache2/apache2.conf (config apache2.conf)
/var/www/(home directory location)
Above server configuration, tested to run WordPress, Habari, movable Type correctly.
http://www.bkjia.com/PHPjc/446784.html www.bkjia.com true http://www.bkjia.com/PHPjc/446784.html techarticle 1. Install apache2+php5+mysql sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql Phpmyad Min Joelhy reminds you that this step can be installed using the new stand ...