"fopen" function doesn't work in llitespeed

Discussion in 'PHP' started by adib125, Apr 23, 2013.

  1. adib125

    adib125 New Member

    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
  2. webizen

    webizen New Member

    check error log (i.e. /var/log/httpd/error_log) for any indication. you may paste code snippet here to help troubleshooting.
  3. adib125

    adib125 New Member

    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+")"
  4. webizen

    webizen New Member

    check the directory permission. seem php user has no write permssion in ntabs folder.

Share This Page