Skip to content
February 27, 2008 / ranacse05

Install Apache2,PHP and MySQL

Hello every one today i’ll discuss how to compile Apache2,PHP and MySQL form source in linux.
First download the source form the sits.
Now first apache2
1.gunzip filename.tar.gz
2.tar -xvf filename.tar
Now change directory to that apache source folder.
We have to configure it now.
./configure –enable-so
make install

now start the apache server
/usr/local/apache/bin/apachectl start
Just open a browser and type localhost/ if it shows it works ! then its working.
follow the 1 & 2 steps and configure it with
./configure –prefix=/usr/local/mysql
make install
Now time for PHP
Again we have to configure 😦
./configure –with-apxs2=/usr/local/apache/bin/apxs –with-mysql=/usr/local/mysql
make install

Note : Use apxs if u use Apache



Leave a Comment
  1. MindTooth / Mar 5 2008 3:05 am

    What about ImageMagic, SQLite, etc.?

  2. ranacse05 / Mar 6 2008 6:00 pm

    Sorry i just work with MySQL.But soon i’ll start SQLite:)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: