I've just compiled and installed apache 2.4 on my debian squeeze machine. It was the first time I've compiled it on my own. My next step should be installing mod_php for the server. Now I was thinking if I MUST compile php on my own with all the related stuff like imap, mysql etc. or if I can install the php stuff via apt and just copy the related files into my apache2/modules folder. Can somehow give me a little hint on this procecdure?


If you used the CGI version of PHP, then you would not need to re-compile. Since you want to use mod_php you need re-compile PHP, and PHP modules, any other Apache modules, and basically anything that links into Apache/PHP.

  • ok thanks :) so I will consider if this will be worth all the work^^ – soupdiver Mar 2 '12 at 18:48

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.