Skip to content

u/webdeveric

In this archive from Oct 2009 to Jan 2018

0
posts
68
comments
0
media
134
score

That isn't much info to go on. I'm assuming you're you using Apache on Linux or OS X and you have a local MySQL server.

You should create a unique virtual host and DB for each site then update the wp-config.php with the correct DB name, host, and credentials.

What is your server config currently?


Have you tried using Docker yet? I use it for local dev and I like it better than installing Apache, PHP, Node, etc. on the OS.

To get a development environment I just run docker-compose up dev and it brings up Apache/PHP/MySQL.

Starter repo: https://github.com/webdeveric/wp-starter

2 points

I use composer to manage all dependencies related to a WP site (WP core, plugins, mu-plugins, and themes). I made a starter project that shows how it works: https://github.com/webdeveric/wp-starter. I use something similar to this at work, where we use Jenkins and github hooks for deployments.

In my use case, I disable auto updates due to the load balanced environment. I've had a user click the upgrade button before and the app servers became out of sync.

To update plugins I just run composer update like I would with any PHP app.

1 points

I was thinking of something like this: https://www.nginx.com/resources/admin-guide/reverse-proxy/

In this scenario, you'd have nginx serving content and when it encountered a request for /blog, it would ask another server (or virtual host) to handle it then send back the response.

Since you're new to WP, you should review https://codex.wordpress.org/Hardening_WordPress

1 points

When I used them, I had a dedicated machine where I had full root access. I did not have managed hosting so I did the updates to the OS (if needed).

I think the uptime was never an issue. Once or twice they had an issue with a router and things were inaccessible for a bit, but it was quickly fixed and the account was pro-rated for the downtime.

Pricing was okay, not great, but not a rip-off. I have no idea what other offerings they have or what their pricing is today. Its been a couple years since I used them. Since you're looking for shared hosting, there are many hosting providers that handle that. If you shop around, you'll probably find one that works well with WordPress.

Many, if not all, of my sites at the time were using WordPress. I handled all the updates for those sites myself.

If you're looking for a fully managed shared server AND managed WP updates, you'll probably want find a host that offers managed WordPress hosting. I'd stay away from WP Engine if you need PHP 5.4+. The last time I checked, they were still on PHP 5.3 with no time line for when they would update.

1 points

Last year at work I made a plugin that fetched remote content from one of our servers and I used the WP http api functions to fetch the content. It was easier than rolling my own function to do the same thing.

To help with development, I made a plugin that logs all requests that are made with the wp http api functions. WP internally uses these functions so I ended up logging all theme/plugin update checks and wp cron requests. Its interesting to see all the data that gets sent to WP when checking for updates.

Its on my github if anyone wants to log requests while developing their own plugins. HTTP API Debug

1 points

I have a list of a dozen plugin ideas that I've been working on when I have the time.

One of them that I think may be great for administrators is client certificate based multi factor authentication.

If you really wanted to lock down your admin accounts, you could also use something like Google Authenticator. Then, for admin access, you'll need a username & password, verification code, and possess a certificate.

Relevant links:

  1. http://codex.wordpress.org/Function_Reference/wp_authenticate
  2. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/keygen
  3. http://cweiske.de/tagebuch/ssl-client-certificates.htm
  4. https://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI
  5. http://rapidssl-crl.geotrust.com/crls/rapidssl.crl
  6. http://www.cacert.org/
  7. http://www.startssl.com/
1 points

It would be nice if WP had a function like wp_footer, but for just after the body.

Since they don't, I've had to use output buffering to be able to insert html directly after the opening body tag.

Its pretty easy to set up, but you just need to be aware of all the places it may be used, like on rss feeds, xmlrpc, cron, and ajax.

1 points

If I release a plugin in the WP repo, I usually go with their minimum requirements. If I need a newer PHP, I'll do a version check at the start of the plugin and let the user know when they attempt to activate the plugin.

If its a plugin for work, PHP 5.3 is as far as I can go since WP Engine hasn't upgraded yet.

For plugins I write for my own sites, PHP 5.5 is the minimum.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.