Accidentally deleted config.php, control panel login blank
Posted: 21 November 2008 09:25 AM
[ Ignore ]
Summer Student
Total Posts: 22
Joined 03-13-2008
I acidentally deleted my config.php page from my server and after creating a new one based on one from another EE site, the site is now visible again.
The problem now is that I can’t login to the control panel. The login page is just a blank screen. Have I missed something on the config.php page?
Thanks
Posted: 21 November 2008 09:31 AM
[ Ignore ]
[ # 1 ]
Moderator
Total Posts: 16153
Joined 05-15-2004
Is your path.php still there? That said, can you post your config.php (minus personal information like passwords etc.)?
Signature
Everything will be good in the end. If it’s not good, it’s not the end.
Posted: 21 November 2008 09:40 AM
[ Ignore ]
[ # 2 ]
Summer Student
Total Posts: 22
Joined 03-13-2008
Here’s what I’ve got:
<?php if ( ! defined ( 'EXT' )) { exit( 'Invalid file request' ); } $conf[ 'app_version' ] = "164" ; $conf[ 'license_number' ] = "" ; $conf[ 'debug' ] = "1" ; $conf[ 'install_lock' ] = "1" ; $conf[ 'db_hostname' ] = "xxxx" ; $conf[ 'db_username' ] = "xxxx" ; $conf[ 'db_password' ] = "xxxx" ; $conf[ 'db_name' ] = "xxxx" ; $conf[ 'db_type' ] = "mysql" ; $conf[ 'db_prefix' ] = "exp" ; $conf[ 'db_conntype' ] = "0" ; $conf[ 'system_folder' ] = "system" ; $conf[ 'cp_url' ] = "http://www.mddcdance.co.uk/12345/index.php" ; $conf[ 'doc_url' ] = "http://expressionengine.com/docs/" ; $conf[ 'cookie_prefix' ] = "" ; $conf[ 'is_system_on' ] = "y" ; $conf[ 'allow_extensions' ] = "n" ; $conf[ 'multiple_sites_enabled' ] = "n" ; ?>
Mod Edit: Changed system folder name
Posted: 21 November 2008 09:58 AM
[ Ignore ]
[ # 3 ]
Moderator
Total Posts: 16153
Joined 05-15-2004
Well, that should be good. pth.php is OK? You actually have a directory named, well whatever it is you changed it to (I edited it out in your sample)?
Signature
Everything will be good in the end. If it’s not good, it’s not the end.
Posted: 21 November 2008 10:52 AM
[ Ignore ]
[ # 4 ]
Summer Student
Total Posts: 22
Joined 03-13-2008
path.php seems ok:
$system_path = “./system/”;
Posted: 21 November 2008 10:54 AM
[ Ignore ]
[ # 5 ]
Moderator
Total Posts: 16153
Joined 05-15-2004
Where “system” is your changed path, correct?
Signature
Everything will be good in the end. If it’s not good, it’s not the end.
Posted: 21 November 2008 10:55 AM
[ Ignore ]
[ # 6 ]
Summer Student
Total Posts: 22
Joined 03-13-2008
Posted: 21 November 2008 11:02 AM
[ Ignore ]
[ # 7 ]
Moderator
Total Posts: 2550
Joined 05-07-2007
Are you are still not able to log in?
-greg
Signature
Posted: 21 November 2008 11:04 AM
[ Ignore ]
[ # 8 ]
Summer Student
Total Posts: 22
Joined 03-13-2008
No just a blank page still where the login page should be. Doesn’t say ‘page not found’ though.
Posted: 21 November 2008 11:10 AM
[ Ignore ]
[ # 9 ]
Moderator
Total Posts: 2550
Joined 05-07-2007
ahh. okay, there’s probably an unhappy file or two that’s causing it to bork.
Check out this KB Entry . Make the changes to the index.php file in your system folder to try to force errors.
Let us know what results that gives you.
Also, what version & build are you running?
-greg
Signature
Posted: 21 November 2008 11:17 AM
[ Ignore ]
[ # 10 ]
Summer Student
Total Posts: 22
Joined 03-13-2008
The index.php already has this line of code in it.
Posted: 21 November 2008 11:21 AM
[ Ignore ]
[ # 11 ]
Moderator
Total Posts: 2550
Joined 05-07-2007
so you have already set /system/index.php from:
error_reporting ( 0 );
to:
error_reporting ( E_ALL );
And have you tried to add:
ini_set ( 'display_errors' , 1 );
as well?
Signature
Posted: 21 November 2008 11:30 AM
[ Ignore ]
[ # 12 ]
Summer Student
Total Posts: 22
Joined 03-13-2008
Sorry I made a mistake. I get the errors:
Warning: require(path.php) [function.require]: failed to open stream: No such file or directory in /htdocs/xxx/index.php on line 96
Warning: require(path.php) [function.require]: failed to open stream: No such file or directory in /htdocs/xxx/index.php on line 96
Fatal error: require() [function.require]: Failed opening required ‘path.php’ (include_path=’.:/usr/share/pear-php5’) in /htdocs/xxx/index.php on line 96
mod edit: obfuscated system paths.
Posted: 21 November 2008 11:37 AM
[ Ignore ]
[ # 13 ]
Moderator
Total Posts: 2550
Joined 05-07-2007
ah, okay!
Do you have a path.php file in the root level of your site?
Signature
Posted: 21 November 2008 11:38 AM
[ Ignore ]
[ # 14 ]
Summer Student
Total Posts: 22
Joined 03-13-2008
Yes:
<?php
//———————————————————————————
// DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
//———————————————————————————
// Path to the directory containing your backend files
$system_path = “./system/”;
//———————————————————————————
// MANUALLY CONFIGURABLE VARIABLES
// See user guide for more information
//———————————————————————————
$template_group = “”;
$template = “”;
$site_url = “”;
$site_index = “”;
$site_404 = “”;
$global_vars = array(); // This array must be associative
?>
Posted: 21 November 2008 11:54 AM
[ Ignore ]
[ # 15 ]
Summer Student
Total Posts: 22
Joined 03-13-2008
Greg,
My office is about to close for the weekend, so can we pick this up on Monday?
Thanks and have a good one.
Posted: 21 November 2008 11:57 AM
[ Ignore ]
[ # 16 ]
Moderator
Total Posts: 2550
Joined 05-07-2007
redfred:
What are the permissions of your path.php file set to?
Signature
Posted: 24 November 2008 03:35 AM
[ Ignore ]
[ # 17 ]
Summer Student
Total Posts: 22
Joined 03-13-2008