Thursday, December 6, 2018

LAMP setup on Ubuntu Computer


Our Timesheet Script uses PHP and MySQL. Almost all the Hosting services are providing Linux hosting with PHP and MySQL setup at very low cost.

So our Timesheet script can be easily installed on any such hosting servers. But if anyone wants to install it on their own computer running Linux OS (e.g Ubuntu) they have to setup LAMP i-e [Linux + Apache + MySQL + PHP]

It can be done easily by simply following below steps.

Install Apache by running below Commands.

sudo apt-get update
sudo apt-get install apache2


Install MySQL by running below command.
sudo apt-get install mysql-server
While installing MySQL server you need to give the password. Make note of this password which will be required while installing timesheet script.


Install PHP by running below command.

sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql

You can use the ServerName Directive in the file /etc/apache2/apache2.conf to specify your server IP Address or domain name so that it can be accessed from other computers as well.

You can use the phpmyadmin tool to access the MySQL databases easily through the web. You can install it by running below command.

sudo apt-get install phpmyadmin apache2-utils
You have to speciy your MySQL server password while setting up the phpmyadmin.
After completing the installation, you have to include the phpmyadmin to the Apache configuration by including below line into /etc/apache2/apache2.conf

Include /etc/phpmyadmin/apache.conf

You can restart Apache by running below command.
sudo systemctl restart apache2

Once after completing the LAMP setup you can just run the install script of the Timesheet.

No comments:

Follow By Email