Jump to content



Latest News: (loading..)

Eaviator

Member Since 13 Nov 2004
OFFLINE Last Active Apr 04 2013 09:31 PM
-----

Posts I've Made

In Topic: Unable to connect to database server

13 February 2013 - 09:37 PM

Lora,

Just because you can login into your MyPHPAdmin doesn't mean diddly, sorry Lora. You said you never had a problem until after you changed your password in MyPHPAdmin...So, you changed your password in your sites MyPHPAdmin to a new password but that wasn't for the database that was for your MyPHPAdmin.

Once you did that, did you insure that the original database user had all permissions for the database, and make sure that you used the correct user/password/ combination for your database in both your includes/configure.php and the admin/includes/configure.php files, because your error message is telling you the user doesn't have the correct password information or permissions for this database.

I would go back to your MyPHPAdmin and check it very carefully, because this is where your problem lays, with your username and password for the applicable database... Even better, instead of messing around sign into your MyPHPAdmin and make up a new user for the database you want to use, make sure to give that new username full permissions for the database and save it. Then go and change both files above to the new user/password combination. Hope this helps...

Cheers,
DougB

In Topic: Re-Installed on New ISP...Now I can't access my Admin section?

13 February 2013 - 08:27 PM

Jack,

In respect to what you've said about searching as opposed to looking through all the code, what do you suggest here. Using the search function in my .php code editor (Dev-PHP 2.6.0) or what? All help here is much appreciated. I've also tried using the supplied code from your reply above in my admin/application_top.php file as suggested and sent you a PM with the sites response afterwards. Thanks again!

DougB

In Topic: Re-Installed on New ISP...Now I can't access my Admin section?

13 February 2013 - 01:33 AM

Hey Guys,

Sorry for the confusion in asking my questions using correct terminology and my delay in responding to you both.

Chris in reply to your comments, there is no .htaccess file in the admin folder. With respect to the hosting company's, my new host is using linux with cPanel for administration of the account. The old host used Plesk on their server but the account was supposed to be hosted on a linux backbone as well so I'm lost concerning the httpdocs reference being a Windows server that was used.

Jack I used your .php check file from above (somehow the script lost the ?> on the end but I caught it) but it did give me the correct path to use as suggested. When the site was tested it gave me the result of /home/mysite.com/public_html. First I insured I had no extra config.php files locally, then changed the admin/includes/configure.php and includes/config.php to reflect the correct path. Currently the admin/includes/config.php file is like this:

  define('HTTP_SERVER', 'http://mysite.com');
  define('HTTP_CATALOG_SERVER', 'http://mysite.com');
  define('HTTPS_CATALOG_SERVER', 'http://mysite.com');
  define('ENABLE_SSL_CATALOG', 'false');
  define('DIR_FS_DOCUMENT_ROOT', '/home/mysite.com/public_html/');
  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_FS_ADMIN', '/home/mysite.com/public_html/admin/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_FS_CATALOG', realpath( dirname( __FILE__ ) . '/../../' ) . '/' );


I'm still getting the same error message with the site though so I'm assuming the problem has to be in here somewhere. This is what I'm getting when I try to login to the admin panel:


Fatal error: require() [function.require]: Failed opening required '/home/vhosts/mysite.com/httpdocs/includes/classes/action_recorder.php' (include_path='.:/usr/share/pear:/local/PEAR/') in/home/vhosts/mysite.com/httpdocs/admin/includes/classes/action_recorder.php on line 13


Does the fact that I'm using a host supplied temporary web address (used for checking the site prior to propagation/switching the DNS over to go live) have anything to do with this perhaps?

I'm really losing it here guys so anything will help...thanks...I'll be back first thing in the morning tomorrow at about 8:00 AM PST if either of you is available to go further with this giving me time to test it live as we try. I still can't figure out where the /vhosts/ nor httpdocs/ are coming into play in the error code as neither one is in any of the code throughout the entire site now...trust me I spent the entire weekend looking for any excess code...sigh. MY eye's are crossed, my brain's fried and my customer's PO'd...need I say more...

DougB

In Topic: Re-Installed on New ISP...Now I can't access my Admin section?

06 February 2013 - 08:16 PM

Hey Chris,

Nope no change from Windows to Linux. No .htaccess file. Here's the admin/includes/config.php section that's online giving me the error...(You'll also notice I used the cheat you gave me the last time I had issues with an ISP that didn't cover it's security as well as it could...hmmm).


define('HTTP_SERVER', 'http://mysite.com');
  define('HTTP_CATALOG_SERVER', 'http://mysite.com');
  define('HTTPS_CATALOG_SERVER', 'http://mysite.com');
  define('ENABLE_SSL_CATALOG', 'false');
  define('DIR_FS_DOCUMENT_ROOT', '/home/vhosts/mysite.com/');
  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_FS_ADMIN', '/home/vhosts/mysite.com/admin/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_FS_CATALOG', realpath( dirname( __FILE__ ) . '/../../' ) . '/' );

Any thoughts at all about what's going wrong here, sure appreciate the help...

DougB

In Topic: Help Urgently Required, failure to hook up to database after moving site

05 November 2012 - 04:41 PM

Hey Chris,

You da Man dude...it worked perfectly, great job! Thanks you for persisting on this, it's sure appreciated.

Cheers,
DougB