RE: [PHP-INST] Re: getting php to work with apache

From: Date: Fri, 06 Jul 2001 20:05:43 +0000
Subject: RE: [PHP-INST] Re: getting php to work with apache
Groups: php.install 
Request: Send a blank email to php-install+get-3426@lists.php.net to get a copy of this message
If you ask me, I'm guessing you compiled PHP 4.x. Just take another look at your configuration file and it SHOULD all make sense. In case it doesn't... you don't have PHP 3.x. Thats what the <IfModule mod_php3.c> thing is for. You've got .php3 pages assigned to be parsed by that module (and only if you are running Apache with that module) which is exactly what you SHOULD have. However, what is the extension of your phpinfo file? Why I do believe its .php3, which -gasp- is handled by the module you don't have! So. Here's what you do. Change the filename to .php so it will be parsed by PHP4 as is defined inside the <IfModule mod_php4.c> block. Tada. -Philip -----Original Message----- From: Tim Johnson [mailto:timj@tallships.ca] Sent: Friday, July 06, 2001 12:51 PM To: php-install@lists.php.net Subject: [PHP-INST] Re: getting php to work with apache Have you tried taking out the spaces? <?phpinfo()?> Hello I hope someone can help me. When I created the script <? phpinfo(); ?> I get the exact output when I go to http://localhost/phpinfo.php3. In other words when I type go to the page I see <? phpinfo() ?>. In my httpd.conf file I have the following: <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps AddType application/x-httpd-php3 .phtml </IfModule> # And for PHP 4.x, use: # <IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps </IfModule> So can someone instructed me, on where I went wrong. I am missing something. Thanks Bob ---------------------------------------- Content-Type: text/plain; charset="iso-8859-15"; name="httpd.conf" Content-Transfer-Encoding: base64 Content-Description: Apache config file ---------------------------------------- -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net For additional commands, e-mail: php-install-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.install (#3426) next »