Greetings! I've been attempting to get PHP up and running with apache here where I work. I've added the following entries to my httpd.conf file:

--BEGIN SNIP--

[EMAIL PROTECTED] chobbs]# grep php /etc/httpd/conf/httpd.conf
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php .phtml
        DirectoryIndex  index.php index.html index.htm index.shtml

--END SNIP--

And I've re-started Apache with `/etc/rc.d/init.d/httpd restart`. When I do that, I get this:

--BEGIN SNIP--

[EMAIL PROTECTED] chobbs]# !678
/etc/rc.d/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Wed Mar 10 13:35:11 2004] [warn] module perl_module is already loaded, skipping
[Wed Mar 10 13:35:11 2004] [warn] module php4_module is already loaded, skipping
[ OK ]


--END SNIP--

.php and .phtml files seem to load without a problem, but I can't seems to get them to parse the scripts. for example, in the html root directory i have a script called 'pinfo.php' that contains the following:

--BEGIN SNIP--

<html>
<body>

<?
phpinfo();
?>

</body>
</html>

--END SNIP--

When I access this via any web browser, it simply returns a blank page.

Both the installation of Apache and the installation of PHP are the stock installs that ship with RedHat 8.0 "Psyche". I've tried installing PHP 4.3.4, but `./configure` keeps returning errors about not finding 'lex'.

Any ideas as to what I am doing wrong? Any help you may be able to provide is greatly appreciated!

Regards,
C.M. Hobbs

Reply via email to