Handy tools for virtualhost servers with wordpress sites.
bash_completion.d | ||
bin | ||
sbin | ||
systemd | ||
LICENSE | ||
README.md |
Wordpress Tools
A couple of handy tools for virtualhost servers with wordpress sites.
bash completion for wp-cli a systemd cron for running wp crons. individual sites don't have to set their own cron job or rely on lazy cron wp-create-db-user-from-config.sh extracts DB config info from wp-config.php, useful for creating dbs & users for sites that are being migrated wp-installer.sh automated wp installer
Install
cd /usr/local/src
git clone https://git.stack-source.com/msb/wordpress-tools.git
cd wordpress-tools
cp bash_completion.d/wp-cli /etc/bash_completion.d/
chmod 644 /etc/bash_completion.d/wp-cli
chmod 755 /usr/local/bin/wp-*
cp bin/wp-* /usr/local/bin
cp sbin/wp-cron.sh /usr/local/sbin/
chmod 755 /usr/local/sbin/wp-cron.sh
cp systemd/wp-cron.* /usr/lib/systemd/system/
chmod 644 /usr/lib/systemd/system/wp-cron.*
systemctl daemon-reload
systemctl start wp-cron.timer