What version of apache are you using ? Is it 2.0..

I would recommend that you remove the LoadModule php4....since you
already are using AddType. 

As far as phpinfo() is concerned, save that as a .php file in your
DocumentRoot and then from a browser call it using
http://localhost/filename.php

That should return the php version..

Regards
Hari

-----Original Message-----
From: Christopher M. Hobbs [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INSTALL] Issues with Redhat 8.0

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