Using second site as staging area

I just set up a dev.domain.com subdomain and mirror everything there, doing a find/replace on the sql export for www > dev, and of course changing wp-config. I used to have a staging server I mirrored things on, but I’ve since learned that a change in length of the domain name will invalidate any serialized … Read more

Best practice differences in DB options and wp-config between live, staging and local WordPress environments?

Seems like a good list you have going… Just a few that come to mind: SCRIPT_DEBUG to false on live and true on staging. WP_CACHE to true on live and false on staging. ping_sites to empty on staging to disable ping services. default_pingback_flag to 0 on staging to not send outgoing pingbacks. Maybe install a … Read more

Staging Site: Made Public – Security Questions

Whether or not you lock down a staging site really depends on how much you mind the public accidentally seeing a site that’s a “work in progress”. I’d usually consider it more of a branding decision than a security decision. (This of course wouldn’t apply if you’re in the middle of developing a secure application … Read more

Different color admin bars for dev, staging and production

You can use a filter to set the admin color scheme, which includes colors for the admin bar: <?php // add a filter add_filter(‘get_user_option_admin_color’, ‘wpse_313419_conditional_admin_color’); // function wpse_313419_conditional_admin_color($result) { // Dev: use ‘light’ color scheme if(get_site_url() == ‘http://dev.example.com’) { return ‘light’; // Staging: use ‘blue’ color scheme } elseif(get_site_url() == ‘http://staging.example.com’) { return ‘blue’; // … Read more

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