Difference between revisions of "Infrastructure:Web Server"

From Lancaster And Morecambe Makers
Jump to: navigation, search
(Created page with "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 <pr...")
 
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
groupadd drupal
 
groupadd drupal
 
useradd -u drupal -c "LAMM Space Drupal User" -m -s /bin/bash drupal
 
useradd -u drupal -c "LAMM Space Drupal User" -m -s /bin/bash drupal
 +
</pre>
 +
 +
Copy the files from dreamhost
 +
 +
<pre>
 +
sudo su drupal
 +
cd
 +
mkdir dreamhost
 +
cd dreamhost
 +
rsync -avz --no-owner --no-group lammspace@gorecki.dreamhost.com:~/ .
 +
</pre>
 +
 +
install mariadb
 +
 +
<pre>
 +
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
 +
 +
echo "# MariaDB 10.1 repository list - created 2015-11-11 22:12 UTC
 +
# http://mariadb.org/mariadb/repositories/
 +
deb [arch=amd64,i386] http://lon1.mirrors.digitalocean.com/mariadb/repo/10.1/debian jessie main
 +
deb-src http://lon1.mirrors.digitalocean.com/mariadb/repo/10.1/debian jessie main" > /etc/apt/sources.list.d/mariadb.list
 +
 +
apt-get update
 +
apt-get install mariadb-server
 +
</pre>
 +
 +
Set password for mariadb root user - ask an admin for it!
 +
 +
Now install apache and get it working for Drupal...
 +
 +
<pre>
 +
apt-get install apache2
 
</pre>
 
</pre>
  
 
[[Category:Infrastructure]]
 
[[Category:Infrastructure]]

Latest revision as of 20:21, 12 November 2015

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
cd
mkdir dreamhost
cd dreamhost
rsync -avz --no-owner --no-group lammspace@gorecki.dreamhost.com:~/ .

install mariadb

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db

echo "# MariaDB 10.1 repository list - created 2015-11-11 22:12 UTC
# http://mariadb.org/mariadb/repositories/
deb [arch=amd64,i386] http://lon1.mirrors.digitalocean.com/mariadb/repo/10.1/debian jessie main
deb-src http://lon1.mirrors.digitalocean.com/mariadb/repo/10.1/debian 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