Re: SOLVED: Enable PHP on local Apache2 server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux