Install APACHE + PHP + MYSQL in Ubuntu7.04

Source: Internet
Author: User
Tags movable type
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.