Re: Problem w/ RH Linux 7, PHP 4, Apache, MySQL

From: Date: Sat, 13 Jan 2001 19:17:58 +0000
Subject: Re: Problem w/ RH Linux 7, PHP 4, Apache, MySQL
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-1597@lists.php.net to get a copy of this message
George, I think the problem is in the AddType line. Instead of using a type of x-httpd-php4, try x-httpd-php. HTH, Terry McKiernan Ugly Software On Thu, 11 Jan 2001, George P. Taylor IX wrote: > Greetings. > > I've bought the book _PHP Fast & Easy Web Development_ and have followed the > instructions precisely. > > I'm running RH Linux 7. > > I've successfully installed MySQL, and tested it. > > I've successfully installed Apache and tested it. > > I've installed PHP4, and made the configuration changes to httpd.conf > suggested. > > Specifically, I modified httpd.conf by adding the lines > > AddType application/x-httpd-php4 .php .php3 . php4 .phtml > AddType application/x-httpd-php4-source .phps > > Then I stopped and restarted Apache, then tested it by creating the file > "phpinfo.php" consisting of the single line below. > > <? phpinfo(); ?> > > when I point the netscape browser at > http://localhost/phpinfo.php, that > single line of text shows up. It seems that either Apache is failing to > pass the file to PHP for parsing, or PHP is receiving the file but not > parsing it. > > Question 1: In order to isolate the problem to either PHP or Apache, is > there a way to test to ensure that PHP4 is running without using Apache? > > Question 2: Are there other changes that need to be made to httpd.conf that > I am unaware of? > > Thanks! > > > > >

« previous php.install (#1597) next »