Elxis CMS Forum

Support => Installation => Topic started by: ccabman on June 30, 2007, 23:30:26

Title: PHP Fatal error
Post by: ccabman on June 30, 2007, 23:30:26
when I call www.mydomaim.com I get this
" Fatal error: main() [function.require]: Failed opening required 'includes/Core/security.php' (include_path='.:/usr/local/lib/php') in /homepages/18/XXXXXXX/htdocs/cms/index.php on line 12 "

I can go to www.mydomaim.com/installation/ and run the installer just fine.
I get the same error when I go back to www.mydomaim.com

please help!
Title: Re: PHP Fatal error
Post by: datahell on July 01, 2007, 09:00:07
1. Check if this is the real path to your elxis root ( what is the XXXXXXX? Is it OK? ):
/homepages/18/XXXXXXX/htdocs/cms/

2. Remove/Rename the /installation directory after install.

3. Check that the configuration.php file was created in your elxis root folder.

4. Check that the file /includes/Core/security.php exists
Title: Re: PHP Fatal error
Post by: ccabman on July 01, 2007, 10:30:13
#1.  XXXXXXX is my user name from my hosting company. I did not want to give it out. so #1 is fine

#2. Did that, and there is no change.
 
#3. The configuration.php file is there with all of my settings from the installer.

#4. /includes/Core/security.php dose exists. and I tried all the different cmod settings. I get the same error.
Hmmm...

I use http://www.1and1.com/?k_id=9956978 (http://www.1and1.com/?k_id=9956978) for my hosting company maybe they are the the problem.

I don't know?

 
Title: Re: PHP Fatal error
Post by: datahell on July 01, 2007, 10:55:02
Do this:

Open index.php

add in the top of the file:
$elxroot = dirname(__FILE__);

replace this:
require_once( 'includes/Core/security.php' );
with this:
require_once( $elxroot.'/includes/Core/security.php' );

replace this:
if ( !file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10 ) {
   header( 'Location: installation/index.php' );
   exit();
}

include_once( 'globals.php' );
require_once( 'configuration.php' );

with this:
if ( !file_exists( $elxroot.'/configuration.php' ) || filesize( $elxroot.'/configuration.php' ) < 10 ) {
   header( 'Location: installation/index.php' );
   exit();
}

include_once( $elxroot.'/globals.php' );
require_once( $elxroot.'/configuration.php' );

Tell me if the problem solved.