Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #########################
- ####Network####
- #########################
- sudo nano /etc/network/interfaces
- ----------
- iface eth0 inet static
- address 192.168.1.15X
- netmask 255.255.255.0
- gateway 192.168.1.1
- dns-nameservers 104.237.144.172 74.207.232.103 104.245.39.112
- ----------
- #########################
- ####Software####
- #########################
- sudo apt-add-repository ppa:nginx/development
- sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
- sudo add-apt-repository 'deb http://mirror.jmu.edu/pub/mariadb/repo/10.0/ubuntu trusty main'
- sudo apt-get install git mariadb-client mariadb-server libmariadbclient18 nginx-full php5 php5-cli php5-common php5-curl php5-enchant php5-fpm php5-gd php5-gmp php5-imagick php5-intl php5-json php5-mcrypt php5-mysqlnd php5-recode php5-apcu
- #########################
- ####PHP Configuration####
- #########################
- sudo nano '/etc/php5/cli/php.ini'
- ----------
- upload_max_filesize = 64M
- ----------
- #########################
- ####FPM Configuration####
- #########################
- sudo nano '/etc/php5/fpm/pool.d/www.conf'
- ----------
- listen = 127.0.0.1:2000
- ----------
- #########################
- ####NGINX Certificates####
- #########################
- sudo mkdir '/etc/nginx/ssl'
- - Copy ssl.key and ssl-unified.crt to that folder (use archive or follow StartSSL guide)
- sudo chmod 600 /etc/nginx/ssl/*
- #########################
- ####NGINX Virtual Host####
- #########################
- sudo nano '/etc/nginx/sites-available/gnusocial'
- ----------
- server {
- listen 443;
- listen [::]:443;
- server_name realmofespionage.com;
- root /var/www/html;
- index index.php index.html index.htm;
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_pass 127.0.0.1:2000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 4 256k;
- fastcgi_busy_buffers_size 256k;
- }
- location / {
- rewrite ^(.*)$ /index.php?p=$1 last;
- break;
- }
- location ~* ^/(.*)\.(ico|css|js|gif|png|jpg|bmp|JPG|jpeg)$ {
- root /var/www/html;
- rewrite ^/(.*)$ /$1 break;
- access_log off;
- expires max;
- }
- ssl on;
- ssl_certificate /etc/nginx/ssl/ssl-unified.crt;
- ssl_certificate_key /etc/nginx/ssl/ssl.key;
- ssl_session_timeout 5m;
- ssl_protocols SSLv3 TLSv1;
- ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
- ssl_prefer_server_ciphers on;
- client_max_body_size 15m;
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- }
- server {
- listen 80;
- server_name realmofespionage.com;
- rewrite ^ https://www.realmofespionage.com$request_uri? permanent;
- }
- ----------
- sudo ln -s '/etc/nginx/sites-available/gnusocial' '/etc/nginx/sites-enabled/gnusocial'
- #########################
- ####MariaDB Tweaks####
- #########################
- sudo nano '/etc/mysql/my.cnf'
- ----------
- innodb_buffer_pool_size = 1024M
- innodb_thread_concurrency = 4
- collation-server = utf8_unicode_ci
- init-connect='SET NAMES utf8'
- character-set-server = utf8
- ----------
- #########################
- ####Database Setup####
- #########################
- mysql -u root -p
- create database gnusocial;
- grant usage on gnusocial.* to 'gnusocial'@'localhost' identified by 'PASS';
- grant all privileges on gnusocial.* to 'gnusocial'@'localhost';
- flush privileges;
- exit
- #########################
- ####Download GNU social####
- #########################
- cd '/var/www'
- sudo rm html/*
- sudo git clone -b nightly https://git.gnu.io/gnu/gnu-social.git html
- #########################
- ####GNU social Setup####
- #########################
- sudo cp '/var/www/html/htaccess.sample' '/var/www/html/.htaccess'
- sudo nano '/var/www/html/config.php'
- ----------
- (uncomment out schemacheck line)
- $config['mail']['domain'] = 'realmofespionage.com';
- $config['mail']['notifyfrom'] = '[email protected]';
- $config['mail']['backend'] = 'smtp';
- $config['mail']['params'] = array(
- 'host' => 'smtp.comcast.net',
- 'port' => 587,
- 'auth' => true,
- 'username' => 'USER',
- 'password' => 'PASS'
- );
- addPlugin('EmailRegistration');
- addPlugin("GeoURL");
- addPlugin("ModPlus");
- ----------
- sudo php '/var/www/html/scripts/checkschema.php'
- sudo rm -R '/var/www/html/INSTALL'
- #########################
- ####END####
- #########################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement