LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [RESOLVED] failed to open stream: Permission denied (Service.php)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-23-2010, 01:29 PM
Cameo Cameo is offline
New Member
 
Join Date: Feb 2009
Posts: 8
Question [RESOLVED] failed to open stream: Permission denied (Service.php)

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 NiteWave; 01-26-2010 at 04:56 PM..
Reply With Quote
  #2  
Old 01-23-2010, 01:56 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
I think it's lsadmin
Reply With Quote
  #3  
Old 01-25-2010, 09:27 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
what is the owner and permission mask for /tmp/lshttpd?
ls -ld /tmp/lshttpd
Reply With Quote
  #4  
Old 01-25-2010, 02:24 PM
Cameo Cameo is offline
New Member
 
Join Date: Feb 2009
Posts: 8
Quote:
Originally Posted by mistwang View Post
what is the owner and permission mask for /tmp/lshttpd?
ls -ld /tmp/lshttpd
0710 apache:apache

drwx--x--- 3 apache apache
Reply With Quote
  #5  
Old 01-25-2010, 08:13 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
is "lsadm" a member of "apache" group?
check /etc/group
If not, add lsadm to "apache" group.
Reply With Quote
  #6  
Old 01-25-2010, 08:33 PM
Cameo Cameo is offline
New Member
 
Join Date: Feb 2009
Posts: 8
Default Resolved

Quote:
Originally Posted by mistwang View Post
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
Reply With Quote
  #7  
Old 01-25-2010, 11:43 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
Quote:
Originally Posted by Cameo View Post
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:
Quote:
Originally Posted by Cameo View Post
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 by NiteWave; 01-25-2010 at 11:46 PM..
Reply With Quote
  #8  
Old 01-26-2010, 08:26 AM
Cameo Cameo is offline
New Member
 
Join Date: Feb 2009
Posts: 8
Quote:
Originally Posted by NiteWave View Post
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!
Reply With Quote
  #9  
Old 06-12-2010, 02:49 PM
newlitespeeduser newlitespeeduser is offline
New Member
 
Join Date: Jun 2010
Posts: 7
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.
Reply With Quote
  #10  
Old 06-12-2010, 11:49 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
Quote:
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?
Reply With Quote
Reply

Tags
4.0.12, failed to open stream, function.fopen, permission denied, service.php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:07 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.