Restoring .sql backup results in “Error establishing a database connection”
Restoring .sql backup results in “Error establishing a database connection”
Restoring .sql backup results in “Error establishing a database connection”
Webpage not found upon entering wrong username and password on custom login form?
Found answer here: https://stackoverflow.com/a/19718745/3691686 wampmanager -> PHP -> PHP Extensions -> php_zip
I fixed it. It actually wasn’t anything with the server permissions. It was PICNIC – the magical “wp-config” tweaks I put in – I put in an incorrect path to the uploads folder. Fix, tweak, done.
Could be that the database for the local version is still connected to the live version. Check you wp-config file as not all host use local host for databases some use fixed addresses..
Try changing “siteurl” and “home” in your wp_options table. The rest of the paths should stay the same then.
Found the problem. It was with my .htaccess file. While I had changed RewriteBase / to RewriteBase /mysite I did not realize I also had to change RewriteRule . /index.php [L] to RewriteRule . /mysite/index.php [L] That fixed it.
You’ll need to make some modifications to wp-config.php. Add the following so WordPress picks up the domain automatically based on the environment: define( ‘WP_SITEURL’, ‘http://’ . $_SERVER[‘SERVER_NAME’] ); define( ‘WP_HOME’, ‘http://’ . $_SERVER[‘SERVER_NAME’] ); Now we need to make WordPress a little more portable by having it determine which host to use based on which … Read more
Force relative path in media library for LAN deployment
Although I usually use a similar approach, I suggest you give sqlyog a try if you are in need of a professional solution that can quickly deploy mysql databases: https://www.webyog.com/ For content, use rsync, which is the fastest way to synchronize local and online. Hope it helps. Good luck.