Support » Localhost Installs » wordpress not configuring on xampp

  • mostafamohamed198

    (@mostafamohamed198)


    This is my first time working with WordPress. I want to make it work on localhost xampp. I have followed the steps in the documentation and created the database but when I go to the URL localhost/database_name it gives me that database lost connection.

    I have searched to solve the problem and I found that I don’t have wp-config.php file in the database so I have created wp-config.php using wp-config-sample.php and when I created it and tried to configure again in localhost/database_name it doesn’t work.

    I have tried to make a new database with new configuration also but nothing worked. How can I solve this

Viewing 1 replies (of 1 total)
  • I have followed the steps in the documentation and created the database but when I go to the URL localhost/database_name it gives me that database lost connection.

    I don’t know which “documentation” is asking you to do this, but this is surely incorrect. More likely, you’re misunderstanding a step in the documentation.

    The URL to open should reference the folder containing the WordPress site, and NEVER the database name. eg localhost/wordpress, if your WordPress files are in a folder called wordpress.

    I have searched to solve the problem and I found that I don’t have wp-config.php file in the database so I have created wp-config.php using wp-config-sample.php and when I created it and tried to configure again in localhost/database_name it doesn’t work.

    The wp-config.php file is created automatically when you run the WordPress installer. But it seems you’ve not been able to run the installer, that’s why you don’t have one. And if you’re unable to run the installer at all, that’s a sign there’s something wrong with your setup… and manually creating the wp-config.php file isn’t going to help much.

    I have tried to make a new database with new configuration also but nothing worked. How can I solve this

    From your post, it seems the problem is not the database, but the URL you’re using to open the site. So kindly use the correct URL referencing the folder containing the site — not the database name — and let’s see how it goes.

    Standing by.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.