Installation problem on shared hosting

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
assessino
Posts: 1
Joined: 11 May 2011, 04:22

Installation problem on shared hosting

Post by assessino »

I've downloaded version 1.2.5, extracted and uploaded all files to my shared hosting provider.
I've also changed config.inc.php to point to the correct mysql server (before I did this, I did get a mysql error on index.php).
Once this was done I tried to set up things with the install.php page in the admin folder, but all I'm getting is a blank page.
skayser
Posts: 9
Joined: 20 Apr 2006, 15:05

Re: Installation problem on shared hosting

Post by skayser »

Not sure whether it helps in your case, but I just hit the same issue on a system where the PHP session module was missing. Does your phpinfo() output include a section for the session module?
skayser
Posts: 9
Joined: 20 Apr 2006, 15:05

Re: Installation problem on shared hosting

Post by skayser »

As a general advice. If install.php gives you a blank page (whereas other PHP scripts work fine), try to remove the error suppression operator for the core.php inclusion. This way, critical errors in core.php won't be silently swalloed and instead you should get an indication as to why PHP terminates early.

Code: Select all

diff --git a/install.php b/install.php
index 77ace89..d196573 100644
--- a/install.php
+++ b/install.php
@@ -28,7 +28,7 @@ error_reporting( E_ALL );
 $g_skip_open_db = true;  # don't open the database in database_api.php
 define( 'MANTIS_INSTALLER', true );
 define( 'PLUGINS_DISABLED', true );
-@require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' );
+require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' );
 @require_once( 'install_functions.php' );
 @require_once( 'install_helper_functions.php' );
 $g_error_send_page_header = false; # bypass page headers in error handler
Post Reply