PHP5 Install so so stuck please please help.

liunx

Guest
Hi all im so so stuck and could really do with some help!! Been stuck on this for days and days. Will pay (?5 or $35) for anyone who can advise me how to resolve this problem (and I actually sort it on that advice)
Im attempting to upgrade to php5 on fedora core 2, apache 2.0.51, Plesk 7.0.5 , no errors occurred on the installation but now every time attempt to load a php within the browser or (wget command line). It attempts to download and save the unprocessed file. To make sure Its not a bad server I attempted the same on a different server with the same environment. I know the php installation ran ok as I can bring php from the command line. I have been able to make installations similar to this on fedora core 3 and red hat 9 so am familiar with the process of the installation but must of forgotten something this time. i have been able to create a new apache server on a different part of the server sucessfully, but i need it on this pache as its where all my sites are hosted. Do I need to set permission or change some security setting. I believe the problem to be related to httpd.conf file I have the following lines present (along with loads of others).

LoadModule php5_module /usr/lib/httpd/modules/libphp5.so

AddType application/x-httpd-php .php

Does any one have any ideas ? the served worked perfectly on php 4 and can rollback and use the shared library file for php perfectly well. I know this ambiguous problem its not working so if I you need any more details or have any ideas how I can detect the actual problem do not hesitate to ask. Bellow is what I have done.

./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-xml --with-libxml-dir=/usr/local --with-expat-dir=/usr/local/lib --with-dom=/usr/local--with-zlib --with-gettext --enable-ftp --with-db4=/usr --with-dom=/usr --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --with-zlib --enable-calendar --enable-dbx --enable-dio --enable-mcal --with-exec-dir=/usr/bin --with-mysql=/usr/include --with-mysql-sock=/var/lib/mysql/mysql.sock --with-pear=/usr/share/pear --enable-sockets --enable-magic-quotes --with-apxs2filter=/usr/sbin/apxs

i even tried it with --with-apxs2 rather than using filter.

./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-xml --with-libxml-dir=/usr/local --with-expat-dir=/usr/local/lib --with-dom=/usr/local--with-zlib --with-gettext --enable-ftp --with-db4=/usr --with-dom=/usr --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --with-zlib --enable-calendar --enable-dbx --enable-dio --enable-mcal --with-exec-dir=/usr/bin --with-mysql=/usr/include --with-mysql-sock=/var/lib/mysql/mysql.sock --with-pear=/usr/share/pear --enable-sockets --enable-magic-quotes --with-apxs2=/usr/sbin/apxs

Important part of the configuration results:

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for member fd in BUFF *... (cached) no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... yes
checking for Apache 2.0 handler-module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support... no
checking for mod_charset compatibility option... no
checking for Caudium support... no
checking for CLI build... yes
checking for Continuity support... no
checking for embedded SAPI library support... no
checking for Zeus ISAPI support... no
checking for Milter support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web support... no
checking for Roxen/Pike support... no
checking for thttpd... no
checking for TUX... no
checking for webjames... no
checking for chosen SAPI module... apache2filter

Cheers and thank you so much for taking the time to read my forum post.

from
OliI run Apache 1.3.x, so I don't know if Apache 2.x is that much different in terms of httpd.conf, but it does sound like a problem with your httpd.conf due to Apache trying to download the files instead of executing them.

The following looks correct:

AddType application/x-httpd-php .php

The only thing I can think of is that your AddType is wrapped by something like:

<IfModule mod_php4.c>

</IfModule>

instead of a PHP5 one. It may look different in Apache 2.x, as I said.
 
Back
Top