Click to See Complete Forum and Search --> : PHP Error? Cannot run any scripts


JockVSJock
06-13-2003, 12:45 PM
Running RH8.0 box with the following for PHP

[root@phoenix ssh]# rpm -qa | grep php
php-imap-4.2.2-8.0.7
php-4.2.2-8.0.7
php-ldap-4.2.2-8.0.7


If I try to view a basic file like the following


[root@phoenix www]# cat phpinfo.php
<?php
phpinfo();
?>


The web browser will only show the text above and not the right output.

Does anyone have any idea why this would be happening?

Stuka
06-13-2003, 01:23 PM
Usually this means that Apache is not configured for properly handling PHP. If you search the Web Serving/Security forum, you should find several threads on this (or you can read the PHP install documentation - it covers the subject nicely).

JockVSJock
06-13-2003, 04:18 PM
well I used Webmin to add in mod_php4, but I could have swore it was in there.

Anyway, I'll keep my eyes on it and if something happens, then I'll report back to here.

thanks