Install and configure Apache + PHP + MySQL in Ubuntu7.10

Source: Internet
Author: User
This article has been tested and modified many times to complete the installation and configuration of Apache + PHP + MySQL in Ubuntu7.10 all work. 1. Install Apache2 + PHP5 + MySQLsudoapt-getinstallapache2libapache2-mod-php5php5php5-gdmysql-serverphp5-mysqlphpmyadmin in Ubuntu7.10

This article has completed many tests and modifications to install and configure Apache + PHP + MySQL in Ubuntu7.10.


1. Install Apache2 + PHP5 + MySQL in Ubuntu7.10

Sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql phpmyadmin
When downloading and automatically installing the configuration, a box will pop up asking you to enter the password !! Remember the password

2. Enable mod_rewrite module

Sudo a2enmod rewrite
3. Configure the website directory

Sudo gedit/etc/apache2/sites-available/default

------------------ By default, you will see
NameVirtualHost *

ServerAdmin webmaster @ localhost

DocumentRoot/var/www/

Options FollowSymLinks
AllowOverride None

------------------ Let's change it to another place ~~ That is, the custom location.
NameVirtualHost *

ServerAdmin webmaster @ localhost

DocumentRoot/home/felix/www/

Options FollowSymLinks
AllowOverride None


------------------ Have you seen it? This is stored in the www folder of your username under home.

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.