Click to See Complete Forum and Search --> : [Resolved] Apache returns a blank page


aarce
07-23-2003, 02:33 PM
Hello

I am upgrading my PHP version to 4.3.2 on a Red Hat Linux machine with Apache Web server.
The compilation and installation ("make") finished without errors.
I followed the instructions contained in the INSTALL file. But when browsing to my Linux host, Apache returns a blank page.
I noted something rare on the httpd.conf/Linux file: it does not have the following directives found on a similar Win version:

#PHP Configure ## BEGIN ##
LoadModule php4_module "C:/MerlinDesktop/Php4.1.1/sapi/php4apache.dll"
#AddModule mod_php4.c
<FilesMatch ".*.(php4|php)$">
ForceType application/x-httpd-php
</FilesMatch>
#PHP Configure

Could be the cause of the problem. Any ideas?
Thanks

Amado

tsinka
07-26-2003, 02:17 AM
Hi,

which configure options did you use on php (and did you also run make install)?

After recompiling and installing php you have to enable the module manually in httpd.conf:

1)
Put
LoadModule php4_module pathtomodule/libphp4.so
at the end of the LoadModule block
2)
Put
AddModule mod_php4.c
at the end of the AddModule block
3)
Put the following lines somewhere below the AddModule directive.

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

Then restart apache.

Thomas

aarce
07-28-2003, 11:16 AM
Hello Thomas and thanks

Are these instructions for Apache 2.x.x or 1.3.x ??
I have read on several sources compatibility issues with 2.x.x. Do you have any experience with this version?
I am using ./configure --with-mysql --with-apxs and I had followed all the instructions in php´s INSTALL file.

Amado