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.