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

Go Back   LiteSpeed Support Forums > External Applications > PHP > "fopen" function doesn't work in llitespeed

Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2013, 11:01 PM
adib125 adib125 is offline
New Member
 
Join Date: Apr 2013
Posts: 2
Default "fopen" function doesn't work in llitespeed

hi
my php version is 5.3.20 and webhost control panel is Directadmin.
my web server is litespeed 4.2.1.
when we use fopen function in scripts it does'nt work.
what is solution ??
plz help me
Reply With Quote
  #2  
Old 04-23-2013, 07:22 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
check error log (i.e. /var/log/httpd/error_log) for any indication. you may paste code snippet here to help troubleshooting.
Reply With Quote
  #3  
Old 04-23-2013, 10:57 PM
adib125 adib125 is offline
New Member
 
Join Date: Apr 2013
Posts: 2
Default error log

2013-04-24 07:23:29.545 [NOTICE] [5.202.50.233:13746-0#APVH_www.domain.com] [STDERR] PHP Warning: fopen(.ada.php): failed to open stream: Permission denied in /home/clipdooni/domains/domain.com/public_html/ntabs/addfile.php on line 15

and 15th line in addfile.php is :
"$create_file = fopen($file, "w+")"
Reply With Quote
  #4  
Old 04-24-2013, 12:14 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
check the directory permission. seem php user has no write permssion in ntabs folder.

Quote:
ls -ld /home/clipdooni/domains/domain.com/public_html
ls -ld /home/clipdooni/domains/domain.com/public_html/ntabs
Reply With Quote
Reply

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 08:37 AM.



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