• Creating Dev Site for a client:

    I have created a dev database and copied the files and database but now getting to making the necessary changes to the wp-config and it’s not anywhere that I’ve found in the public_html/dev directory (checked in File Manager of Cpanel in addition to FileZilla).

    Is there something I’m missing here?

    I’ve also checked the public_html directory in case it didn’t copy and I don’t see it there either.

    Help. I’ve literally been googling for hours.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Tim Nash

    (@tnash)

    Spam hunter

    The wp-config.php file is normally created during the install process, if you haven’t installed WordPress rather copied it over and not copied the wp-config from the dev site then it won’t be there until you do the install.

    It’s also worth remembering the wp-config.php file can be one level higher then the WordPress folder so if you have public_html and inside it a folder wp with WordPress, the wp-config.php file could be in the wp folder or the public_html folder. Likewise if WordPress is just in the public_html folder then wp-config could be in it’s parent folder.

    So you can either copy the file from your dev site, open it in an editor and change the database details as needed.

    Run the WordPress installation, which will ask for DB details and the install will detect the WordPress tables existing and won’t overwrite them (but remember you will need to change your site_url and home_url options in wp_options or you won’t be able to login)

    Alternatively you can create a new file on the server called wp-config.php and populate it by copying the content from the sample one.

    Thread Starter RFScott

    (@rfscott)

    Hi Tim – thanks for the response,

    So this issue I’m running into is that I can’t find the file in neither the original OR the copy.

    Regarding the two options:
    – If I run the wordpress install, how do I go about doing that for a site that already exists? Keep in mind the current site works, I’m jut trying to create a dev version that I can work on without effecting the actual site.

    – Creating a new file on the server – how do I do this and where is the sample file?

    This is my first time creating a dev version of a site to work on so feel free to work me through this step-by-step.

    Thank you

    Tim Nash

    (@tnash)

    Spam hunter

    Your live site, won’t be working without a wp-config file so it will be there ?? if you are seeing a site, if you are simply seeing the install screen and it’s asking for DB credentials then it hasn’t found the wp-config.

    On your dev site, if you haven’t got a wp-config.php file existing currently when you visit your site, you will be asked for some db connection bits and then prompted to either let WordPress build you a wp-config.php file or give you the code to do it yourself.

    Alternatively a sample wp-config file is in the root of your WordPress folder.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating Copy of my Site in Cpanel, CANT FIND wp-config.php’ is closed to new replies.