2011/2/16 Keith Roberts <keith at karsites.net>: > On Tue, 15 Feb 2011, m.roth at 5-cent.us wrote: > >> To: CentOS mailing list <centos at centos.org> >> From: m.roth at 5-cent.us >> Subject: Re: [CentOS] apache 2 and php 5.2 >> >> Keith Roberts wrote: >>> On Tue, 15 Feb 2011, Paul A wrote: >>> >>>> To: 'CentOS mailing list' <centos at centos.org> >>>> From: Paul A <razor at meganet.net> >>>> Subject: [CentOS] apache 2 and php 5.2 >>>> >>>> Hi originally I installed php 4 on centos 5.5 and then a >>>> few repos including the remi repo to upgrade to php5, >>>> which seems to upgrade/work without any issues. >>> >>> *snip* >>> >>>> I was wondering if anyone can tell me why apache is not >>>> taking the settings from the /etc/php.ini file and it >>>> works without that file. >>> >>> Creat a php file with this as the contents: >>> >>> <head> >>> <title>php-info</title> >>> </head> >>> >>> <?php phpinfo(); ?> >>> >>> >>> Then load that file into your web browser. >> >> And when you're done, be 100% POSITIVE that you deleted it. The attacks >> that are constant will be looking for it, guaranteed. (I see them all the >> time.) > > Good point Mark. Surely it could be placed in a hidden > directory, and protected with httpd.conf directives, so > only localhost can access it? how about running php --info from commandline? -- Eero