HubsInfo Network
Salvage Area => Operating systems => Servers and Networking [IT & Datacenter] => Linux => Topic started by: hubsinfo on October 26, 2015, 08:10:44 PM
-
Install Apache
sudo apt-get install apache2
Testing Apache
Open your web browser and type: http://localhost/
Install PHP
sudo 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 PHP
sudo 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.php
Install MySQL
sudo 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