Consider that your DocumentRoot under Apache 2.0.4 is set to "/var/www/html".
Please check under the option for DirectoryIndex in httpd.conf. This should be towards the end of the httpd.conf file. I am assuming that you will have options such as index.html, index.php.. Please create a small index.html file. This does not have to be anything complex - just a simple "Hello World" tag will suit fine. The reason for this is that we need to make sure that Apache works file. To check this please type ps -ax | grep httpd and see if you get multiple processes. --I am sure that you have done this but here goes. What happens when you type in http://localhost. If you get the browser to display the "Hello World" tag then that means that Apache is properly configured. Once you have done that please type in http://localhost/phpinfo.php and this should reflect the php configuration. I see from earlier emails that you have already configured the httpd.conf file for parsing php files.. Good luck.. Hari -----Original Message----- From: Christopher M. Hobbs [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 9:51 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-INSTALL] Issues with Redhat 8.0 I'm using Apache 2.0.4. I've since removed the LoadModule php4 and have moved the "phpinfo.php" test script to my document root, but I still have no luck with it. When I go to to page, it simply loads a blank screen. I've tried building the latest flavor of PHP, but it has a ton of dependancies, and I'd rather get what I have up and running before I go off an install another version of PHP. Any other ideas? Thanks for your help! -C.M. Hobbs Hari Bhanujan wrote: > 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