Elxis CMS Forum

Support => General => Topic started by: ROUBOS on October 14, 2013, 11:01:49

Title: 500 Internal Server Error
Post by: ROUBOS on October 14, 2013, 11:01:49
Hi all,
getting this "500 Internal Server Error"

I checked my htaccess file and removed the lines I added:
Code: [Select]
####### my additions #############

DirectoryIndex index.html index.htm index.php

#AddType application/x-httpd-php5 php php3 php4 php5 phtml

php_flag allow_url_fopen off

php_flag short_open_tag off

#php_flag register_globals Off

#php_flag display_errors Off

#php_flag magic_quotes_gpc On

#php_value date.timezone "Europe/Athens"

#php_value session.save_path "/tmp"
#php_value disable_functions "system, exec, passthru, shell_exec, suexec, dbmopen, popen, proc_open, disk_free_space, diskfreespace, set_time_limit, leak"

This site is hosted with TopHost.gr

When I remove these additions, the site works again but the content are not displayed.
In the error log I'me getting the following errors:

Code: [Select]
[Mon Oct 14 10:50:17 2013] [alert] [client 79.130.72.128] /var/www/vhosts/chalkitis.gr/httpdocs/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
Code: [Select]
[Mon Oct 14 06:36:08 2013] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
from TopHost support I was told that the site could be violated.

Any help to resolve this issue would be appreciated..

thanks
Title: Re: 500 Internal Server Error
Post by: ROUBOS on October 14, 2013, 11:03:54
OK I commented out these lines:

php_flag allow_url_fopen off

php_flag short_open_tag off

and it works like a charm again.

Does this mean that they have made changes to their server? So I shouldn't worry about the site being hacked?
Title: Re: 500 Internal Server Error
Post by: ROUBOS on October 14, 2013, 11:21:39
I don't have Elxis defender enabled, or floodblocker.
Should I enable these? I have not looked at their options/settings before so I have not made any changes to them since the initial install.

Are there any erro logs within the Elxis admin for me to check?
Title: Re: 500 Internal Server Error
Post by: datahell on October 15, 2013, 19:06:46
Not all servers allows you to change php settings via htaccess. In most cases you will get an error. Ask your hosting company.
Elxis 2009.x (I guess you use this version) does not have error logs. See your server's error log in this case.
Elxis 4.x does have its own error logging system.
Title: Re: 500 Internal Server Error
Post by: ROUBOS on October 16, 2013, 21:01:08
Well the site is working fine as is.
I did check the server error logs and it's what I posted here.

Since it is working I'll leave it at that I guess.
What concerns me is that that htaccess was working as it was before, and now I had to make that change to it.