• Resolved celticshaman

    (@celticshaman)


    I’ve searched the forum but can’t find the answers I need, so I hope someone can help me. When I type in http://localhost/folder/wp-admin/admin.php I get 404 page not found. The same happened with index.php

    I put up a new database prior to unzipping wordpress. I’ve put the wordpress folder in C drive, having first changed the folders name. I’ve changed the wp-config file as follows

    define('DB_NAME', 'dbname');
    define('DB_USER', 'dbuser');
    define('DB_PASSWORD', 'dbpassword');
    define('DB_HOST', 'localhost');  
    
     define('SECRET_KEY', 'secretkey');
    
    $table_prefix  = 'tableprefix';

    I’ve checked all my spellings, mysql is working, I tested my connections with phpinfo. I don’t know what else to try.

    If anyone is able to offer any advise could you please keep your explanation simple. I’m dyslexic and anything too technical is just a mindbowing jumble. Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • This happens to me all the time, so I have to throw it out as a solution. When you created a new database for WordPress, and a new user, did you remember to assign the user to the database? I swear, I run off and forget that one little detail all the time. πŸ˜‰

    Thread Starter celticshaman

    (@celticshaman)

    Yes I did. I created the database in phpmyadmin. As this was the first time I used phpmyadmin I followed the instructions very carefully.

    Your reply did make me wonder about one thing. When I created the new database I used a new username and password. I wondered if I should have added this new username to mysql. I don’t know enough to know if that was done automatically, so I opened the mysql client and added the new username and password. It made no difference so I’m back to square one.

    I know what you mean about that one little detail. I couldn’t understand why my test.php file returned a could not connect to mysql. After a lot of studying my file I realised that I had “” for the password when I had set one. I entered the password and bingo, there was the congratulations message. I’m hoping my current problem will be just as easy to solve – even if it leaves me redface!!

    Once you add the new user, you have to add the user to the database. Not just MySQL, you have to CONNECT the user to that newly created database. Just the act of creating the user is not enough.

    Thread Starter celticshaman

    (@celticshaman)

    The new username is added to the database with all privileges. I thought for one wonderful moment I had found the problem, when I checked out the username it had % instead of localhost, but I’ve put this right and it made no difference. This is all so silly.

    It is! And frustrating too, I bet. Who is your web host and what kind of back end do they have? I’m only familiar with Plesk and cPanel.

    Thread Starter celticshaman

    (@celticshaman)

    I’m with 9internet. I’ve got a free account at the moment. I didn’t want to start paying for one until I was sure I was happy with it. I’m working on an eshop and I’ll be upgrading when I’m ready to go live. It’s got Xtend, which I’ve not used before. I’ve just noticed they have WordPress Blog cgi script.

    I’ve had a couple of ideas to try. I’ve found a tutorial about running wordpress on a memory stick, using XAMPP Lite. I had already installed apache, php, mysql, phpmyadmin on my laptop, otherwise I would have used something like xampp on my laptop. I’ve also thought of getting wordpress up and running on my webhost, but I would much rather do all my experimenting on localhost first.

    It doesn’t look as though anyone here is able to help me, so I’m definately going to have to try something new

    Not sure if the 404 error is related to your database.

    Please make sure you are putting the wordpress files in the correct folder.

    On my local xampp install, if I want to access WordPress as localhost/wordpress, then the wordpress folder must exist under the web-root folder which is htdocs in my setup.

    Thread Starter celticshaman

    (@celticshaman)

    I’ve done it, I’ve got wordpress installed at last and it’s all thanks to my memory stick!!! I downloaded xampplite to my memeory stick as I said I would. I read through the instrutions while the file was unzipping and reached a part where it said all wordpress software files were to be placed in the htdocs folder. I had read a lot conflicting information concerning the placement of wordpress when I was installing it on my laptop, but I’m following this present tutorial exactly. I decided to see what would happen if I moved the files on my laptop from C drive to the htdocs folder. I typed in http://localhost/etc and there it was, wordpress, waiting for me to add a blog name and email address.

    This has taken so long and it’s only just the start of things. I’ve still got to learn how to uce wordpress and install the ecommerce plugin. I think I’ve earned a break in the garden for now before I start again.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Install/config must have gone wrong’ is closed to new replies.