[clue-tech] mod_php, apache2 and gentoo amd64

erik at ezolan.com erik at ezolan.com
Wed Sep 6 11:48:16 MDT 2006


> Greetings,
>
> I am banging my head against getting php to work on a gentoo/amd64 box -
>
> I am able to emerge php, but there is no confguration for running it
> in apache 2 and no mod_php ...
>
> I am able to emerge other applications that require php - like
> phppgadmin, but they do not load - just displays the contents of the
> index.php as plain text.
>
> This appears to be php5, and I do have the php executable:
>
>  ls -l `which php`
> lrwxrwxrwx  1 root root 23 Sep  5 09:35 /usr/bin/php ->
> /usr/lib64/php5/bin/php
>
> Any clues?

Does typing php -h at the command line bring up the php help? Then you've
got php installed.

I had this problem the other day and it was because apache2 doesn't use
httpd.conf for all the mods anymore. The mods were installed under
apache2/mods-available and to use them you link to them from the
apache2/mods-enabled.

I have a very basic setup, so this is what my mods-available dir looks like:

drwxr-xr-x  2 root root 200 2006-08-31 07:51 .
drwxr-xr-x  8 root root 392 2006-08-31 07:00 ..
lrwxrwxrwx  1 root root  36 2006-08-31 07:51 cgi.load ->
/etc/apache2/mods-available/cgi.load
lrwxrwxrwx  1 root root  37 2006-08-31 07:51 php4.conf ->
/etc/apache2/mods-available/php4.conf
lrwxrwxrwx  1 root root  37 2006-08-31 07:51 php4.load ->
/etc/apache2/mods-available/php4.load
lrwxrwxrwx  1 root root  40 2006-08-31 07:00 userdir.conf ->
/etc/apache2/mods-available/userdir.conf
lrwxrwxrwx  1 root root  40 2006-08-31 07:00 userdir.load ->
/etc/apache2/mods-available/userdir.load
eazolan at XANP3EUCO17:/etc/apache2/mods-enabled$

Hope this helps.





More information about the clue-tech mailing list