Internal error 500 with suphp

Discussion in 'Installation/Configuration' started by lucani, Sep 17, 2012.

  1. lucani

    lucani Member HowtoForge Supporter

    I have a problem with my site running with suphp. I noticed that content of iframe on one of my webpages doesn't load. When I try to open this address directly it gives Internal error 500. When I switched to fast cgi this particular page loaded, but rest of my site didn't (I set suphp mode intentionally).

    In /var/www/mysite.com/log/error.log file I see:
    Code:
    [Mon Sep 17 23:24:03 2012] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: tb_tinymce.js.php, referer: ......../pages/edit_form/61
    [Mon Sep 17 23:24:04 2012] [error] [client xxx.xxx.xxx.xxx] SoftException in Application.cpp:564: Directory "/var/www/clients/client4/web5/web/media" is writeable by group, referer: ........./pages/edit_form/61
    
    It is strange, because manually created file phpinfo.php also doesn't display. On the other hand there are some php files which returns
    "This text is generated by __call. If you expected the index page, you need to use: welcome/index//tinybrowser/css/slyle_tinybrowser.css.php"
    which looks like site framework message.

    File permissions and owners look ok.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /var/www/clients/client4/web5/web/media/
    ? Seems as if the directory is group writable.
     
  3. lucani

    lucani Member HowtoForge Supporter

    Code:
    root@web:~# ls -la .../media/
    total 24
    drwxrwxrwx 6 web5 client4 4096 May 12  2010 .
    drwxr-xr-x 6 web5 client4 4096 Mar 18  2011 ..
    drwxrwxrwx 3 web5 client4 4096 Jul 28  2010 css
    drwxrwxrwx 2 web5 client4 4096 Jun  8  2010 images
    drwxr-xr-x 9 web5 client4 4096 Sep 17 22:15 js
    drwxrwxrwx 2 web5 client4 4096 May 11  2010 pictures
    
    
    root@web:~# ls -la ..../media/js
    total 584
    drwxr-xr-x  9 web5 client4   4096 Sep 17 22:15 .
    drwxrwxrwx  6 web5 client4   4096 May 12  2010 ..
    -rwxr-xr-x  1 web5 client4  16296 Jun  8  2010 advajax.js
    drwxr-xr-x  2 web5 client4   4096 Jun  8  2010 lightbox2
    drwxrwxrwx  7 web5 client4   4096 Jun  8  2010 tinybrowser <<<<<<< directory where files are uploaded
    drwxr-xr-x 11 web5 client4   4096 Mar 18  2011 tiny_mce
    drwxr-xr-x  4 web5 client4   4096 Jun  9  2010 uploadify
    Static files (js, css, images) are accessible without any problem
    Looks like suphp has problem with executing php files in this directory
     
    Last edited: Sep 18, 2012
  4. falko

    falko Super Moderator Howtoforge Staff

    Try
    Code:
    chmod 755 /var/www/clients/client4/web5/web/media/
     
  5. lucani

    lucani Member HowtoForge Supporter

    Already done, problem still occurs.
     

Share This Page