1. SSH into your server and login as root with this command
su
2. Update your repositories list
apt-get update
3. Install Apache
apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils
4. Install PHP
apt-get install php5 libapache2-mod-php5 php5-common php5-gd php5-mysql php5-imap php5-cli php5-cgi php-pear php-auth
5. Install MySQL
apt-get install mysql-server mysql-client
when MySQL is being installed you will be prompted to supply a root password
6. Install PhpMyAdmin
apt-get install phpmyadmin
follow the wizard and configure phpmyadmin
7. Installation finished, now restart the servers
/etc/init.d/mysql restart /etc/init.d/apache2 restart
8. Create a new PHP file /var/www/index.php and paste the code below
< php phpinfo(); >
Good job, you are finished, view your website in the browser, you can also login to phpymadin
http://localhost/phpmyadmin
0 comments:
Post a Comment