Wednesday, May 14, 2008

Seeting php environment on linux (LAMP)

11There is enough documentation available for installation/ development of LAMPP applications. But since I have joined company "wikiocean, many people forget to do small things for doing php based web application development.
So here is one of the way I follows ...


XAMPP installation

I am using kubuntu7.04(feisty) on my machine though it doesn't matters much as I am installing from tar file.

First download the xampp for linux. If you can't find resource, go here111, you will also get the instructions.

XAMPP contains a number of useful packages that make it easy to do things like generate traffic reports and accelerate PHP content.

XAMPP comes with following packages and some another utilities.
  • Apache, the famous Web server
  • MySQL, an excellent, free, open source database
  • PHP, the programming language (latest versions )
  • Perl, the programming language
  • ProFTPD, an FTP server
  • OpenSSL, for secure sockets layer support
Plus there are many graphics packages, utilities, xml packages etc.

To install XAMPP on ubuntu:

If you don't have enough permissions, you may require sudo rights. so prefix with "sudo".

Untar it to /opt using the following command
tar xvfz xampp-linux-1.4.7.tar.gz -C /opt


XAMPP is now installed in /opt/lampp.

Now to start xampp do following

/opt/lampp/lampp start

(If you have apache/mysql running previously on your machine. You have to stop that first. then execute above command).

One can check the xampp is started or not by typing localhost in the address bar of browser and watching xampp page there.

Click the Status link in the left navigator to see that the necessary services have started up correctly.

Backups:

For taking backup,

/opt/lampp/lampp backup

You will want to add on your MySQL root password if you have it set to the end of that command.



No comments: