Install Apache PHP mysql_php tutorial on Ubuntu 7.04 system

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

  • 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.