FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 12-28-2011, 03:33 PM
Mike Chambers
 
Default SOLVED: Enable PHP on local Apache2 server

On Wed, 2011-12-28 at 17:04 +0100, Klaus-Peter Schrage wrote:
> Am 28.12.2011 16:25, schrieb Remi Collet:
> > Le 28/12/2011 16:10, Klaus-Peter Schrage a écrit :
> >
> >>> 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.
> > This 2 lines should be present in /etc/httpd/conf.d/php.conf, provided
> > by php package.
> >
> > So httpd.conf doesn't have to be modified.
> I know about this mechanism, but none of my php packages from Fedora
> gave me php.conf.

Not in /etc/http/conf.d/ dir?

--
Mike Chambers
Madisonville, KY

"Best little town on Earth!"

--
users mailing list
users@lists.fedoraproject.org
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
 
Old 12-28-2011, 03:35 PM
Klaus-Peter Schrage
 
Default SOLVED: Enable PHP on local Apache2 server

Am 28.12.2011 17:15, schrieb Steven Stern:

On 12/28/2011 10:04 AM, Klaus-Peter Schrage wrote:

Am 28.12.2011 16:25, schrieb Remi Collet:

Le 28/12/2011 16:10, Klaus-Peter Schrage a écrit :


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.

This 2 lines should be present in /etc/httpd/conf.d/php.conf, provided
by php package.

So httpd.conf doesn't have to be modified.

I know about this mechanism, but none of my php packages from Fedora
gave me php.conf.


hmmm..... Perhaps something went wrong when you installed PHP

$ yum provides "*/conf.d/php.conf"

php-5.3.8-3.fc16.i686 : PHP scripting language for creating dynamic web
sites
Repo : fedora
Matched from:
Filename : /etc/httpd/conf.d/php.conf

php-5.3.8-3.fc16.i686 : PHP scripting language for creating dynamic web
sites
Repo : @anaconda-0
Matched from:
Filename : /etc/httpd/conf.d/php.conf


That's true: "rpm -ql php" gives me:
/etc/httpd/conf.d/php.conf

but ls /etc/httpd/conf.d/ only shows:
README welcome.conf

Something must have gone wrong, so I'd reinstall php.
--
users mailing list
users@lists.fedoraproject.org
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
 

Thread Tools




All times are GMT. The time now is 11:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org