#1  
Old 17th September 2012, 23:46
lucani lucani is offline
Member
 
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
Default Internal error 500 with suphp

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.
Reply With Quote
Sponsored Links
  #2  
Old 18th September 2012, 14:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
ls -la /var/www/clients/client4/web5/web/media/
? Seems as if the directory is group writable.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th September 2012, 14:05
lucani lucani is offline
Member
 
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
Default

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 by lucani; 18th September 2012 at 14:11.
Reply With Quote
  #4  
Old 19th September 2012, 14:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Try
Code:
chmod 755 /var/www/clients/client4/web5/web/media/
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 19th September 2012, 15:23
lucani lucani is offline
Member
 
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
 
Default

Already done, problem still occurs.
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
suPHP 0.7.0 compatible with ISPConfig2 ? Hans Installation/Configuration 9 30th January 2009 12:52
Postfix + DKIM - Error in log donb01 Server Operation 2 24th July 2008 17:59
Goal: user separation (but apache can't read what suPHP wrote) berny Installation/Configuration 1 26th April 2008 18:22
suPHP 500 Internal Server Error mattbrown Installation/Configuration 17 29th November 2006 16:23


All times are GMT +2. The time now is 10:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.