Install Apachesudo apt-get install apache2
Testing ApacheOpen your web browser and type:
http://localhost/Install PHPsudo apt-get install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
*In order for PHP to work and be compatible with Apache we must restart it.Test PHPsudo gedit /var/www/testphp.php
This will open up a file called phptest.php.
Copy/Paste this line into the phptest file:
Now open you're web browser and type the following into the web address:
http://localhost/testphp.phpInstall MySQLsudo apt-get install mysql-server
gksudo gedit /etc/mysql/my.cnf
Change the line: bind-address = 127.0.0.1 and change the 127.0.0.1 to your IP address.
Install phpMyAdmin: sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
gksudo gedit /etc/php5/apache2/php.ini
Get PHP to work with MySQL:
Change this line:
;extension=mysql.so to look like this:
extension=mysql.so...restart Apache
sudo /etc/init.d/apache2 restart
Done!
--
Ref:
http://community.linuxmint.com/tutorial/view/486