[arch-general] New install configuring php - only get text - feeling stupid -- help!
David C. Rankin
drankinatty at suddenlinkmail.com
Mon Nov 23 16:59:22 EST 2009
I can't believe this. On my new arch install on my laptop, I'm finally getting
around to configuring the web server and I am having trouble with php. When I
try and access a php page, all I get is the text of the script echoed to the
browser. I have heard about this happening before and I think I have even
fixed it before, but I can't for the life of me remember how? I've been
through the wiki at:
I have the following loaded:
My php config in httpd.conf is:
LoadModule php5_module modules/libphp5.so
DirectoryIndex index.php index.html index.htm
I've configured php and php works from the command line just fine and will
dump phpinfo() to a terminal, but from my browser pointed at:
all I get is: "<?php phpinfo(); ?>" (no quotes) which is nothing more than
the content of my test script. I have also configured php.ini with the proper:
to accomadate the php include and defined the directory to /dcr. In fact I can
browse /dcr just fine, but clicking on the phpinfo() script just returns the
text of the script like all my other pages.
What's the trick?
(yes, I've stopped and restarted httpd...)
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
More information about the arch-general