SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: (F.L.A.M.E.R) on October 25, 2011, 10:14:27 PM

Title: The famous 500 Internal Server Error
Post by: (F.L.A.M.E.R) on October 25, 2011, 10:14:27 PM
So, myself and AngelinaBelle were discussing this via the PM once I found out these things:

Code: [Select]
[Sun Oct 23 02:27:50 2011] [error] [client 00.00.00.00] SoftException in Application.cpp:601: Directory "/home/sysden" is writeable by group, referer: http://sysden.com/smf/index.php?action=admin;area=packages;sa=install;package=SimplePortal_2.3.3.tar.gz
[Sun Oct 23 02:27:50 2011] [error] [client 00.00.00.00] Premature end of script headers: index.php, referer: http://sysden.com/smf/index.php?action=admin;area=packages;sa=install;package=SimplePortal_2.3.3.tar.gz
[Sun Oct 23 02:27:50 2011] [error] [client 00.00.00.00] File does not exist: /home/sysden/public_html/500.shtml, referer: http://sysden.com/smf/index.php?action=admin;area=packages;sa=install;package=SimplePortal_2.3.3.tar.gz

I was working on installing Simple Portal at one of my friends website and as soon as I do that, the permissions of /home/sysden change from 711 to 777 for some odd reason. The server runs cPanel/WHM and when I ran "tail" on apache running on the server, the above is what it throws out.

Mod does not get installed at all, the only thing which happens is that /home/sysden changes its permission to 777 and as the server is running suPHP, the server starts throwing 500 internal server error.

I have read this quite a few times on Simple Portal's main site. I hope that this helps you find out what is going wrong. If you need any more information, do let me know and I can run the commands through my friends server and provide you with the needful.

Additionally, if you have a fix for this, do let me know and I can run it through instead of manually installing Simple Portal on my friends website.

I still have a feeling that SP has something to do with the issue than the Package Manager. Either way, we might want to find a fix to this.

Please let me know if you need anything. I will try my best to troubleshoot this to the core.
Title: Re: The famous 500 Internal Server Error
Post by: [SiNaN] on October 26, 2011, 07:03:49 AM
The difference of SimplePortal package is that it's larger than a regular mod and it directly copies the directories rather than files. Otherwise, SimplePortal doesn't do anything special that may result in that. I'm pretty sure it's not an issue caused by SimplePortal.
Title: Re: The famous 500 Internal Server Error
Post by: (F.L.A.M.E.R) on October 26, 2011, 08:56:16 AM
Considering that it is quite big, however this issue will be faced on every SMF installation on a server which runs suPHP instead of DSO. All those users will have to install SP manually or else they won't be able to use it at all.

There should be something that can be done? I have used the temp directory trick, however the end result is the same.
Title: Re: The famous 500 Internal Server Error
Post by: [SiNaN] on October 26, 2011, 10:13:01 AM
I wish I could do something about it. However, I'm not very skilled with server stuff, to be honest, as I had little to no interaction with all those different kinds of servers and server setups. Sorry.
Title: Re: The famous 500 Internal Server Error
Post by: ccbtimewiz on October 26, 2011, 02:52:39 PM
Changing the handler on cPanel is very easy to do and takes only seconds. Log into WHM and navigate to: Main >> Service Configuration >> Configure PHP and SuExec

You simply select your PHP handler choice from the drop-down menu. Then hit “Save New Configuration”.

Note: If you do not see your desired choice in the drop-down menu, it may need to be compiled on the server first.
Title: Re: The famous 500 Internal Server Error
Post by: (F.L.A.M.E.R) on October 26, 2011, 06:54:16 PM
[SiNaN],
No problem, I'll try and track it down.

Veridis,
That is only for users who run a VPS or dedicated server. Out of 1000 users on a suPHP based server who may use SimplePortal or any big mod, 999 may be on shared hosting. So, its not quite easy as that. :)
Title: Re: The famous 500 Internal Server Error
Post by: ccbtimewiz on October 26, 2011, 09:28:22 PM
Out of the 30+ websites that I've managed with different customers, all of them ran DSO. I thought it was more of a staple to run DSO as a default as it is a lot faster than everything else (though Fast CGI might come up as a close second).

You ran into a problem, though the funny thing is DSO usually has more file permission errors than suPHP simply because of how it runs (from apache as "nobody"). The problem is certainly SimplePortal, and perhaps a few components of the Package Manager as well in places. This would need to be looked into further for a solution, but I did offer a workaround if you're really stuck and have no other alternatives.
Title: Re: The famous 500 Internal Server Error
Post by: [SiNaN] on October 27, 2011, 06:05:47 AM
I'll have to ask you not to make such sharp statements unless you have a solid proof, please.
SimplePortal 2.3.8 © 2008-2024, SimplePortal