Tutorials Navigation
How to Build a LAMP Server
Tutorial Name: How to Build a LAMP Server
Category: PC Tutorials
Submitted By: Ry-Nasty
Date Added:
Comments: 0
Views: 1,658
Related Forum: PC Building Forum
Share:
1
Get the hardware requirements for your server. More sophisticated sites need more power.
2
Get the necessary upload speed from your service provider. A default home internet upload speed is only around 1mb per minute. This may be too slow for graphics, videos, etc.
3
Install a version of Linux. Before you can build a LAMP server, you must have the Linux operating system. Visit Ubuntu and download a version for free. Unfortunately, this will not have a graphical user interface. You will have to use the command line to install the operating system. These instructions work with Ubuntu Linux.
4
Install Apache on the server. Apache is a free and open-source web server that is well-known for running on Unix operating systems. There are two ways of installing Apache. You can use your console or a terminal window session.
At the command prompt, type: sudo apt-get install apache2
In order to keep installing Apache, you will have to have your sudo password.
5
Verify that Apache is operating. Youll have to point your browser to the servers IP address. This will let you know if Apache is running or not.
6
Install PHP on the server. PHP is a scripting language that was originally used for creating dynamic web pages. However, developers use it to create individual graphical applications while network and system administrators use PHP for command line interface abilities.
At the command prompt, type: sudo apt-get install php5 libapache2-mod-php5
7
Make sure PHP is completely installed.
Restart Apache by typing at the command prompt:sudo /etc/init.d/apache2 restart
8
Confirm PHP is working correctly.
Use the Apache document root to create a test file. The root will be /var/www. Your test file names extension must end with a .php.
For the content, type: < ?php phpinfo(); ?>
9
Save the test file.
Then point your browser to the following address: [ Register or Signin to view external links. ]
Make sure you type your servers IP address before /test.php.
10
Verify your test file. The browser should display, Test PHP Page on the screen.
11
Install MySQL on the server. MySQL stands for My Structured Query Language. MySQL is a relational database program. This application operates as a server, in which multiple users can access many databases. There are many software applications that use MySQL, such as WordPress. Even Google and Facebook use MySQL.
At the command prompt, type: sudo apt-get install mysql-server
12
Create a password for MySQL.
In the command line, type: mysql -u root
You should then see a command prompt that will look like mysql>
At the command prompt, type: SET PASSWORD FOR 'root'@'localhost' = PASSWORD('YOURPASSWORD');
Enter your password where it shows YOURPASSWORD. This will be the one that you will use as a MySQL user.
13
Start your MySQL server. Type the following command: /etc/init.d/mysql start
14
Start working with your LAMP server.
Hope this helps.
Enjoy! - Nasty
Get the hardware requirements for your server. More sophisticated sites need more power.
2
Get the necessary upload speed from your service provider. A default home internet upload speed is only around 1mb per minute. This may be too slow for graphics, videos, etc.
3
Install a version of Linux. Before you can build a LAMP server, you must have the Linux operating system. Visit Ubuntu and download a version for free. Unfortunately, this will not have a graphical user interface. You will have to use the command line to install the operating system. These instructions work with Ubuntu Linux.
4
Install Apache on the server. Apache is a free and open-source web server that is well-known for running on Unix operating systems. There are two ways of installing Apache. You can use your console or a terminal window session.
At the command prompt, type: sudo apt-get install apache2
In order to keep installing Apache, you will have to have your sudo password.
5
Verify that Apache is operating. Youll have to point your browser to the servers IP address. This will let you know if Apache is running or not.
6
Install PHP on the server. PHP is a scripting language that was originally used for creating dynamic web pages. However, developers use it to create individual graphical applications while network and system administrators use PHP for command line interface abilities.
At the command prompt, type: sudo apt-get install php5 libapache2-mod-php5
7
Make sure PHP is completely installed.
Restart Apache by typing at the command prompt:sudo /etc/init.d/apache2 restart
8
Confirm PHP is working correctly.
Use the Apache document root to create a test file. The root will be /var/www. Your test file names extension must end with a .php.
For the content, type: < ?php phpinfo(); ?>
9
Save the test file.
Then point your browser to the following address: [ Register or Signin to view external links. ]
Make sure you type your servers IP address before /test.php.
10
Verify your test file. The browser should display, Test PHP Page on the screen.
11
Install MySQL on the server. MySQL stands for My Structured Query Language. MySQL is a relational database program. This application operates as a server, in which multiple users can access many databases. There are many software applications that use MySQL, such as WordPress. Even Google and Facebook use MySQL.
At the command prompt, type: sudo apt-get install mysql-server
12
Create a password for MySQL.
In the command line, type: mysql -u root
You should then see a command prompt that will look like mysql>
At the command prompt, type: SET PASSWORD FOR 'root'@'localhost' = PASSWORD('YOURPASSWORD');
Enter your password where it shows YOURPASSWORD. This will be the one that you will use as a MySQL user.
13
Start your MySQL server. Type the following command: /etc/init.d/mysql start
14
Start working with your LAMP server.
Hope this helps.
Enjoy! - Nasty
Ratings
Comments
Related Tutorials
- 01. Emulating Xbox 360 on PC for Running COD4 With Mods(3,492)
- 02. How to: Matrix Numbers | Batch File(1,903)
- 03. How to Password Protect Files on Windows(857)
- 04. How to play Socom 2/3/ and Combined Assault on PC(6,716)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(6,133)
- 06. How to embed an image on TheTechGame(3,098)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(12,981)
- 08. Host bot lobbies! Full Tutorial!(11,243)
- 09. Unban yourself [Plutonium BO2](14,240)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,385)
- 11. Best Crosshair Settings for Valorant(6,525)
- 12. Othercide The Surgeon Boss Guide(2,539)
- 13. Othercide Remembrances Unlock Guide(4,460)
- 14. Othercide Beginners Tips and Tricks(2,708)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,845)
"How to Build a LAMP Server" :: Login/Create an Account :: 0 comments