Re: How to install Apache w/ PHP when "yum install httpd php" fails?

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

 



2009/9/28 Kelly Jones <kelly.terry.jones@xxxxxxxxx>:
> I did "yum install httpd php" to install Apache w/ PHP, and created a
> test page with "<?php phpinfo(); ?>". When I visit it and view source,
> I get back "<?php phpinfo(); ?>" instead of my PHP config.
>
> /etc/httpd/conf/httpd.conf says nothing about PHP, so I suspect I did
> the install wrong.
>
> How do I enable PHP support in Apache?

More information needed...

0) Does this command return the same on your system?
[sam@www ~]$ grep "Include " /etc/httpd/conf/httpd.conf
Include conf.d/*.conf

1) What does /etc/httpd/conf.d/php.conf say? Does it exist?

2) What is the extension of your web page? (is it .php?)

3) Are you definitely viewing it through the Webserver and not locally on disk?

-- 
Sam

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux