Connecting Tech Pros Worldwide Forums | Help | Site Map

need help getting php working

Wizumwalt@gmail.com
Guest
 
Posts: n/a
#1: Jan 30 '06
Hey all,

I have an apache 2.0.55 w/ php 4.4 on gentoo. When I browse to my url,
all
it shows is a directory listing so I don't think I have php properly
installed because it doesn't seem to be processing my php pages.

In my /etc/apache2/httpd.conf file I have a line ...

Include /etc/apache2/modules.d/*.conf

and I have an /etc/apach2/modules.d/70_mod_php.conf file which
contains ...
-----
<IfDefine PHP4>

# Load the module first
<IfModule !sapi_apache2.c>
LoadModule php4_module modules/libphp4.so
</IfModule>

# Set it to handle the files
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>

AddDirectoryIndex index.php index.phtml
</IfDefine>

-----

I also did an emerge on apache, php, mod_php (gentoo linux). Anyone
have an idea what
might be wrong?


Jerry Stuckle
Guest
 
Posts: n/a
#2: Jan 30 '06

re: need help getting php working


Wizumwalt@gmail.com wrote:[color=blue]
> Hey all,
>
> I have an apache 2.0.55 w/ php 4.4 on gentoo. When I browse to my url,
> all
> it shows is a directory listing so I don't think I have php properly
> installed because it doesn't seem to be processing my php pages.
>
> In my /etc/apache2/httpd.conf file I have a line ...
>
> Include /etc/apache2/modules.d/*.conf
>
> and I have an /etc/apach2/modules.d/70_mod_php.conf file which
> contains ...
> -----
> <IfDefine PHP4>
>
> # Load the module first
> <IfModule !sapi_apache2.c>
> LoadModule php4_module modules/libphp4.so
> </IfModule>
>
> # Set it to handle the files
> <IfModule mod_mime.c>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .phtml
> AddType application/x-httpd-php .php3
> AddType application/x-httpd-php .php4
> AddType application/x-httpd-php-source .phps
> </IfModule>
>
> AddDirectoryIndex index.php index.phtml
> </IfDefine>
>
> -----
>
> I also did an emerge on apache, php, mod_php (gentoo linux). Anyone
> have an idea what
> might be wrong?
>[/color]

I don't think you can use wildcards in an include statements.

Try:

Include /etc/apach2/modules.d/70_mod_php.conf


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Andy Hassall
Guest
 
Posts: n/a
#3: Jan 30 '06

re: need help getting php working


On Mon, 30 Jan 2006 14:53:58 -0500, Jerry Stuckle <jstucklex@attglobal.net>
wrote:
[color=blue][color=green]
>> Include /etc/apache2/modules.d/*.conf[/color]
>
>I don't think you can use wildcards in an include statements.[/color]

You can, and it's quite useful, so you can have various specific bits of
configuration in separate files but not have to modify the top-level config
file.

http://httpd.apache.org/docs/2.0/mod/core.html#include

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Closed Thread