How to Remove the Legend Colour Box in Chart JS
What is the fixed GST rate for foods ?
What is the fixed GST rate for foods ?
How to send attachments with PHP Mail?
Enable & Disable a Div and its elements in Javascript
LAMP: Linux, Apache, MySQL, and PHP
LAMP stack is a group of open source software used to get web servers up and running. Since the server is already running CentOS, the linux part is taken care of. Here is how to install the rest.
1. Install Apache
sudo apt-get update
sudo apt-get install apache2
Testing Apache
To make sure everything installed correctly we will now test Apache to ensure it is working properly.
Open up any web browser and then enter the following into the web address:
http://localhost/
You should see a folder entitled apache2-default/. Open it and you will see a message saying "It works!” congrats to you! Or something like that!
2. Install PHP
In this part we will install latest version of PHP
sudo apt-get install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
Test PHP
To ensure there are no issues with PHP let's give it a quick test run.
sudo gedit /var/www/testphp.php
It will open a file testphp.php.
<?php phpinfo(); ?>
Install MySQL
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
Enter current password for root (enter for none):
OK, successfully used password, moving on...
After Installing the Mysql, your system is ready for developing a PHP application. Congratulations
Next Topic