1, install Apache2 + PHP5 + MySQLsudoapt-getinstallapache2libapache2-mod-php5php5php5-gdmysql-serverphp5-mysqlphpmyadminjoelhy reminder that this step can be used to install the new, the same effect. Open the new version, edit it, and use the task group to mark the software package. Select the LAMPS check box.
1. Install Apache2 + PHP5 + MySQL
Sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql phpmyadmin
Joelhy reminds us that this step can be installed with the new version, with the same effect.
Open new, edit, and use the task group to mark the software package. Select LAMP Server.
Then install phpmyadmin separately.
Sudo apt-get install phpmyadmin
2. Enable mod_rewrite module
Sudo a2enmod rewrite
3. Configure apache2.conf
Sudo gedit/etc/apache2/apache2.conf
Remove the comment "#" before AddHandler cgi-script. cgi.
Then add such a segment in any place:
& Servers
Sudo/etc/init. d/apache2 restart
Done.
Note: PHP programs can be stored in/var/www/, and CGI programs can be stored in/var/www/cgi-bin.
Isn't it too simple? It takes less than one minute to complete the configuration except for the download time. Do I still need an APM package on Ubuntu? Remember the following commands and positions.
Sudo/etc/init. d/apache2 restart (restart apache)
Sudo gedit/etc/php5/apache2/php. ini (configure php. ini)
Sudo gedit/etc/apache2/apache2.conf (configure apache2.conf)
/Var/www/(home directory location)
The above server configuration can be tested to run WordPress, Habari, and Movable Type normally.