You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nathan Ollerenshaw <na...@valuecommerce.ne.jp> on 2003/10/01 03:57:43 UTC

Re: [users@httpd] mod_php question

On Oct 1, 2003, at 6:50 AM, Jimmy McDonald wrote:

> I'm kind of confused. I just installed Redhat 9 and chose php as an
> option during install.

[...]

> So php isn't built in and there is no module installed and
> httpd.conf doesn't try to load one.

Actually, I think you'll find that RedHat's httpd.conf includes a 
directory in /etc/httpd that has one file per module to load, or 
something like that. I never checked because it's always worked for me 
to just install all the packages and start apache.

Try putting a index.php file in /var/www/htdocs (or is it 
/var/www/html?) with the following:

<?php

phpinfo();

?>

then hit the root of the webserver. You should see some nice output 
from PHP telling you what it was compiled with, the defaults that have 
been set, etc.

Nathan.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_php question

Posted by Jimmy McDonald <io...@bsdshell.dyndns.org>.
yeah, it turns out the php is built into the apache
that comes with Redhat. I never knew.. I'd say "Who knew?"
but many of you would write back and say "Me!"

:)

Thanks,
Jimmy


On Wed, 1 Oct 2003, Nathan Ollerenshaw wrote:

> On Oct 1, 2003, at 6:50 AM, Jimmy McDonald wrote:
>
> > I'm kind of confused. I just installed Redhat 9 and chose php as an
> > option during install.
>
> [...]
>
> > So php isn't built in and there is no module installed and
> > httpd.conf doesn't try to load one.
>
> Actually, I think you'll find that RedHat's httpd.conf includes a
> directory in /etc/httpd that has one file per module to load, or
> something like that. I never checked because it's always worked for me
> to just install all the packages and start apache.
>
> Try putting a index.php file in /var/www/htdocs (or is it
> /var/www/html?) with the following:
>
> <?php
>
> phpinfo();
>
> ?>
>
> then hit the root of the webserver. You should see some nice output
> from PHP telling you what it was compiled with, the defaults that have
> been set, etc.
>
> Nathan.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_php question

Posted by Nathan Ollerenshaw <na...@valuecommerce.ne.jp>.
On Oct 1, 2003, at 10:57 AM, Nathan Ollerenshaw wrote:

> Actually, I think you'll find that RedHat's httpd.conf includes a 
> directory in /etc/httpd that has one file per module to load, or 
> something like that. I never checked because it's always worked for me 
> to just install all the packages and start apache.

Actually, I'm wrong, I just checked.

I think it adds a block to the corect place in the httpd.conf when you 
add the package.

Nathan.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org