Infrastructure:Web Server

From Lancaster And Morecambe Makers
Jump to: navigation, search

Info on our web server.

Migration from Dreamhost

Export the database (using php-my-admin) as SQL gzipped.

ssh into the Big V machine, create a new user and group

groupadd drupal
useradd -u drupal -c "LAMM Space Drupal User" -m -s /bin/bash drupal

Copy the files from dreamhost

sudo su drupal
mkdir dreamhost
cd dreamhost
rsync -avz --no-owner --no-group .

install mariadb

apt-key adv --recv-keys --keyserver 0xcbcb082a1bb943db

echo "# MariaDB 10.1 repository list - created 2015-11-11 22:12 UTC
deb [arch=amd64,i386] jessie main
deb-src jessie main" > /etc/apt/sources.list.d/mariadb.list

apt-get update
apt-get install mariadb-server

Set password for mariadb root user - ask an admin for it!

Now install apache and get it working for Drupal...

apt-get install apache2