PHP integration with Apache problem
I have problems integrating PHP with Apache, both of which are new ground for me, unfortunately the teach yourslef book I bought doesnt quiet relate to my installation and so im in a bit of a muddle. I installed from rpm,s. Ive done alot of work towards sorting my problem but im getting knowhere fast. Some of the directories the book the teachyourself book uses eg. /usr/local, are empty, so the examples and help are not helping me.
Ive run into this # cp php.ini-recomended /usr/local/lib/php.ini but in pretty sure this is going to be the wrong location on my installation. However the next line in the book troubles me more.
#cp libs/libphp5.so /usr/local/apache2/modules again a problem with where things are on my installation. eg. im not using usr/local and I have no apache2 directory that I can find. I also dont have libphp5.so.
On looking for libphp5.so ive found this seems to be normally derived from some configuration using apxs??? However I didnt install from binaries using config, make, make install. Because of mandriva rpm functionality I decided to use rpms.
I installed apache and it is up and running ok. Server version: Apache/2.2.3 (Mandriva Linux / PREFORK - 1mdv2007.0), running on mandriva 2007.
The book I bought "Sam's teach your self, PHP, Mysql and Apache" tells me I need to make sure libphp5.so is loaded as a module in httpd.conf. Obviously I cant do this. I Searched round my system and I found libphp5_common.so.5 in /usr/lib.
I suspect this is generated from the package libphp5_common5_5.1.6-1.6mdv2007.0, is this what I need to put in httpd.conf?
Mandriva tells me that apache-mod_php-5.1.6 -2mdv2007.0 is used to integrate php into apache but obviously with no module being loaded via httpd.conf this is not happening. Tested by putting a .php script into /var/www. No luck.
Ive spent hours on this searching the net and getting knowhere. Any help is much appreciated.
|