Elxis CMS Forum

Support => Installation => Topic started by: nkod on November 23, 2006, 17:11:29

Title: [solved] Problem with Installation (Internal Server error)
Post by: nkod on November 23, 2006, 17:11:29
Hello there... Im new in Elxis...I have heard so many things about it and i decided to install it and work with it...

As mambo and joomla i uploaded the zip file (elxis_2006_3.zip) in the directory that i wantes to install it and then through File Manager of cpanel i extracted the files in the same folder... When i tried to reach the .../administrator/  or the /installation/ folder i get the big annoying(:P) message:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ............ 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. "

What can it be?? Once or twice of some installation i managed to reach the first page of preinstallation but while pressing next i get the same message...

Any help please?????
Title: Re: Problem with Installation (Internal Server error)
Post by: datahell on November 23, 2006, 18:58:03
/administrator/ folder can not be reached if you have not installed elxis.
Can you please give me your elxis url?
Title: Re: Problem with Installation (Internal Server error)
Post by: nkod on November 23, 2006, 21:30:23
500 Internal error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@petshopkivotos.gr 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.

www.petshopkivotos.gr/test

thanx for the quick respond
Title: Re: Problem with Installation (Internal Server error)
Post by: datahell on November 23, 2006, 21:52:42
Seems that your server does not have PHP support! It can not open any php file.

Check - Examples:
http://www.petshopkivotos.gr/test/INSTALL.php (http://www.petshopkivotos.gr/test/INSTALL.php)
http://www.petshopkivotos.gr/test/offline.php (http://www.petshopkivotos.gr/test/offline.php)
http://www.petshopkivotos.gr/test/CHANGELOG.php (http://www.petshopkivotos.gr/test/CHANGELOG.php)

All non-php files open fine, examples: (http://All non-php files open fine, examples:)
http://www.petshopkivotos.gr/test/README (http://www.petshopkivotos.gr/test/README)
http://www.petshopkivotos.gr/test/help/elxis.config.html (http://www.petshopkivotos.gr/test/help/elxis.config.html)

Elxis is an application written in PHP programming language. If you dont have PHP support you can not use Elxis.

Solutions: add PHP on your server or change host (You can peak GoUp -the official Elxis supporter company- or any other company).
Title: Re: Problem with Installation (Internal Server error)
Post by: nkod on November 23, 2006, 22:08:19
i tried to install mambo..and it worked perfectly..check www.petshopkivotos.gr/mambo .... u can see everything..

what else can it be the problem?

EDIT:
some extra info 4 help

Operating system Linux
Service Status Click to View
Kernel version 2.6.9-42.0.2.ELsmp
Machine Type i686
Apache version 1.3.37 (Unix)
PERL version 5.8.7
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 4.4.4
MySQL version 4.1.21-standard
cPanel Build 10.9.0-STABLE 65
Theme cPanel X v2.6.0 
Documentation Click to View
Title: Re: Problem with Installation (Internal Server error)
Post by: datahell on November 23, 2006, 22:36:01
What I see is that your server does not execute any php file inside the /test directory. This is not Elxis fault. I can not say why this is happening from here. Maybe there is an issue with directories/files owners/permisions. Check owners/permissions and also check any other thing you think seems to be strange (i.e. an htaccess file that does not allow running php inside that folder). I need FTP access to your site to tell you more.
Title: Re: Problem with Installation (Internal Server error)
Post by: nkod on November 23, 2006, 22:54:37
Well Here r the permissions...

test

Mode       User  Group  World
Read          v         v          v
Write          v                 
Execute       v         v        v
Permission    7       5        5

shall i put them 7 7 7???? All write too?



Title: Re: Problem with Installation (Internal Server error)
Post by: datahell on November 23, 2006, 23:23:38
No it's OK.
As I said something strange happens with this folder or server settings. I can not tell you more if I don't see it myself. Give me FTP access if you want to help you. The whole issue is not Elxis fault. Elxis can not run because for some reason php files do not get executed.
Title: Re: Problem with Installation (Internal Server error)
Post by: datahell on November 23, 2006, 23:29:53
Information gathered from the internet:

You get “500 - Internal server error” error message when a user tries to access your Apache or Lighttpd based dynamic php application (such as forum or blog software).

Generally, to solve this problem you need to take help of log files located at following location:
=> /var/log/message
=> /var/log/httpd/error_logs (/var/log/lighttpd/error_log or /var/log/httpd/error_log)

So you may be wondering why your PHP script throws an Internal Server Error 500.

This error only occurs because of web server software. However after looking through logs you may not find many details. This problem may be caused by:

    * A malformed php cgi script
    * An invalid directive in an .htaccess or other config file
    * Limitation imposed by file system and server software (for example php log file size set to 10Mb)
    * Missing php.ini (or cannot read php.ini file)

In most case it is an invalid .htaccess directive. However recently I came across a web server w/o /etc/php.ini file. A long time ago I setup this server )Apache chrooted jail). So you need to maintain two files one outside jail and another inside jail:
=> /etc/php.ini
=> /chroot/etc/php.ini <– this file was missing

Many scripts open this file on fly to get correct configuration directives. If this file not found you get error 500. It took some time to figure out this problem. Finally strace helped me out to debug this problem.
Title: Re: Problem with Installation (Internal Server error)
Post by: datahell on November 24, 2006, 20:23:04
Problem solved. As I said it was a server issue (apache restrictions). Elxis installed by me and works fine.
Welcome to the Elxis family!

See installed site here: http://www.petshopkivotos.gr/test/ (http://www.petshopkivotos.gr/test/)

Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: nkod on November 24, 2006, 22:18:42
1000000000000000000000 Thanks to u man....

Thank u for the great work and support as well

Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: hazman on December 09, 2006, 02:33:48
Hello,

I'm having the same issue, so what was the solution? I would like to know it so I can install the CMS.

Thank you.
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: eliasan on December 09, 2006, 09:21:13
Hi hazman,

I would start by checking the System Requirements List (https://www.elxis.org/index.php?option=com_content&task=view&id=68&Itemid=114) and making sure that the environment is compatible with Elxis.
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: datahell on December 09, 2006, 09:36:20
Welcome David,
The problem was the follow: His apache return a 500 error every time a file that Elxis called directly (index.php files mostly) had permissions 666. We changed the permisions to 644 to these files and workded fine. There is no problem files to have 666 permisions if the they only get included (ie configuration.php, elxis.php etc), so you have only to change permisions in files that elxis calls directly.
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: hazman on December 09, 2006, 15:44:10
Hello,

Could you tell me exactly which files and in what directories I need to change to 644?

Thanks
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: datahell on December 09, 2006, 16:01:17
First off all you should have this problem in installation. So, change permissions to 644 for files located inside the /installation directory (index.php, install.php, install2.php etc) . Is now installation run fine? If yes, proceed to elxis installation.

After installation finish and if you have the same problem in main site change permissions to 644 to files:
index.php
index2.php
includes/captcha/listen.php
mambots/editors/tinymce/jscripts/tiny_mce/plugins/ibrowser/ibrowser.php
administrator/index.php
administrator/index2.php
administrator/index3.php
administrator/logout.php

Any other file that is called directly and that I may forgot to mention.
If you have SSH access you can very easily change mode to 644 to all files (use 755 for directories) using a command like this:

for files: find . -type f -exec chmod 644 {} \;
for directories: find . -type d -exec chmod 755 {} \;
Don't forget afterwards to make needed files/directories writable because the above commands will chmod ALL files/dirs.

For writable files: 666
For writable directories: 777
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: hazman on December 09, 2006, 20:40:18
Hi,

Ok, I managed to get thru the installation and the backend is fine, but I'm still getting the 500 Internal Server Error in the forntend even tho I have set the permissions in the frontend in index.php and index2.php to 644 just like you said.

What could be wrong here? This is the error:

Quote
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@xtremeopensource.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.

Thanks for your help.
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: datahell on December 09, 2006, 21:12:59
You can easily find which files causes this error from your apache error logs.
Go to your cpanel (or plesk, or any other available) and see error_logs. Find the files that causes the 500 error and change permissions to 644 to them.
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: hazman on December 10, 2006, 00:16:48
This is what I'm getting:

Quote
Premature end of script headers: /xxxxxx/xxxxxx/public_html/elxis/index.php

The file is 644 and I still get this.
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: datahell on December 10, 2006, 11:25:03
chmod files (644) and directories (755) and the problem should be solved. Find the files that causes this error from your error log. Check also that the files this error are ok and not half-uploaded.


http://wordpress.org/support/topic/92552?replies=2
http://forum.j-prosolution.com/openwp-bugreport/25-premature-end-script.html
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: hazman on December 10, 2006, 18:57:41
I think the problem was configuration.php file's permissions.

I'm gonna do a new install, want to test something.

[EDIT #3] - OK! Success!!!  :) I have the install in a directory called elxis and the permissions were set wrong, I set them at 755 and walla!

Thanks for your help man.
Title: Re: [solved] Problem with Installation (Internal Server error)
Post by: ioannis_paps on January 13, 2007, 03:33:12
I too encountered this problem with Internal Server errors being generated.
Just a suggestion but wouldn't it be worth while to actually pack the Elxis installation with the correct file permissions to begin with? This would solve the problem for users.