Skip to content

Instantly share code, notes, and snippets.

@jeffsebring
Created November 21, 2012 21:06
Show Gist options
  • Save jeffsebring/4127719 to your computer and use it in GitHub Desktop.
Save jeffsebring/4127719 to your computer and use it in GitHub Desktop.
New WordPress Install with separated directories
#!/bin/sh
wget http://wordpress.org/latest.tar.gz
tar -zxvf latest.tar.gz
rm latest.tar.gz
mv wordpress __
mv __/wp-content _
echo "<?php" >> index.php
echo "define( 'WP_USE_THEMES', true );" >> index.php
echo "require('./__/wp-blog-header.php');" >> index.php
mv __/wp-config-sample.php wp-config.php
printf 'SUCCESS!\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment