• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Solved] 500Internal Server Error after moving to new server
PostPosted: Fri Jun 01, 2012 6:27 pm 
Offline
New Member

Joined: Tue Nov 01, 2011 8:33 am
Posts: 5
I moved CMSMS 1.10.3 to new hosting and changed domain. Now I am getting this message:

500 Internal Server Error
Error message: Premature end of script headers: index.php


But Admin works perfectly!!! I can edit sites, gallery, news, clear cache, everything.

http://www.tsk.cz

I checked config.php, .htaccess, then i tried to copy back folder INSTALL from the same version. Installation successful (without creating tables), but error remains.

Please, help.

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

Cms Version: 1.10.3

Installed Modules:

CMSMailer: 2.0.2
CMSPrinting: 1.0
FileManager: 1.2.0
MenuManager: 1.7.7
ModuleManager: 1.5.3
News: 2.12.3
Search: 1.7
ThemeManager: 1.1.4
TinyMCE: 2.9.6
Gallery: 1.5.3
FormBuilder: 0.7.2

Config Information:

php_memory_limit:
process_whole_template: false
output_compression: false
max_upload_size: 16000000
default_upload_permission: 664
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:

phpversion: 5.3.10
md5_function: On (YES)
gd_version: 2
tempnam_function: On (ANO)
magic_quotes_runtime: Off (NO)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 90
output_buffering: 4096
safe_mode: Off (NO)
file_uploads: On (YES)
post_max_size: 17M
upload_max_filesize: 16M
session_save_path: /tmp/ (1777)
session_use_cookies: On (YES)
xml_function: On (YES)

Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.52

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

config.php:

Code:
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = '*******';
$config['db_username'] = '*******';
$config['db_password'] = '*******';
$config['db_name'] = '******';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://www.tsk.cz';
$config['timezone'] = 'Europe/Prague';
$config['default_encoding'] = 'utf-8';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
?>


.htaccess:

Code:
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>


Last edited by goatee2905 on Fri Jun 01, 2012 7:05 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: 500 Internal Server Error after moving to new server/dom
PostPosted: Fri Jun 01, 2012 6:30 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 6583
Location: Fernie British Columbia, Canada
Please enable debug mode:

in the config.php
$config['debug'] = true;

reload your front page, and see if you get any errors.

_________________
Follow me on twitter
--
if you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
----------------
Don't make me angry..... you won't like me when I'm angry....


Top
 Profile  
 
 Post subject: Re: 500 Internal Server Error after moving to new server/dom
PostPosted: Fri Jun 01, 2012 6:39 pm 
Offline
New Member

Joined: Tue Nov 01, 2011 8:33 am
Posts: 5
Done, but nothing changed, still the same error page.


Top
 Profile  
 
 Post subject: Re: [Solved] 500Internal Server Error after moving to new se
PostPosted: Sun Jun 03, 2012 7:48 am 
Offline
New Member

Joined: Tue Nov 01, 2011 8:33 am
Posts: 5
I fixed it: my hosting does not allow to set permission 777 for the root folder, in my case www.
755 is OK.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner