[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: valhalla+apache+php



Miklos,

You don't say which php version, I assume a version 4. I also assume that your php source file ends in ".php" or one of the extensions listed under the AddType for php4.

If you do a "ps ax|grep httpd", do you get "-DHAVE_PHP4" on each line? Do you have the line "AddModule mod_mime.c" uncommented in httpd.conf?

Hopefully one of these will sort it out, but I do remember having to play with things a bit to get php working on my RedHat 7.2. The problem is I don't remember what I did and I can find no change I made :-(

Hope this helps.

Chris
PS I'm not familiar with all the names to RedHat releases, which one is valhalla, please?


Miklos Bagi Jr. wrote:

Hello,

I'm having problems setting up the apache+php packages properly as the binary distributions of valhalla. httpd.conf contains the following:

<IfDefine HAVE_PHP>
LoadModule php_module         modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module        modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module        modules/libphp4.so
</IfDefine>


<IfDefine HAVE_PHP> AddModule mod_php.c </IfDefine> <IfDefine HAVE_PHP3> AddModule mod_php3.c </IfDefine> <IfDefine HAVE_PHP4> AddModule mod_php4.c </IfDefine>

   <IfModule mod_php3.c>
       AddType application/x-httpd-php3 .php3
       AddType application/x-httpd-php3-source .phps
   </IfModule>


<IfModule mod_php4.c> AddType application/x-httpd-php .php .php4 .php3 .phtml AddType application/x-httpd-php-source .phps </IfModule>


<IfModule mod_php.c> AddType application/x-httpd-php .phtml </IfModule>

so it seems to be ok for me but still, php does not execute php scripts, just shows them as text.

Any ideas?

Kind regards,
MBJr.



_______________________________________________
Redhat-install-list mailing list
Redhat-install-list redhat com
https://listman.redhat.com/mailman/listinfo/redhat-install-list







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]