Welcome to Geeklog, Anonymous Tuesday, November 05 2024 @ 07:34 am EST

Geeklog Forums

SQL path


Joe

Anonymous
I'm using Go Daddy to host my site. I've created an SQL database but I don't know how to enter the path in the config.php file. What is the proper formatting for the sql server or "DB Host" field. All I have from Go Daddy is the following


mysqlXXX.secureserver.net

Do I need to add slashes or "http://" to that?

getting the following errors

Warning: main(http://mysite/blogfiles/system/databases/mysql.class.php): failed to open stream: HTTP request failed! HTTP/1.1 404 in /home/blogfiles/system/lib-database.php on line 117
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The DB host is just the host name - no http, no slashes. "mysqlXXX.secureserver.net" is fine.

You problem is that you entered a URL where you should have entered a path. $_CONF['path'] should not start with "http://".

bye, Dirk
 Quote

Joe

Anonymous
I'm getting a similiar but different error now.


Warning: main(/blog.mysite.com/blogfiles/system/databases/mysql.class.php): failed to open stream: No such file or directory in /home/content/html/blog/blogfiles/system/lib-database.php on line 117

Fatal error: main(): Failed opening required '/blog.mysite.com/blogfiles/system/databases/mysql.class.php' (include_path='.:/usr/local/lib/php') in /home/content/html/blog/blogfiles/system/lib-database.php on line 117

I removed the http:// from in front of the path fields, but I did put a forward slash there, and then tried it without the forward slash.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Joe: Warning: main(/blog.mysite.com/blogfiles/system/databases/mysql.class.php): failed to open stream: No such file or directory in /home/content/html/blog/blogfiles/system/lib-database.php on line 117

Please try to learn the difference between a URL (what you type into your browser) and a path (on the webserver's file system).

Form the error, I'd say your path should read

$_CONF['path'] = '/home/content/html/blog/blogfiles/';

bye, Dirk
 Quote

Status: offline

joe_joe

Forum User
Newbie
Registered: 04/01/06
Posts: 3
Sorry, thanks for the help though.
 Quote

Status: offline

joe_joe

Forum User
Newbie
Registered: 04/01/06
Posts: 3
Thanks again. I've got the site up and running but I can see I have a lot of reading to do.

Do you reccomend a text editor that will show you the number of each line so I can find the ones there are problems with?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by joe_joe: Do you reccomend a text editor that will show you the number of each line so I can find the ones there are problems with?

Definitively. This FAQ entry has a few links to discussions recommending editors.

bye, Dirk
 Quote

All times are EST. The time is now 07:34 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content