I'm trying to configure my machine(Ubuntu 14.04) for LAMP but I want to install PHP and Apache HTTP Server the hard way i.e. without using apt-get or any other package manager.
(I've chosen the hard way just to get more knowledge on how these packages get internally connected and work together beautifully).

I've download these packages from their respective sites but having problems while installing and making them work together.
Any sort of help will be highly appreciated.
Please guide me :) .
P.S. I've already downloaded apache and php. Please help me in the further process.


i think you know that you will have to keep track of security fixes and bugs for your LAMP Setup then. Apt would kind of do this for you implicitly.

Well how far did you get then? There should be documentation for each part of your setup like here for php: http://php.net/manual/en/install.unix.php

Learning how to gain knowledge by yourself is imo the most important thing, cause its universal. Imo this makes it more important than how to find out to build your own lamp.


  • BTW if you like compiling and choosing compiler flags you might be better off with gentoo linux. :p – Lord_PedantenStein Jul 9 '16 at 19:05
  • Indeed, there is documentation for each module in LAMP but the problem is how do i connect them to make them work together. Suppose I have php and apache downloaded and extracted on my PC. But now how do I make them work together. – Shivam Aggarwal Jul 9 '16 at 19:16
  • 1
    First you compile the source code of e.g. apache and php (build php as an apache module). Then you configure Apache to use the php-module, like here: php.net/manual/en/install.unix.php#78781 and nja, just plain google ;) web-tech-india.com/articles/php/compiling_php_apache - more background in wikipedia, ubuntu howtos, etc. - good luck ^^-d – Lord_PedantenStein Jul 9 '16 at 19:20
  • You will need to install the development tool chain using apt-get, and also back up your /etc/ directory. Then you will need to run configure, make and make install to install the files in the file system from their tar balls. This will probably fail multiple times for both packages. You will have to go download dependencies and build those by hand as well. – John Hall Jul 9 '16 at 19:25
  • 1
    Nja you can trick the dependencies by installing a lamp setup with apt and then remove apache, php, etc manually. – Lord_PedantenStein Jul 9 '16 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.