5 | | The crin1.crin.org development / staging server, at {{{93.95.228.222}}} is a 512MB RAM, 4 CPU core, virtual server running 64 bit Debian 8.0, Jessie, which was configured in July 2015. |
| 5 | The crin1.crin.org development / staging server, at {{{93.95.228.222}}} is a 512MB RAM, 4 CPU core, virtual server running 64 bit Debian 8.0, Jessie, which was configured in July 2015 on ticket:23. |
| 6 | |
| 7 | == dev.crin.org and stage.crin.org == |
| 8 | |
| 9 | The two main sites on the server are: |
| 10 | |
| 11 | * https://dev.crin.org/ |
| 12 | * https://stage.crin.org/ |
| 13 | |
| 14 | These sites use a [[CAcert]] certificate. |
| 15 | |
| 16 | MySQL is running on [[Crin1]] and that server also has [[phpMyAdmin]] available, users need a `~/.my.cnf` file as follows for `drush`: |
| 17 | |
| 18 | {{{ |
| 19 | [client] |
| 20 | host=crin1 |
| 21 | ssl-cipher=DHE-RSA-AES256-SHA |
| 22 | ssl-ca=/etc/ssl/cacert/cacert.pem |
| 23 | ssl-cert=/etc/ssl/cacert/crin1_cert.pem |
| 24 | ssl-key=/etc/ssl/cacert/crin1_yassl_privatekey.pem |
| 25 | }}} |
| 26 | |
| 27 | The live servers, [[Crin2]] which runs nginx and php5-fpm and [[Crin1]] which runs MySQL are both set up with root access to [[Crin4]] so you can simply copy files between the servers, for example: |
| 28 | |
| 29 | {{{ |
| 30 | rsync -av /var/example/ crin4:/var/example/ |
| 31 | }}} |
| 32 | |
| 33 | == ssh access == |
| 34 | |
| 35 | The server is set up to only allow access via ssh keys, to add a new user: |
| 36 | |
| 37 | {{{ |
| 38 | export NEWUSER="username" |
| 39 | adduser --disabled-password $NEWUSER |
| 40 | adduser $NEWUSER sudo |
| 41 | mkdir /home/$NEWUSER/.ssh |
| 42 | chmod 700 /home/$NEWUSER/.ssh |
| 43 | chown -R $NEWUSER:$NEWUSER /home/$NEWUSER/.ssh |
| 44 | vi /home/$NEWUSER/.ssh/authorized_keys |
| 45 | }}} |
| 46 | |
| 47 | == Munin === |
| 48 | |
| 49 | Stats are available here: |
| 50 | |
| 51 | * https://munin.crin.org/munin/crin.org/crin4.crin.org/index.html |