PHP not processing on RedHat 8.0
Moderator: General Moderators
PHP not processing on RedHat 8.0
I have a clean RedHat 8.0 install (I installed everything), and PHP doesn't seem to be handleing the .php files.
There is no mention of "php" anywhere in the httpd.conf file, in the past when I've installed PHP myself, I just uncommented the lines that referenced PHP. Anyone else have this problem with RedHat 8.0?
Here is more information:
httpd-2.0.40-11
php-4.2.2-8.0.5
There is a php.conf in /etc/httpd/conf.d, but no mention of php in /etc/httpd/conf/httpd.conf.
What else do I need to look for?
There is no mention of "php" anywhere in the httpd.conf file, in the past when I've installed PHP myself, I just uncommented the lines that referenced PHP. Anyone else have this problem with RedHat 8.0?
Here is more information:
httpd-2.0.40-11
php-4.2.2-8.0.5
There is a php.conf in /etc/httpd/conf.d, but no mention of php in /etc/httpd/conf/httpd.conf.
What else do I need to look for?
the file list of that rpm shows that the php module should be installed in /usr/lib/httpd/modules/libphp4.so and that there should be a file /etc/httpd/conf.d/php.conf. Is there something likein your apache configuration?
When the apache process is started config.parameters may be passed to it.
E.g. at my gentoo-linux system there is a file /etc/conf.d/apache that contains the linethat defines the symbol PHP4. Therefor allin the apache.conf will be executed. There are three of these block in my config. One for LoadModule, one for AddModule and one for including the extra-config file.
Hope this is useful for redhat, too
Code: Select all
<IfDefine PHP4>When the apache process is started config.parameters may be passed to it.
E.g. at my gentoo-linux system there is a file /etc/conf.d/apache that contains the line
Code: Select all
APACHE_OPTS="-D PHP4"Code: Select all
<IfDefine PHP4>
...
</IfDefine>Hope this is useful for redhat, too
then you may add it manually
check apache's error.log - in case I told you something wrong
- search for the LoadModule entries in your httpd.conf
- append LoadModule php4_module modules/libphp4.so
- search the AddModule entries
- apend AddModule mod_php4.c
- search for AddType entries
- append AddType application/x-httpd-php .php
if you want so also AddType application/x-httpd-php-source .phps
check apache's error.log - in case I told you something wrong
Hrm.....I added the LoadModule and AddType lines, but couldn't find any AddModules in my httpd.conf file.
So I figured that I'd try to start it up, and Apache said that php4_module is already runing, it was skipping it. So I thought maybe it will work now, that I needed the AddType line.
It still isn't working though. I just get the php source, like it never went to the php engine.
So I figured that I'd try to start it up, and Apache said that php4_module is already runing, it was skipping it. So I thought maybe it will work now, that I needed the AddType line.
It still isn't working though. I just get the php source, like it never went to the php engine.
uh, ok it's only wild guessing right now, but have you tried stored in info.php?
maybe you're using short tags (<? ... ?>) and they are disabled or you've saved the script to a file with an unhandled extension?
Code: Select all
<?php phpinfo(); ?>maybe you're using short tags (<? ... ?>) and they are disabled or you've saved the script to a file with an unhandled extension?