Re: httpd not interpreting a php file

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

 



On 25 Oct 2014 at 07:34, Gergely Buday <gbuday@xxxxxxxxx> wrote: 

>>> 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.
>>
>> Did you copy httpd.conf?
>
> I use the default httpd.conf as provided on centos 7 httpd installation,
> modulo
>
> ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1
> DirectoryIndex /index.php
>
> What do you mean by copying? From what place to where?

Well you said you copied a directory structure. So I assume you are making a new installation, meaning you need to copy the httpd.conf file too.

1) As asked by francis, does your httpd.conf file have a statement like: AddType application/x-httpd-php .php

2) Does your httpd.conf file have a statement like:    LoadModule php5_module /usr/libexec/apache2/libphp5.so (with the appropriate path)

3) Why do you not tell us your operating system and version of apache?

--
Cheers  --  Tim

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux