Enable PHP on local Apache2 server

Reindl Harald h.reindl at thelounge.net
Wed Dec 28 14:55:39 UTC 2011



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

Has your Script "<?php" at the begin or does it only start with "<?"
which will not work as long "short_open_tag" is not enabled?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20111228/235230ff/attachment.sig>


More information about the users mailing list