Search Linux Info on Web

Custom Search

Saturday, April 11, 2009

Setting up LAMP for Joomla 1.5.x

Tried installing XAMPP. No use. refuses to run.
Installed Apache 2.2.11 from http://httpd.apache.org/download.cgi
Its a tar file (compressed). Saved it on disk. Open up a terminal and fired the command
tar -xvvzf downloaded-tar-filename
This uncompressed the file into a folder X. cd to that folder
Type ./configure --enable-so
After this type make
After this it is advised to use checkinstall tool for making a package for easy management though it did not work for me. For more information about chekinstall visit https://help.ubuntu.com/community/CheckInstall

Frustrated, typed the command being in the X directory, sudo make install
This installed the apache server in /usr/local/apache2. Releaved!!
Try testing localhost right away, it wont work.
Starting server with the command sudo /usr/local/apache2/bin/apachectl start
throws the error, httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName .

For this u need to edit the httpd.conf file in /usr/loca/apache2/conf
Write a line ServerName 127.0.0.1 in the file below the commented line saying ServerName www.example.domain

Now starting the apache server works fine.
To stop, fire sudo /usr/local/apache2/bin/apachectl stop


To show the error message about checkinstall tool, i issued the same command in the X directory, sudo chekinstall.
This time it worked fine and at the end it displayed the following message.

**********************************************************************

Done. The new package has been installed and saved to

/home/tom/httpd-2.2.11/httpd_2.2.11-1_i386.deb

You can remove it from your system anytime using:

dpkg -r httpd

**********************************************************************

tom@TomLappy:~/httpd-2.2.11$


----- The END

No comments: