[clue-tech] mod_php, apache2 and gentoo amd64

Ken MacFerrin lists at macferrin.com
Wed Sep 6 13:37:13 MDT 2006


erik at ezolan.com wrote:
>> 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.
> 

Also, you'll want to make sure you had the "apache" or "apache2" USE
flag set when you compiled php.  IIRC, without that flag it doesn't
compile in mod_php support, just the cli. You can view all the available
USE flags that affect php by running "emerge -pv php".
-Ken



More information about the clue-tech mailing list