Web Hosting Talk







View Full Version : PHP, RH 7.3 RPM & a big problem


BiGWill
05-05-2003, 12:45 PM
Ok, now that we (hope to) have figured out how to import this damn mysql db we'r facing another problem....

PHP ain't working :eek: :confused: :bawling:

I just can't figure out why again... maybe i'm just googling too much or sth. or not finding the right Manual to RTFM ....

These rpm's are added:

php-devel-4.1.2-7.3.6
php-4.1.2-7.3.6
php-mysql-4.1.2-7.3.6
&
mysql-server-3.23.56-1.73
mysql-3.23.56-1.73
mysql-devel-3.23.56-1.73
php-mysql-4.1.2-7.3.6
&
apache-devel-1.3.27-2
apache-1.3.27-2

The httpd.conf contains the following necessary entries:

LoadModule php4_module modules/libphp4.so
AddModule mod_php4.c

&

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

Am i missing something, or why the heck is apache still showing just plain text files while opening a php file with .php extension?

sasha
05-05-2003, 12:53 PM
... and yet the module does not seem to be loaded. Is there maybe some
<IfDefine ...> stuff around LoadModule php4_module

BiGWill
05-05-2003, 02:08 PM
Yep...

<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>

&

<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>

sasha
05-05-2003, 02:17 PM
If you comment those lines out like this:
#<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
#</IfDefine>
and restart apache, do you get any errors ?

BiGWill
05-05-2003, 02:21 PM
nope ?!
Starts without any problems....

BiGWill
05-05-2003, 02:24 PM
error_log shows nothing....

[Mon May 5 20:07:40 2003] [notice] caught SIGTERM, shutting down
[Mon May 5 20:21:44 2003] [notice] Apache/1.3.27 (Unix) (Red-Hat/Linux) PHP/4.1.2 configured -- resuming normal operations
[Mon May 5 20:21:44 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon May 5 20:21:44 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)

atleast i can't see any error message in there ;-))
Does he load PHP at all, if there's no error message when commenting these out?!
Can you somehow check if he loaded the module, while apache is running?
Or any other idea?

sasha
05-05-2003, 02:26 PM
if you IM me I can TRY to help you.