Re: httpd not interpreting a php file
| From: | Gergely Buday | Date: | Sat, 25 Oct 2014 06:25:25 +0000 |
| Subject: | Re: httpd not interpreting a php file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324001@lists.php.net to get a copy of this message | ||
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1
DirectoryIndex /index.php
I have in httpd.conf
But I guess not this is the problem as I have working php files.
- Gergely
On 25 October 2014 00:29, Jeffry Killen <jekillen@prodigy.net> wrote:
> Another thing to look for in httpd.conf is a line that tells Apache
> what extensions to use to recognize php. This line may have been
> edited erroneously to remove or alter .php as an extension.
>
> If this is a new installation of Apache you will probably have to
> inspect the conf file for this.
>
> If this is an existing installation of Apache and it has been working
> as expected, it is very possible that someone edited the .conf file.
>
> You may have a security problem with your system. Mostly sudoers
> and Root (on Unix based systems, including Mac OSX) are the only
> accounts authorized to edit the .conf file. Someone un qualified may
> have gained access to the .conf file.
>
> On Oct 24, 2014, at 12:34 PM, Gergely Buday wrote:
>
>> Hi,
>>
>> I did tests and my Apache does interpret simple php files.
>>
>> I copied a directory structure from a working web server and my
>> login.php is not interpreted. Apache emits some source code from the
>> file.
>>
>> What could cause this?
>>
>> - Gergely
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>