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.

hubsinfo

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 = 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
« Last Edit: October 26, 2015, 08:26:05 PM by hubsinfo »

 


Linux Ubuntu Guides Linux games - Lutris.net