Skip to content

Latest commit

 

History

History
executable file
·
43 lines (38 loc) · 1007 Bytes

README.md

File metadata and controls

executable file
·
43 lines (38 loc) · 1007 Bytes

Wordpress Staging

sudo su
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get autoremove -y
apt-get install apache2 php5 php5-cli php5-fpm php5-gd libssh2-php libapache2-mod-php5 php5-mcrypt php5-mysql git unzip zip postfix php5-curl mailutils php5-json -y
a2enmod rewrite headers
php5enmod mcrypt

nano /etc/apache2/sites-enabled/000-default.conf

<VirtualHost *:80>
        #ServerName example.com
        #ServerAlias www.example.com
        DocumentRoot /var/www/staging

        <Directory /var/www/staging>
                Options -Indexes
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>

cd /var/www/html
rm -rf *
cd ../
mkdir staging
cd staging
git clone https://github.com/andrewpuch/wordpress_4_1_1.git .
chmod -R 744 .
chown -R www-data:www-data .

service apache2 restart

After Wordpress Is Configured

define('WP_REDIS_HOST', '');