cancel
Showing results for 
Search instead for 
Did you mean: 

Where do I point a CMS to find my database?

mikecallow
Newbie
Posts: 4
Registered: ‎26-05-2009

Where do I point a CMS to find my database?

Hi, just installing Wordpress to test as a blog system for a client, in the config.php file, I need to point it to my database. The trouble is, where do I point it to?
I'm on humbug, in case that helps. I had a look at the PAYH service, but since I do not regularly check the forums (as you can tell), it looks like I'm too late to sign up for free.
The code snippet is as follows:
/** MySQL hostname */
define('DB_HOST', 'http');

Thanks in advance all,
Mike
5 REPLIES 5
Ben_Brown
Grafter
Posts: 2,839
Registered: ‎13-06-2007

Re: Where do I point a CMS to find my database?

Hi there,
Just change 'http' to 'humbug' in the snippet there. You'll also need to change similar lines for DB_NAME, DB_USER and DB_PASSWORD.
HTH
mikecallow
Newbie
Posts: 4
Registered: ‎26-05-2009

Re: Where do I point a CMS to find my database?

Thanks for your quick reply, Ben. Much appreciated!
mikecallow
Newbie
Posts: 4
Registered: ‎26-05-2009

Re: Where do I point a CMS to find my database?

Another quick question: I've set WordPress up, all is working well. But to view it obviously I require the URL 'http://ccgi.username.plus.com/'
I noticed a guide on the WordPress site that enables users to move WordPress into a separate directory to the root directory in order to reduce clutter. The guide is as follows:
Quote
The process to move WordPress into its own directory is as follows:
   1. Create the new location for the core WordPress files to be stored (we will use /wordpress in our examples). (On linux, use mkdir wordpress from your www directory. You'll probably want to use "chown apache:apache" on the wordpress directory you created.)
   2. Go to the General panel.
   3. In the box for WordPress address (URL): change the address to the new location of your main WordPress core files. Example: http://example.com/wordpress
   4. In the box for Blog address (URL): change the address to the root directory's URL. Example: http://example.com
   5. Click Update Options. (Do not worry about the error message and do not try to see your blog at this point! You will probably get a message about file not found.)
   6. Move your WordPress core files to the new location (WordPress address).
   7. Copy the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address).
   8. Open your root directory's index.php file in a text editor
   9. Change the following and save the file. Change the line that says:
      require('./wp-blog-header.php');
      to the following, using your directory name for the WordPress core files:
      require('./wordpress/wp-blog-header.php');
  10. Login to the new location. It might now be http://example.com/wordpress/wp-admin/
  11. If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can't write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file (in the same directory as the main index.php file.)

I would sooner have the URL as 'http://www.username.plus.com/blog', but this won't work for us CCGI Plus users, will it? Am I right in saying PHP will not parse unless it's installed on the CCGI server? So I need to keep the WordPress core files the directory in 'http://ccgi.username.plus.com/' for it to keep working.
I think I may purchase a new host, as it seems to be more awkward working with Plus.com's hosting than a dedicated host.
Cheers,
Mike
Cheesy
Ben_Brown
Grafter
Posts: 2,839
Registered: ‎13-06-2007

Re: Where do I point a CMS to find my database?

You are right, PHP will only work on the CCGI platform, and not your 'normal' webspace. If you have a domain on your account you can point it at the CCGI platform, but unfortunately you can't point www.username.plus.com there.
mikecallow
Newbie
Posts: 4
Registered: ‎26-05-2009

Re: Where do I point a CMS to find my database?

OK, thanks Ben. This is just for testing purposes so I can set one up for a private client, so it shall do for my development needs for now.
Thanks again,
Mike