Apache 2
To install Apache server type the following command in terminal.
sudo apt-get install apache2
When it says "Do you want to continue [Y/n]?" just press ENTER.
After installation is finished test it on your browser - "http://localhost". If it shows --
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
That means your server installation is working fine.
Changing document root see.
PHP 5
To install PHP type following command on terminal.
sudo apt-get install php5 libapache2-mod-php5
Then restart Apache Server using
sudo /etc/init.d/apache2 restart
MySQL 5
To install MySQL 5 put the following command on the terminal.
sudo apt-get install mysql-server mysql-client
After intalling MySQL you will need to install another package which will help PHP to connect with MySQL.
Type following command on the terminal for that package.
sudo apt-get install php5-mysql
To install phpmyadmin use the following command
sudo apt-get install phpmyadmin
Also, by default the phpmyadmin script is installed in /usr/share/phpmyadmin, a directory that isn't access from Apache. You'll want to do the following to get http://localhost/phpmyadmin to work
cd /var/www sudo ln -s /usr/share/phpmyadmin phpmyadmin
Comments (0)
Post a Comment