UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  eUKhost's Official Web Hosting Forum > Web Hosting and Domains > MySQL Hosting

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 22-01-2009, 06:40
new member
 
Join Date: Apr 2007
Posts: 9
Default connecting to mySQL DB

HI, totally new with php and mySQL and I need advice. I have uploaded a pre-built zen website with database and all files but when I try to logon, I am told it cannot connect to the database. I know exactly where the problem lies, but I simply cannot get the it right.

The two files I need to configure correctly (but which I am having trouble with) are includes/configure.php (1) and admin/includes/configure.php (2).

includes/configure.php (1) asks
// add your database and website details to the variables below

define('DB_SERVER_USERNAME', 'CHANGE');
// your username that you use to log into your web server
define('DB_SERVER_PASSWORD', 'CHANGE');
// your password that you use to log into your web server
define('DB_DATABASE', 'CHANGE');
// replace username with your web server username
define('DIR_FS_CATALOG', '/home/CHANGE/public_html/');

define('HTTP_SERVER', 'http://www.CHANGE.co.uk');
define('HTTP_COOKIE_DOMAIN', '.CHANGE.co.uk');
// do not include the www

admin/includes/configure.php (2) asks
// add your database and website details to the variables below

define('DB_SERVER_USERNAME', 'CHANGE');
// your username that you use to log into your web server
define('DB_SERVER_PASSWORD', 'CHANGE');
// your password that you use to log into your web server
define('DB_DATABASE', 'CHANGE');
// replace username with your web server username
define('DIR_FS_ADMIN', '/home/CHANGE/public_html/admin/'); // replace username with your web server username
define('DIR_FS_CATALOG', '/home/CHANGE/public_html/');
define('DIR_FS_DOCUMENT_ROOT', '/home/CHANGE/public_html');
define('SITE', 'www.CHANGE.co.uk');
define('WWW', 'http://www.CHANGE.co.uk');
define('HTTP_SERVER', 'http://www.CHANGE.co.uk');
define('HTTP_CATALOG_SERVER', 'http://www.CHANGE.co.uk');

My problem is that no matter how many times I change the these values, something is not going correctly.

My sites is Index of /, the zen cart is stored at http://eagleanddove.com/shop and according to cpanel, my database is eagleand_ebookstore.

I need help in knowing what to put into the CHANGE option on all the configure files, as I just can not get it right. This is the first time I have tried this, so I am a beginner with Zencarts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 22-01-2009, 07:12
Junior Member
 
Join Date: Sep 2008
Posts: 14
Default

In define('DIR_FS_CATALOG', '/home/CHANGE/public_html/');

Replace '/home/CHANGE/public_html/' With '/home/cpanel_username/public_html/shop'

as zen cart in under "shop" Folder you need to add "shop" after 'public_html'

IF you still face problem then please contact us on Live chat so that we can fix this problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 22-01-2009, 07:23
new member
 
Join Date: Apr 2007
Posts: 9
Default

Quote:
Originally Posted by Nancy J View Post
In define('DIR_FS_CATALOG', '/home/CHANGE/public_html/');

Replace '/home/CHANGE/public_html/' With '/home/cpanel_username/public_html/shop'

as zen cart in under "shop" Folder you need to add "shop" after 'public_html'

IF you still face problem then please contact us on Live chat so that we can fix this problem.

OK, will contact you on live chat as I have changed the values you suggested and I am still having problems. Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 22-01-2009, 09:05
Rock's Avatar
Technical Support (eUKhost.com)
 
Join Date: Oct 2006
Location: localhost
Posts: 3,356
Send a message via MSN to Rock Send a message via Skype™ to Rock
Default

You're welcome
__________________

Rock _a.k.a._ Jack
Windows Hosting || Windows Reseller Hosting
Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
Follow eUKhost on Twitter || Join eUKhost Community on Facebook

For complaints, grievances or suggestions kindly email our FeedBack Dept.
Proper action will be taken accordingly & instantaneously!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 20:06.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
UK Web Hosting by eUKHosting 3.1.0
UK Web Hosting by eUKHosting 3.1.0
Copyright © 2001-2012, eUKhost LTD. All rights reserved.

 


UK VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

VoIP Dedicated Servers
Asterisk, Trixbox Dedicated Servers

Business Web Hosting
100% uptime Hosting

UK Cpanel Hosting
cPanel Shared Hosting

Domain Hosting
Cheap Domains & Hosting Plans

UK Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

ColdFusion Hosting
ColdFusion Web Hosting
 
 

Android and Apple App


knowledgebase articles
eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting

Joomla Hosting
Joomla Web Hosting

Mambo Hosting
Mambo Web Hosting

Magento Hosting
Magento Web Hosting

Wordpress Hosting
Wordpress Web Hosting

 

Web Hosting Affiliate Program
 

popular blog categories

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles