First thing we need to get is an old PC or New and must be able to connect to the internet.
When we get a Pc if it does not have a Linux OS installed we must install one . I recommend Ubuntu. It can be downloaded from this link http://www.ubuntu.com/download/desktop. When downloaded then burn it to a CD then install it on your Pc.
Now after we install the Linux OS we then have to set up the Apache web server. First open up the command terminal (Keyboard Shortcut: Ctrl + Alt + T ) and type in sudo apt-get install apache2
Apache should automatically start. If it doesn’t, use the following command sudo/etc/init.d/apache2 start. Open up a browser and point it to the IP address 127.0.0.1 or domain of the server to get the famous “It works!” page.
Next we install the php package, php is a scripting language and is used in web programming. To start the install enter sudo apt-get install php5 libapache2-mod-php5 into the command terminal. When the install is complete enter sudo /etc/init.d/apache2 restart into the command terminal to restart the Apache server.
- Next is to test the php. Create a new file called test.php. Save that file and place it in /var/www/. Now, open up your browser to the address http://ADDRESS_OF_SERVER/test.php. You should see “Test PHP Page” in the browser. You should see “Test PHP Page” in the browser.
The final stage of the LAMP installation we must install MySQL which is a database application. Enter sudo apt-get install mysql-server command terminal. The next step is to log into MySQL in the following steps.
- Log into MySQL with the command mysql -u root -p.
- As no password has been configured, you will only need to hit enter when prompted for the password.
- Enter the command SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD (‘YOURPASSWORD’);Where YOURPASSWORD is the password you want to use for the administrative user.
- Now quit the MySQL prompt by issuing the command quit and hitting enter.
- Start the MySQL server with the command sudo /etc/init.d/mysql start.