Thread Starter
skrp
(@skrp)
Oh I forgot to mention: When I click on the link to create a wp-config.php file through a web interface I ge this:
Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.
I have upload all the file the wp-config.php file is there.
It should be:
define('DB_NAME', 'peakoilportal.com'); // The name of the database
but I doubt there is a DB with such a name…
Thread Starter
skrp
(@skrp)
When I log-in to my control panel under the MySQL section it has the database name as peakoilportal_com
I copied what you had above with the the name as peakoilportal_com but I still can’t get it to work.
OK, put here the 4 lines from your wp-config.php file, like this:
// ** MySQL settings ** //
define('DB_NAME', 'peakoilportal_com'); // The name of the database
define('DB_USER', 'your_username_here'); // Your MySQL username
define('DB_PASSWORD', '*****'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
What control panel do you have? You may want to read these guides that address different control panels:
http://codex.ww.wp.xz.cn/Installing_WordPress
Thread Starter
skrp
(@skrp)
<?php
// ** MySQL settings ** //
define(‘DB_NAME’, ‘peakoilportal_com’); // The name of the database
define(‘peakoil’, ‘username’); // Your MySQL username
define(‘********’, ‘password’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
Now, please, take a second look at the code I’ve posted and correct your wp-config.php file!
Everything that is in capital letters should remain as it was!
skrp – stop….
When you are changing the define lines… DO NOT TOUCH THE FIRST VALUES…. the ones that read DB_NAME, DB_USER, DB_PASSWORD and DB_HOST…. don’t change that text…. change the second ones only…
define(‘DB_NAME’, ‘peakoilportal_com’);
^- don’t change this ^- change this
define(‘DB_USER’, ‘your_username_here’);
^- don’t change ^- change
define(‘DB_PASSWORD’, ‘*****’);
^- don’t change ^- change
define(‘DB_HOST’, ‘localhost’);
^- don’t change ^- change
Hope this helps.
-tg
Edit – I hope it comes out right…. the display on the post keeps getting messed up.
Thread Starter
skrp
(@skrp)
OK I have added the proper changes but still can’t get it to work. Although, this was certanily a problem at least im one step closer to getting this thing running, I think, so thanks for that part.
This is what the config file looks like now:
// ** MySQL settings ** //
define(‘DB_NAME’, ‘peakoilportal_com’); // The name of the database
define(‘DB_USER’, ‘*****’); // Your MySQL username
define(‘DB_PASSWORD’, ‘*****’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
The only other think I can think of that may be a problem is how I have WordPress set up on my computer. I had to fool around with the directories to try a get the proper url for my blog that I wanted. At least that is what I was attempting to do.
Wordpress files on my computer
C:/crudeoil
wordpress
wp-admin
wp-content
wp-images
wp-includes
When there uploaded on to my hosting server under the www directory it goes:
www
crudeoil
wordpress
wp-admin
wp-content
wp-images
wp-includes
With the attempt of my blog being located at: http://www.peakoilportal/crudeoil
But then again this could all mean nothing or maybe it is vital to getting this thing working any imput at this point would be so appreciated.
Thanks,
Yeah, the structure of the folders is kinda importaint…..
OK…. I’m assuming that there is now a WordPress folder inside your crudeoil folder, right?
If so, then that’s good, and we are even one more step closer getting you up….
What you need to do is take the CONTENTS of the wordpress folder and move it to tthe crudeoil folder. At that point, you can remove the wordpress folder (which should now be empty) and run the install.
-tg
If you are not your own host, then it doesn’t really matter what you have on your computer when it comes about a hosted environment.
Actually your blog is here:
http://www.peakoilportal/crudeoil/wordpress and shows errors.
Thread Starter
skrp
(@skrp)
Thanks All I got it working!!!!
Good! Can you then mark this topic as “solved”, please?