HubsInfo Network

Salvage Area => Operating systems => Servers and Networking [IT & Datacenter] => Linux => Topic started by: hubsinfo on October 26, 2015, 08:10:44 PM

Title: Installing LAMP (Linux, Apache, MySQL and PHP) On Linux Mint
Post by: hubsinfo on October 26, 2015, 08:10:44 PM
Install Apache
Code: [Select]
sudo apt-get install apache2Testing Apache
Open your web browser and type: http://localhost/


Install PHP
Code: [Select]
sudo apt-get install php5 libapache2-mod-php5
Code: [Select]
sudo /etc/init.d/apache2 restart*In order for PHP to work and be compatible with Apache we must restart it.
Test PHP
Code: [Select]
sudo gedit /var/www/testphp.phpThis 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
Code: [Select]
sudo apt-get install mysql-server
Code: [Select]
gksudo gedit /etc/mysql/my.cnfChange the line: bind-address = 127.0.0.1 and change the 127.0.0.1 to your IP address.

Install phpMyAdmin:
Code: [Select]
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
Code: [Select]
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
Code: [Select]
sudo /etc/init.d/apache2 restart
Done!




--
Ref: http://community.linuxmint.com/tutorial/view/486