[RESOLVED] failed to open stream: Permission denied (Service.php)

#1
Any help with the following errors from the general server log would be appreciated:

[STDERR] PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: Stat failed for /tmp/lshttpd/.status (errno=13 - Permission denied) in /opt/lsws/admin/html.4.0.12/classes/ws/Service.php on line 33

[STDERR] PHP Warning: fopen(/tmp/lshttpd/.status) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /opt/lsws/admin/html.4.0.12/classes/ws/Service.php on line 128
2010-01-23 14:53:47.793

[STDERR] PHP Warning: fopen(/tmp/lshttpd/lshttpd.pid) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /opt/lsws/admin/html.4.0.12/classes/ws/Service.php on line 70

What owner:group and permissions should be set for these paths?
 
Last edited by a moderator:
#6
Resolved

is "lsadm" a member of "apache" group?
check /etc/group
If not, add lsadm to "apache" group.
Thank you! That solved it.

It also took care of another annoyance we couldn't fix with the realtime stats being inaccessible after server restart:

litespeedtech.com/support/forum/showpost.php?p=17347
 

NiteWave

Administrator
#7
It also took care of another annoyance we couldn't fix with the realtime stats being inaccessible after server restart:

litespeedtech.com/support/forum/showpost.php?p=17347
for 17347:
After graceful restart /tmp/lshttpd reverts back to 0710. Is there a way to set this permanently?
what version of lsws? which platform? latest 4.0.12 may not have this issue any more.

or check again, this old issue may relate to the new issue you just resolved. the old issue may disappear after you fix the new issue.
 
Last edited:
#8
for check again, this old issue may relate to the new issue you just resolved. the old issue may disappear after you fix the new issue.
Sorry, that's what I meant. The group issue (resolved above) fixed this problem too. Everything is well in LSWS land over here. Thanks!
 
#9
i am getting same error. failed to open stream: Permission denied

i found this topic from google search.can someone explain how can i add lsadm group to my apache server? i need steps and commands.
 
#10
how can i add lsadm group to my apache server? i need steps and commands.
lsadm is created automatically by install.sh. if it's not created after installation, then something wrong. what's your OS version, 32-bit or 64-bit?
 
Top