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:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 12:51 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]