You are not logged in.

#1 2010-08-09 13:20:52

StrangeAttractor
Member
From: Prague, CZ
Registered: 2010-06-14
Posts: 54

Apache shows PHP files sources instead of running them.

I've installed MySQL, Apache and PHP. All the configuration mentioned in Arch WiKi for LAMP seems to be done. But instead of executing PHP scripts Apache shows their sources as plain text. What can cause such a problem?

Offline

#2 2010-08-09 17:44:00

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Apache shows PHP files sources instead of running them.

A misconfigured apache. Doublecheck this: http://wiki.archlinux.org/index.php/LAMP#PHP


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2010-08-18 22:17:54

k2000
Member
Registered: 2009-12-02
Posts: 33

Re: Apache shows PHP files sources instead of running them.

I got the same problem, before I realize that by double clicking on my file opens it in firefox, but with
"file://......"
instead of
"http://localhost/...."
so the file was not interpreted by php.

Offline

Board footer

Powered by FluxBB