Install APACHE + PHP + MYSQL in Ubuntu7.04

Source: Internet
Author: User
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 LAMPServer 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:

& <60; & <60; & <60; DocumentRoot/var/www/
& <60; & <60; & <60;
& <60; & <60; & <60; & <60; & <60; Options FollowSymLinks
& <60; & <60; & <60; & <60; & <60; AllowOverride all
& <60; & <60; & <60;
& <60; & <60; & <60;
& <60; & <60; & <60; & <60; & <60; Options ExecCGI
& <60; & <60; & <60;
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.