Git Product home page Git Product logo

wp-stub's Issues

Shell script to do setup in one fell swoop

#!/bin/bash

echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "
read -s dbpass

echo "run install? (y/n)"
read -e run

if [ "$run" == n ] ; then
exit
else
#download wordpress
curl -O http://wordpress.org/latest.ta...

#unzip wordpress
tar -zxvf latest.tar.gz

#change dir to wordpress
cd wordpress

#copy file to parent dir
cp -rf . ..

#move back to parent dir
cd ..

#remove files from wordpress folder
rm -R wordpress

#create wp config
cp wp-config-sample.php wp-config.php

#set database details with perl find and replace
perl -pi -e "s/database_name_here/$dbname/g" wp-config.php
perl -pi -e "s/username_here/$dbuser/g" wp-config.php
perl -pi -e "s/password_here/$dbpass/g" wp-config.php

#create uploads folder and set permissions
mkdir wp-content/uploads
chmod 777 wp-content/uploads

#remove zip file
rm latest.tar.gz

#remove bash script
#rm wp.sh
fi

Edit the above and make work for this repo. Use one curl command to install.

From:

http://code.tutsplus.com/articles/download-and-install-wordpress-via-the-shell-over-ssh--wp-24403

XAMPP virtual host and other docs

Include all that info in this repo.

Don't forget to add:

<IfModule mime_module>
    AddType image/svg+xml svg svgz
    AddEncoding gzip svgz
</IfModule>

โ€ฆ to httpd.conf. Though, maybe newer versions of XAMPP have this fixed? Kinda weird it's not in etc/mime.types?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.