View previous topic :: View next topic |
Author |
Message |
pmondoux Lurker

Joined: 11 Apr 2005 Posts: 2
|
Posted: Sun Jan 22, 2006 12:47 pm Post subject: Installation Errors |
|
|
I have looked through the other listing in this forum and did see the one on insrtalltion errors but I still have several errors. I have installed this before so I am not certain what I am doing wrong here.
Current errors are
Warning: main(/escalendar/includes/dbConnect.inc): failed to open stream: No such file or directory in /home/nhwgcap/public_html/escalendar/config.php on line 421
Warning: main(/escalendar/includes/dbConnect.inc): failed to open stream: No such file or directory in /home/nhwgcap/public_html/escalendar/config.php on line 421
Warning: main(): Failed opening '/escalendar/includes/dbConnect.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nhwgcap/public_html/escalendar/config.php on line 421
Unable to locate the database at this time.
Now I have checked the dbConnect.inc and the config.php and they seem correct. I know these errors ussually are errors connecting to the databse.
Here is what I have
$dbConnect = "/escalendar/includes/dbConnect.inc";
$directory = "/escalendar";
define ("DATABASE_NAME", this is correct and I don't want to place that in an open forum like this
Connect file has
$dbcnx = @mysql_connect("localhost", "username", "password");
Any Ideas? |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Sun Jan 22, 2006 2:08 pm Post subject: |
|
|
Quote: | $dbcnx = @mysql_connect("localhost", "username", "password"); |
Is that what you actually have in the file, or did you replace the three items with your server info? I wouldn't expect you to post the real login here, so just checking.
The error sounds like it's coming from within config.php, though, prior to the dbConnect connection failure.
Quote: | main(/escalendar/includes/dbConnect.inc)
/home/nhwgcap/public_html/escalendar/config.php
(include_path='.:/usr/lib/php:/usr/local/lib/php') |
That looks like a potential problem there. Your server include path doesn't match the files' location according to the error message. Try:
$dbConnect = "/home/nhwgcap/public_html/escalendar/includes/dbConnect.inc";
(Did you put the 'includes' folder within the calendar folder or is it outside the web root?)
Cheers,
Dan |
|
Back to top |
|
 |
connemara Window Shopper

Joined: 22 Mar 2005 Posts: 10 Location: Vancouver Island, Canada
|
Posted: Sun Aug 13, 2006 9:08 pm Post subject: installation problems |
|
|
Hi Dan:
I too am having the same problem with a new calendar installation. I have used exactly as you recommended below but still get the(same) error. The tables are all up fine and I used the following path:
$dbConnect = "/home/rugby/public_html/calendar/includes/dbConnect.inc";
I know the database name, user and passwords are all correct.
Does this path need adjusting do you think?
Connie Manning |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Sun Aug 13, 2006 9:50 pm Post subject: |
|
|
Ditto to the last question I asked above:
"Did you put the 'includes' folder within the calendar folder or is it outside the web root?"
If your 'includes' folder is not within the 'calendar' folder, then that's the source of your error.
Cheers,
Dan |
|
Back to top |
|
 |
connemara Window Shopper

Joined: 22 Mar 2005 Posts: 10 Location: Vancouver Island, Canada
|
Posted: Sun Aug 13, 2006 10:07 pm Post subject: installation problems |
|
|
Hi Dan:
I kept the file structure exactly how it came. So yes, the includes folder is inside the "calendar" directory.
calendar/
calendar/includes
calendar/images
calendar/templates
calendar/language
The dbConnect.inc is inside the includes. What did I miss?
Connie |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Sun Aug 13, 2006 10:33 pm Post subject: |
|
|
What's the exact error message you're getting?
Cheers,
Dan |
|
Back to top |
|
 |
connemara Window Shopper

Joined: 22 Mar 2005 Posts: 10 Location: Vancouver Island, Canada
|
Posted: Sun Aug 13, 2006 10:44 pm Post subject: installation problems |
|
|
Hi there Dan:
I get this:
Unable to locate the database at this time.
Another detail - not sure whether or not it is important. The site itself has just been moved over to a new server (the calendar script added to the new server), but the dns change has not been made - will probably be done tomorrow. Does that have any effect?
You can get to the site here:
http://209.172.32.92/~rugby and the calendar is in a folder within, so:
http://209.172.32.92/~rugby/calendar
What do you think?
Connie |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Sun Aug 13, 2006 10:57 pm Post subject: |
|
|
Ah, so it isn't exactly the same as above... Have you checked the error logs to see if there's a path error reported like with the original poster?
I don't think the DNS status should be an issue, as the include problem is a server path, not a URL. My guess is an incorrect path setting for the new server setup.
Cheers,
Dan |
|
Back to top |
|
 |
DonnaNJ Window Shopper

Joined: 20 Jun 2006 Posts: 24
|
Posted: Mon Aug 14, 2006 12:18 pm Post subject: Re: installation problems |
|
|
connemara wrote: | Hi there Dan:
I get this:
Unable to locate the database at this time.
Another detail - not sure whether or not it is important. The site itself has just been moved over to a new server (the calendar script added to the new server), but the dns change has not been made - will probably be done tomorrow. Does that have any effect?
You can get to the site here:
http://209.172.32.92/~rugby and the calendar is in a folder within, so:
http://209.172.32.92/~rugby/calendar
What do you think?
Connie |
Hi Connie
It's been my experience that usually DB stuff doesn't work until the DNS has been switched over and the paths are all correct.
Donna _________________ Donna
DBK Web Development |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Mon Aug 14, 2006 4:48 pm Post subject: |
|
|
The paths are definitely important, but that should be independent from the DNS and domain. I've seen funny stuff with DNS propagation, though.
Cheers,
Dan |
|
Back to top |
|
 |
|