Are you fan of PHP? Want to use it MySQL within Linux OS ?
MEAN Stack is the best thing out there for you.
What does LAMP Means ?
L = Linux
A = Apache (Web Server)
M = MySql
P = PHP
Similarly in Windows WAMP Exists.
Moving Forward,
You need to Install Apache
sudo apt-get update
sudo apt-get install apache2
Step Two - Install MySQL
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
It will ask you for MySQL Server Password, Set one for you.
Now activate it with this command
sudo mysql_install_dbNow run the script
sudo /usr/bin/mysql_secure_installationEnter password for root
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Step 3 - Install PHP
sudo apt-get install php5 libapache2-mod-php5 php5-mcryptIt may also be useful to add php to the directory index, to serve the relevant php index files:
sudo nano /etc/apache2/mods-enabled/dir.conf
Well Now PHP Is installed, if you want to install its modules use this command
sudo apt-get install {name of the module}
Congratulations !!
To Restart Apache, Use
sudo service apache2 restart