IntroductionI recently wrote a post entitled "5 Ways To Use Puppy Linux" which gives a short list of possible uses for Puppy LINUX.
One of the ideas mentioned was to use Puppy LINUX as a small development web server enabling web development on the move. Simply take your laptop/netbook and a USB pen drive pre-installed with Puppy LINUX and the LAMP stack and you can develop web pages whilst travelling on the train. Someone left a comment asking how this could be done.
This is the 1st of a series of posts detailing how to set up the LAMP stack within Puppy LINUX.
Initial SetupI have taken a 2gb USB drive and I have installed Lucid Puppy on it as this is the easiest and for me most complete version of Puppy LINUX.
I installed Firefox and set up the wireless connection and then I created a 512mb save file and rebooted the PC.
The following steps will show you how to install Apache within Lucid PUPPY.
Installing Apache1. Click the install icon on the top row.
4. Exit the installer and restart it by clicking install again.
6. Click the Apache HTTP Server Metapackage
9. Run through all the installers until all the packages are installed
11. You will receive an error stating that libaprutil-1.so.0 could not be found. You now need to install this from the repositories. Click install to bring up the package manager and type libapr
12. Install the libapr-1 package.
15. Typing Apache2 brings up the real issue which is that httpd.conf could not be found. Go to /etc/apache2 and type "nicoedit httpd.conf". Nicoedit is the default editor within Lucid Puppy.
16. Enter the following line in the Nicoedit window DocumentRoot "/var/www/htdocs"
17. Save the file
NB: You can add all the httpd.conf commands you would normally use within httpd.conf. The steps above create a basic shell required to get Apache running
18. Type /etc/init.d/apache2 restart again. Still it does not work.
a2enmod authz_host22. Type /etc/init.d/apache2 restart again. Still it does not work but we are getting close now. The error is basically stating that the folder we set in httpd.conf does not exist. Enter mkdir /var/www/htdocs.
23. Type /etc/init.d/apache2 restart again. It should now work.
24. Navigate to /var/www/htdocs and create a file called test.html.
25. Enter the following code into test.html
<!DOCTYPE>26. Open Firefox and type http://localhost/test.html.
<title>Testing Apache for the 1st time</title>
Testing Apache for the 1st time
SummaryIt took a fair bit of effort getting Apache working but it is possible to do so and as you can see from the screenshot above it runs.
This guide should not be used to create a production Apache server using Puppy. The concept of this guide is to get a working version of Apache within Puppy LINUX for use as a development platform when on the move.
The next guide will show how to install PHP.
Thanks for reading.