...failed to create stream: Permission denied in... (Solved

kpfeiffer

Joined: 2003-01-02
Posts: 33
Posted: Fri, 2003-02-21 14:54

One of our two galleries quit working - no page loads and following errors:

[Fri Feb 21 15:01:54 2003] [error] PHP Warning: main(platform/fs_unix.php)
[<a href=&amp;#039;http://www.php.net/function.main&amp;#039;>function.main</a>]: failed to
create stream: Permission denied in
/usr/local/apache/htdocs/studygallery/init.php on line 76

[Fri Feb 21 15:01:54 2003] [error] PHP Warning: main() [<a
href=&amp;#039;http://www.php.net/function.main&amp;#039;>function.main</a>]: Failed opening
'platform/fs_unix.php' for inclusion (include_path='.:/usr/local/lib/php')
in /usr/local/apache/htdocs/studygallery/init.php on line 76

[Fri Feb 21 15:01:54 2003] [error] PHP Fatal error: Call to undefined
function: fs_file_exists() in
/usr/local/apache/htdocs/studygallery/init.php on line 80

Any advice?

------
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): timo.iu-bremen.de/studygallery/
Gallery version: 1.3.3
Apache version: 1.3.27
PHP version (don't just say PHP 4, please): 4.3.0
Operating system: Linux 7.3
Web browser/version (if applicable):

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Fri, 2003-02-21 15:03

are you sure the paths are correct in the config.php file

 
kpfeiffer

Joined: 2003-01-02
Posts: 33
Posted: Fri, 2003-02-21 15:43

Yes, and nothing has been changed (well nothing we know about). This was a running system (still is) as we are running two different galleries on the server (the other is still running). BTW, after running ./configure.sh one still gets just the blank screen. I'm wondering if I should turn on any other php error-reporting?

 
kpfeiffer

Joined: 2003-01-02
Posts: 33
Posted: Fri, 2003-02-21 16:06
Quote:
Failed opening 'platform/fs_unix.php' for inclusion (include_path='.:/usr/local/lib/php')
in /usr/local/apache/htdocs/studygallery/init.php on line 76

Is this perhaps important? fs_unix.php is still there (in the platform directory) and the permissions are (still) okay.

 
kpfeiffer

Joined: 2003-01-02
Posts: 33
Posted: Fri, 2003-02-21 16:54

Problem solved - permissions error (as always).

I had assigned wwwrun to a new group last night which it turns out did not have exec permission to the platform directory (even though this directory was world-executable). :sad:

Short story: time to clean up permissions and file ownership here.