LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Scripting a Wordpress rollout - Method II

Posted 11-30-2015 at 12:50 PM by Habitual
Updated 11-30-2015 at 03:21 PM by Habitual

Now even shinier!
It's a rude and crude script, but it works for experienced admins who knows what they are doing,
and where they are doing it.

Code:
#!/bin/bash
### 11/30/2015 
### jj/Habitual

clear

do_work ()
{ 
    BASEDIR=/var/www/html
    mkdir -pv "$BASEDIR"/"$DOMAIN"/
    cp -pr /var/www/wordpress/* "$BASEDIR"/"$DOMAIN"/
    cp "$BASEDIR"/"$DOMAIN"/wp-config-sample.php
...
LQ Addict
Posted in Uncategorized
Views 1886 Comments 0 Habitual is offline
Old

Scripting a Wordpress rollout - Method I

Posted 11-27-2015 at 06:11 PM by Habitual
Updated 12-08-2015 at 12:54 PM by Habitual

We have 60 Wordpress sites to roll-out and I dislike tedious crap, so I scripted it.
# CentOS release 6.7 (Final)

Code:
#!/bin/bash
### 11/27/2015 07:03:58 PM
### jj/Habitual
### Wordpress files deployment
BASEDIR=/var/www/html

echo -n "Domain? " ; read DOMAIN

if [ -d $BASEDIR/$DOMAIN ] ; then
echo "directory exists, exiting..." ; exit 1
else
mkdir -pv "$BASEDIR"/"$DOMAIN"
...
LQ Addict
Posted in Uncategorized
Views 1746 Comments 0 Habitual is offline
Old

Exploit permissions?

Posted 10-27-2015 at 06:48 PM by Habitual

Found this today in my access.log
Code:
GET //skin/install/default/install.php?q=echo(\"CAN_I_UPLOAD_SHELL_HERE\")
I have to admit, It's a humorous touch.
What's next?
Code:
GET //skin/install/default/install.php?q=echo(\"THE_MATRIX_HAS_YOU\?)"
Feel free to show some of the ones you all have, or am I the only one who stares at logs all day?
LQ Addict
Posted in Uncategorized
Views 2173 Comments 3 Habitual is offline
Old

Five minute Wordpress in a Docker container.

Posted 10-01-2015 at 04:22 PM by Habitual
Updated 10-09-2015 at 12:20 PM by Habitual

Environment...
Ubuntu 14.04.3 LTS from mini.iso in a Virtualbox v4.3.18 host w\20G hd with 3.13.0-65-generic kernel.
No tasksel packages other than ssh during install.

Prerequisites
Docker requires a 64-bit installation.
Ubuntu: kernel must be 3.10 at minimum.

Installation
Code:
apt-get install -y curl && curl -sSL https://get.docker.com/ | sh
It's that simple.

Enable UFW forwarding
Code:
vi /etc/default/ufw
and...
LQ Addict
Posted in Uncategorized
Views 1249 Comments 0 Habitual is offline
Old

My Wife and Best Friend died today.

Posted 09-18-2015 at 01:36 PM by Habitual
Updated 09-19-2015 at 07:06 AM by Habitual

Mrs. Wanda Jones died in her sleep on Sept. 18, 2015 at 04:10 AM EDT.
Just 3 days after our 20th Anniversary.

I feel like 1\2 of me is missing.
LQ Addict
Posted in Uncategorized
Views 1840 Comments 18 Habitual is offline

  



All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration