HubsInfo Network
Social PHP Linux Material Design Web Hosting Online Games SimCity BuildIt

Installing LAMP (Linux, Apache, MySQL and PHP) On Linux Mint

0 Members and 1 Guest are viewing this topic.


Installing LAMP (Linux, Apache, MySQL and PHP) On Linux Mint
« 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 = and change the 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: ; to look like this:

...restart Apache
Code: [Select]
sudo /etc/init.d/apache2 restart

« Last Edit: October 26, 2015, 08:26:05 PM by hubsinfo »


Linux Ubuntu Guides Linux games -