Click to See Complete Forum and Search --> : installing php 4.2.2 on linux


svenski
10-22-2003, 06:33 AM
I am having real difficulties doing this....

I've extraced the sources files in to /var/php/php-4.2.2

Then i've typed:
------------------------------
./configure --with-mysql
make
make install
------------------------------

All is good up to hear but im unsure exactly what to change in the httpd.conf file. I hjave read a tutorial that says
---------
LoadModule php3_module libexex/libphp3.so
AddModule mod_php3.c
---------

Then edit the /etc/httpd/conf/srm.conf and add the following lines
---------

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps

---------

But etc/httpd/conf/srm.conf doesn't exist. If i try to restart apache it will shutdown but not restart. The error i get is:

Apache 1.3 configuration directives found
please read /usr/share/doc/httpd-2.0.40/migration.html
[FAILED]


Any help appeciated

LordShryku
10-22-2003, 08:54 PM
You're loading the php3 modules instead of the php4 modules

Remove what you put in there and try this(all in httpd.conf)

LoadModule php4_module libexex/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps