Page 1 of 1

Blank page after database modification

Posted: Tue Dec 29, 2009 10:34 am
by Souhail
Hello,

When I try to connect to a clients website, I get a blank page on firefox and a Error 500 on Internet Explorer.

We have two servers, a dev server and a production server.

The site works fine on my dev server http://projets.tribaly.com/clients/app/

But as I said I get a blank page on the production server : http://www.app.ma/

Any Idea on what's causing this ?

Here are the sys info :



CMS Version

1.6.6

Installed Modules

CMSMailer

1.73.14

FileManager

1.0.1

MenuManager

1.6.2

ModuleManager

1.3.1

News

2.10.3

nuSOAP

1.0.1

Printing

1.0.4

Search

1.6.1

ThemeManager

1.1.1

TinyMCE

2.5.5

FormBuilder

0.5.10

FrontEndUsers

1.6.4

Forum

0.9.2

Config Information

php_memory_limit:

128M

process_whole_template:

false

max_upload_size:

2000000

default_upload_permission:

664

assume_mod_rewrite:

false

page_extension:



internal_pretty_urls:

false

use_hierarchy:

true

debug:

false

output_compression:

false

root_url:

http://www.app.ma

root_path:

/var/www/html (0777) Success

previews_path:

/var/www/html/tmp/cache (0777) Success

uploads_path:

/var/www/html/uploads (0777) Success

uploads_url:

http://www.app.ma/uploads

image_uploads_path:

/var/www/html/uploads/images (0777) Success

image_uploads_url:

http://www.app.ma/uploads/images

use_smarty_php_tags:

false

locale:



default_encoding:

utf-8

admin_encoding:

utf-8
PHP Information:

Current PHP Version (phpversion):

5.1.6 Success

md5 function (md5_function):

On (True) Success

GD version (gd_version):

2 Success

tempnam function (tempnam_function):

On (True) Success

Magic quotes in runtime (magic_quotes_runtime):

Off (False) Success

PHP Effective Memory Limit (memory_limit):

128M Success

Maximum Execution Time (max_execution_time):

60 Success

PHP Safe Mode (safe_mode):

Off (False) Success

Session Save Path (session_save_path):

/tmp (1777) Success

Session Use Cookies (session.use_cookies):

On (True) Success

Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file):

Success

PHP register_globals (register_globals):

On (True) Caution ?

PHP output_buffering (output_buffering):

4096 Success

disable_functions in PHP (disable_functions):

  Success

PHP Open Basedir (open_basedir):

  Success

Test for remote URL (test_remote_url):

Failure

File uploads (file_uploads):

On (True) Success

Maximum Post Size (post_max_size):

8M Caution ?

Maximum Upload Size (upload_max_filesize):

2M Caution ?

Basic XML (expat) support (xml_function):

On (True) Success

Test file_get_contents (file_get_contents):

On (True) Success

Test ini_set (check_ini_set):

On (True) Success
Server Information:

Server API (server_api):

cgi-fcgi

Server Database (server_db_type):

MySQL (mysqli)

Server Database Version (server_db_version):

5.0.27 Success

Server Software (server_software):

Apache

Server Operating System (server_os):

Linux 2.6.18-1.2798.fc6 On i686

Permission Information

tmp:

/var/www/html/tmp (0777) Success

templates_c:

/var/www/html/tmp/templates_c (0777) Success

modules:

/var/www/html/modules (0777) Success

File Creation Mask (umask):

/var/www/html/tmp/cache (0777) Success


Thanks for your help.

Re: Blank page after database modification

Posted: Tue Dec 29, 2009 11:36 am
by Rolf
Hi Souhail
When I try to connect to a clients website, I get a blank page on firefox and a Error 500 on Internet Explorer.
We have two servers, a dev server and a production server.
Looked in the PHP errorlog yet? Or debug on in the config.php.
After the moving of the site have the paths in the config.php been changed in the right way?
Perhaps the server settings of the production server are different, what could cause problems  :-\

Regards, Rolf  :)

Re: Blank page after database modification

Posted: Tue Dec 29, 2009 2:13 pm
by Souhail
config.php is fine.

Apache error_log file has many lines like this one :
[Tue Dec 29 07:04:24 2009] [error] [client 66.249.71.37] Premature end of script headers: php-script

Any idea ?

Re: Blank page after database modification

Posted: Tue Dec 29, 2009 2:33 pm
by Rolf
Try to change the permissions of your webfolders from 777 to 755.

Rolf

Re: Blank page after database modification

Posted: Tue Dec 29, 2009 2:46 pm
by Souhail
Hi,

All folders were set to 755 except modules and tmp.

I tried to give it bad mysql information, and turned debug on. Still gives 500 Error page on IE and blank page on firefox.

Any idea ?

Re: Blank page after database modification

Posted: Tue Dec 29, 2009 3:48 pm
by Rolf
Souhail wrote: All folders were set to 755 except modules and tmp.
But have you changed the permissions of the modules and other folders to 755?

When you search the forum on "Premature end of script headers: php-script" there are several similar topics on this. Some are marked [solved]

The folder permission is one of the solution there... Perhaps it might work for you. It is worth to try  ;)

Grtz. Rolf

Re: Blank page after database modification

Posted: Tue Dec 29, 2009 6:52 pm
by Souhail
Hi,

I just made a fresh install on the root of my hosting and still no luck !

Any idea ? I'm really lost here...

UPDATE : I have moved the files into a folder and all works perfectly. Something is wrong with the root folder of my hosting account.

I'm going to contact my hosting company. They should diagnose the problem.

Thanks again Rolf for your help and time.

I'll post back wherever solution I find.