Forum > Blogs > Configuring a LAMP Server
Configuring a LAMP Server
avatar
Country: US
Comments: 6470
News Posts: 413
Joined: 2008-06-21
 
Mon, 27 Oct 2008 03:47:48
0

This is a tutorial on how to configure a LAMP (Linux Apache, MySQL and PHP) server from start to finish.  For space and simplicity's sake, it is assumed you already have a partition available and formatted for a Linux installation.


The first task is a Linux distribution.  There are many choices available, and the effectiveness varies on your purpose.  For large servers, Red Hat is very popular.  For our tutorial, we'll be using Damn Small Linux (DSL).


You'll need to get the ISO from the DSL download page.  Once downloaded, burn the ISO image to a CD.  If you don't have a program to do this, DeepBurner is a great free program.


The CD will be used as a boot disc.  It should automatically load, but if it does not, you need to set your BIOS settings to boot from CD before the harddrive.  You get to the BIOS by pressing either DEL, F2 or F10 (depending on which BIOS you're using).


Once DSL has loaded, you want to right-click the desktop and choose to install to harddrive then go through the steps.


Restart and load DSL.  Start Firefox and go to the XAMPP for Linux page and download the .tar.gz file.


Open a terminal window now, and copy the file to /opt (the following command assumes you saved the file to /root.  It could have been saved somewhere else.



sudo cp /root/xampp-linux-1.6.7.tar.gz /opt


Now you can extract the files



cd /opt
sudo tar xvpf xampp-linux-1.6.7.tar.gz


Finally, you can start the server



sudo /opt/lampp/lampp start


To check that the server is running, go to
http://localhost


You should get the XAMPP page.  Now you need to configure the security for XAMPP.  Back in the terminal, run the following command



sudo /opt/lampp/lampp security


This will guide you through setting passwords for the different XAMPP functions.  Once this is done, you've completed the basic functions for your LAMP server.  Now it's merely customization and tweaking.


If you need to edit the Apache configuration, the text editor to use in DSL is Beaver, and httpd.conf is located in



/opt/lampp/etc/httpd.conf


To edit the file, the command is simply



sudo beaver /opt/lampp/etc/httpd.conf


Similarly, the same is done with the PHP configuration which is in the php.ini file.



sudo beaver /opt/lampp/etc/php.ini


Any changes to either file will not take effect on the server until it is restarted.



sudo /opt/lampp/lampp restart

---

Tell me to get back to rewriting this site so it's not horrible on mobile
avatar
Country: DE
Comments: 48429
News Posts: 59783
Joined: 2008-06-21
 
Thu, 30 Oct 2008 20:48:31
0
Dont know what to say really.

avatar
Country: DE
Comments: 48429
News Posts: 59783
Joined: 2008-06-21
 
Fri, 31 Oct 2008 19:40:59
0
Oh yeah I started CSS. So much easier than that bastard code of the devil, javascript.

At least CSS seems logical. You will have to teach me later about servers and PHP and all that junk.

Log in or Register for free to comment
Recently Spotted:
*crickets*
Login @ The VG Press
Username:
Password:
Remember me?