rudym
Forum Replies Created
-
Forum: Localhost Installs
In reply to: setup-config.phpThis is included in the WordPress download. You can try copying it from a fresh WordPress download, but I don’t know how you would have lost this in the first place.
Forum: Localhost Installs
In reply to: Trying to download and edit live WordPress site using local hostIs your Apache service running? You may also want to ensure the MySQL service is running. I’m not familiar with MAMP, but it may have a control panel for this.
Forum: Localhost Installs
In reply to: Backup with phpmyadminTo my awareness, no. You can always import it locally on your machine in a XAMPP/WAMP environment to make sure.
And you can back it up using a WordPress plugin; I use BackUpWordPress: https://www.ads-software.com/plugins/backupwordpress/
Forum: Localhost Installs
In reply to: Working locally with a live databaseI would think just pointing your DB_HOST in the wp-config.php file to your live DB would suffice. Have you tried this?
Can you try logging in from the terminal? Also, you don’t have to, but set a password for root, just for good practice.
Forum: Localhost Installs
In reply to: wp-admin redirects to wp-login.php after moving site to localhostI had a problem where everything kept re-directing me to production. So, I basically just disabled all add-ons. You can do this in the DB:
update wp_options set option_value = 'a:0:{}' where option_name = 'active_plugins'
Forum: Localhost Installs
In reply to: Funky permalinks settingsThis problem seems to occur whenever I deploy a backup of my wordpress, both DB and WordPress files.
Forum: Localhost Installs
In reply to: Funky permalinks settingsMy issue seems to be that once I download and deploy WordPress from backup in my localhost machine, the links don’t work right away. So, I log in and just VIEW the permalink settings, without saving, and the links work thereafter.
I’m not sure why this is the case, but so far I haven’t found a way to mimic this without having to manually logging in to view the permalink settings. And, upon review of the options-permalink.php page, I just stumbled across the call to flush_rewrite_rules(), and thought this was the trick. But, as I alluded to, the wp-cli command doesn’t seem to do the trick. I even tried to alter this directly in MySQL, but still no dice.
Forum: Localhost Installs
In reply to: setup-config.phpHave you checked to confirm this in your directories? I checked my version of wordpress, and these files are in the folder specified: …\mywordpress\wp-includes\random_compat\random.php.
Also, is that where your PHP is located, in C:\PHP\ ? Sorry, I’m not too familiar with WAMP.
Forum: Localhost Installs
In reply to: Localhost redirects to live siteNo, I didn’t have to click save, just load the page. I’ve been trying to do something using WP-CLI to see if I can produce similar results without logging in. The commands I’ve tried so far, to no avail, are:
wp rewrite flush –hard –path=c:\xampp\htdocs\mywordpress
wp cache flush –path=c:\xampp\htdocs\mywordpress
As for the solution to my other problem, I’ve resorted to just disabling the plugins, since it’s for development anyways.
Forum: Localhost Installs
In reply to: Localhost redirects to live site1 – Not that I’m aware of, but yes, this is another issue I’m looking into. Seems like the links don’t work until I just click to view the permalink settings from the dashboard. Then the links work ok after.
2 – No, this is a local setup I’m working with now.
3 – This is no longer an issue once the plugins have been disabled. I think it was one of the plugins that handled redirects automatically for SEO purposes.
Forum: Localhost Installs
In reply to: Funky permalinks settingsOk, I’m looking to mimic a similar thing using WP-CLI and figured something like:
wp rewrite flush --hard --path=c:\xampp\htdocs\mywordpress
But this doesn’t do it. In the permalinks page, it executes
flush_rewrite_rules()
. How can I execute this WP function?Forum: Localhost Installs
In reply to: Localhost redirects to live site1 – Yes, initially set up to reflect the same creds as the public.
2 – Yes, one of the first things that are done upon importing the SQL data.Forum: Localhost Installs
In reply to: Everything is working fine until I try to leave the homepage…The only thing I did in addition to the steps you linked was an update to wp_postmeta:
update wp_postmeta set meta_value = replace(meta_value, 'https://www.cryonite.com', 'http:\\localhost\www.cryonite.com')
Forum: Localhost Installs
In reply to: Help with WordPress local copy from productionDisregard. My solution was indeed to disable all plugins via mysql update, but I had also fat-fingered one of the updates to post links to pages that don’t exist. All clear now. Thanks!