Page 1 of 1

Internal Server Error after CPANEL install...

Posted: Sat Dec 08, 2007 12:56 am
by mykl
After installing 1.22 using http://wiki.cmsmadesimple.org/index.php ... ing_cPanel

and trying to run www.website.com/cms/ or www.website.com/cms/install/index.php I received the error below following:


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@website.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

--------------------------------------------------------------------------------

Apache/1.3.37 Server at www.website.com Port 80


I have also used http://wiki.cmsmadesimple.org/index.php ... ck_Install to change permissions to 777 or 666 like on documentation???

Help???


Mykl

Re: Internal Server Error after CPANEL install...

Posted: Sat Dec 08, 2007 1:46 am
by calguy1000

Code: Select all

More information about this error may be available in the server error log
What does your error log say?

Re: Internal Server Error after CPANEL install...

Posted: Sat Dec 08, 2007 10:02 am
by kermit
a couple common sources of 500 errors:

check your error log.... if you see entries such as this:
[2007-12-01 02:43:18]: error: directory is writable by others: (/home/username/public_html/install)

you need to unset write permissions for 'group' and 'other', as php in a cgi or suexec environment won't run a script if it or its directory is writable by 'group' or 'other' -- in these cases, you'd use 755 not 777 for directories and 644 for files.


also ensure you don't have any php settings in .htaccess if php runs as cgi.


NOTE: i have noticed filemanager preserving some funky permissions embedded in the zip files as downloaded from cmsmadesimple.org. these permissions have caused problems with php running as cgi as some directories that should not be writable by 'group' or 'other' are set as writable in the zip file. what i do is extract a distribution archive on a local windows pc then rezip the contents of (but not the directory itself) the 'cmsmadesimple' directory with WinRAR, then i upload the new zip (not rar) file into the directory that will become the cmsms root and use cpanel's filemanager to extract. if php runs as your user (php5/cgi here), there are then NO permissions to change on cmsms files or directories, all you need to do is create the database and assign a user to it, create config.php, and start the install script.