Reset generated wp-config.php with wp-cli

How can I solve this and besides, Can someone explain me where this temporary config file is located? This will be generated in the WordPress root folder, the same from where you call the wp-cli. Keep in mind you need to provide the correct username password and database name, else it will error. If you … Read more

Change WordPress directory

Move your site files from site.com/website to site.com/wordpress (or just rename the folder if you prefer) Download the Search/Replace PHP script from here: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ and read the instructions carefully. Upload the Search/Replace PHP script to your new site location in a suitable folder eg. site.com/wordpress/srdb Run the script by visiting site.com/wordpress/srdb Enter the existing site … Read more

WP install in sub-dir white screen

If WordPress is installed in the directory /dir1/dir2 and the corresponding .htaccess file is also in that subdirectory, ie. /dir1/dir2/.htaccess, then the .htaccess file should look something like: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] </IfModule> # END WordPress … Read more

When I try to install VersionPress, it tells me, “The package could not be installed. No valid plugins were found.”

It looks like the file you downloaded, versionpress-master.zip, isn’t structured like a WordPress plugin. When I unzip versionpress-master.zip, the plugin looks like it’s in the directory plugins/versionpress. You’ll need to copy that directory and all its contents to your site’s plugin directory (usually wp-content/plugins). Edited to add: The official site’s installation instructions indicate that you … Read more

wp-config.php being written by attacker

I would do the following things – 1) Check if any malicious content lives on the site. You can use free tools like – https://sitecheck.sucuri.net/ 2) Change folder permission of your WordPress installation to 755 if it’s not set to that already. Also change the wp-config.php file permission to 755 to be on the safe … Read more

How to work locally on a copy of my wordpress?

You may first need to modify the wp-config.php file for using the local database. Then use the Search and Replace plugin to replace all your live site links with the localhost links. Example: If your live site url is: http://mysite.com/, replace it with http://localhost/mysite/. This will also replace the urls for pages and posts like: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)