SOLVED: Enable PHP on local Apache2 server
Steven Stern
subscribed-lists at sterndata.com
Wed Dec 28 15:26:35 UTC 2011
On 12/28/2011 09:10 AM, Klaus-Peter Schrage wrote:
> Am 28.12.2011 15:55, schrieb Reindl Harald:
>>
>> Am 28.12.2011 15:49, schrieb Klaus-Peter Schrage:
>>> Am 28.12.2011 15:46, schrieb Reindl Harald:
>>>> Am 28.12.2011 15:42, schrieb Klaus-Peter Schrage:
>>>>>> Try moving the file to /var/www/html/test.php
>>>>>>
>>>>>> DK
>>>>>>
>>>>> Thanks, but than calling /localhost/test.php simply lists the
>>>>> contents of test.php
>>>> well, have you installed PHP?
>>>> what says "rpm -qa | grep php"?
>>> Quite a lot:
>>> php-cli-5.3.8-3.fc16.x86_64
>>> php-ldap-5.3.8-3.fc16.x86_64
>>> php-pdo-5.3.8-3.fc16.x86_64
>>> php-mysql-5.3.8-3.fc16.x86_64
>>> php-5.3.8-3.fc16.x86_64
>>> php-common-5.3.8-3.fc16.x86_64
>> Have you the following SOMEWHERE in your httpd-conf-files?
>> LoadModule php5_module "modules/libphp5.so"
>> AddType application/x-httpd-php .php
>>
>
> Yes, adding those two lines did it: Now I can see the PHP Info page.
>
> But it still seems strange to me that loading the php module isn't an
> option in httpd.conf.
> Thanks anyway
>
php should be loaded from /etc/httpd/conf.d/php.conf. I's not necessary
(or shouldn't be necessary) to load it from httpd.conf itself. These
lines are included in the standard httpd.conf:
#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
--
-- Steve
More information about the users
mailing list