You are not logged in.

#1 2012-02-02 12:09:47

jsteel
Package Maintainer (PM)
From: England
Registered: 2008-03-18
Posts: 119

[SOLVED] Got PHP working yesterday but not today...?

Hi,

I used archiso yesterday to create a web server on a USB flash drive. I followed the LAMP wiki page https://wiki.archlinux.org/index.php/LAMP#PHP and all was working fine. Made a few minor changes today (just some files in the user's home directory; nothing web server related), generated a new ISO and PHP no longer works. The web server shows HTML pages fine. I get a 500 error when visiting a PHP page that just contains "<?php echo "test"; ?>".

[error] [client ::1] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0, referer: http://localhost/
[error] [client ::1] PHP Fatal error: Unknown: Failed opening required '/srv/http/test.php' (include_path='.:/usr/share/pear') in Unknown on line 0, referer: http://localhost/

I have double-checked the config against the wiki page and all looks fine. The httpd.conf and php.ini should be identical to the ones used yesterday where it was working. Very strange.

Thanks

Last edited by jsteel (2012-02-02 12:26:52)


PGP key: F40D2072
Key fingerprint: 8742 F753 5E7B 394A 1B04  8163 332C 9C40 F40D 2072

Offline

#2 2012-02-02 12:24:29

jsteel
Package Maintainer (PM)
From: England
Registered: 2008-03-18
Posts: 119

Re: [SOLVED] Got PHP working yesterday but not today...?

Sorry spoke too soon, found it was a permission issue on the php file; http could not read it. Strange how I did not run into this issue yesterday. Solved.


PGP key: F40D2072
Key fingerprint: 8742 F753 5E7B 394A 1B04  8163 332C 9C40 F40D 2072

Offline

Board footer

Powered by FluxBB