[Solved] 500Internal Server Error after moving to new server

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
goatee2905
New Member
New Member
Posts: 5
Joined: Tue Nov 01, 2011 8:33 am

[Solved] 500Internal Server Error after moving to new server

Post by goatee2905 »

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: Select all

<?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: Select all

<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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: 500 Internal Server Error after moving to new server/dom

Post by calguy1000 »

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
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
goatee2905
New Member
New Member
Posts: 5
Joined: Tue Nov 01, 2011 8:33 am

Re: 500 Internal Server Error after moving to new server/dom

Post by goatee2905 »

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

Re: [Solved] 500Internal Server Error after moving to new se

Post by goatee2905 »

I fixed it: my hosting does not allow to set permission 777 for the root folder, in my case www.
755 is OK.
Locked

Return to “[locked] Installation, Setup and Upgrade”