Debian – apache 2.4 with php on debian squeeze

apache-2.4aptdebianphp5

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?

Best Answer

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.