Skip to content

Instantly share code, notes, and snippets.

@lukeholder
Last active December 18, 2015 06:09
Show Gist options
  • Save lukeholder/5737577 to your computer and use it in GitHub Desktop.
Save lukeholder/5737577 to your computer and use it in GitHub Desktop.
instructions for episode 0001 of learning your craft.

Setup your Digital Ocean droplet.

your machine:

ssh root@IP-ADDRESS

on the server:

passwd

apt-get update -y

tasksel

press space on [ ]lamp

press tab to select OK press space on OK

enter passwords for mysql server

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.630_all.deb

apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python -y

dpkg --install webmin_1.630_all.deb

apt-get install phpmyadmin -y

choose apache2 and OK.

visit http://IP-ADDRESS/phpmyadmin

  • Log In
  • Click Databases
  • type
  • choose utf8_unicode_ci
  • click 'create'

Back to command line:

wget http://buildwithcraft.com/Craft.zip

unzip -d /var/www Craft.zip

nano /var/www/craft/config/db.php

add your mysql username and password and database name

ctrl-o and enter to save.

ctrl-x to exit

mv /var/www/public/htaccess /var/www/public/.htaccess

chown -R www-data:www-data /var/www

Visit https://ip-address:10000 Log in with root user and password

  • Change apache server default virtual host to /var/www/public
  • enable mod_rewrite
  • Allow Override All in general directives

any issues: [email protected]

@lukeholder
Copy link
Author

sudo php5enmod mcrypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment