server works - html5 - css3 - bootstrap 3.x. likipe servers dev serverproduction server typeshared...

10
Server works HTML5 CSS3 Bootstrap 3.x

Upload: marion-ball

Post on 26-Dec-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

Server works- HTML5- CSS3- Bootstrap 3.x

Page 2: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

Likipe ServersDev Server Production Server

Type Shared Host Virtual Private Server

Url web1.likipe.se/web2.likipe.se “Real url”

OS Ubuntu Ubuntu/Linux/Windows

Webhost Apache Nginx

Management

WHM Glesys

Tools cPanel SSH

phpmyadmin

Page 3: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

Dev Server – Web1/Web2WHS

◦Add new site◦Change/reset password◦Deactivate site

cPanel◦File Management◦Phpmyadmin◦DNS◦Backup◦Log◦ Install application

Page 4: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

Production Server - VPSGlesys

◦Create new VPS◦Extend the memory/storage

SSH◦SSH access is the only way to work

with server◦Mysql: access over SSH

Page 5: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

Moving from Dev to Pro serverStep1: LEMP install in VPS

◦http://lab.likipe.se/likipe/lemp/wikis/homeStep2: Moving source + db

◦http://lab.likipe.se/likipe/lemp/wikis/magento-deploy

Step3: Settings◦DNS◦Cronjobs

Step4: Deactivate the old server◦HTTP Basic Auth◦die()

Page 6: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

LEMPRoot:

◦/home/{site}/www/public_htmlNginx config:

◦/etc/nginx/sites-enabled/defaultLogs

◦/var/log/nginx/{site}.error.log

Page 7: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

LEMP - Nginxserver {

listen 80; ## listen for ipv4; this line is default and impliedlisten [::]:80 default ipv6only=on; ## listen for ipv6

root /home/{SITE_NAME}/www/public_html;index index.php index.html index.htm;

access_log /var/log/nginx/{SITE_NAME}.access.log;error_log /var/log/nginx/{SITE_NAME}.error.log;

# Make site accessible from http://localhost/server_name {DOMAIN};

location / {try_files $uri $uri/ /index.php?$args; }

location ~ \.php$ {fastcgi_pass unix:/var/run/php5-fpm.sock;fastcgi_index index.php;include fastcgi_params;

}}

Page 8: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

CommandsPermission

◦sudo◦chmod◦chown

File◦tail –f◦vim◦cp◦echo xxx > file.php

Page 9: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

CommandsServer

◦sudo service nginx reload◦sudo service php5-fpm restart◦top◦apt-get install

Page 10: Server works - HTML5 - CSS3 - Bootstrap 3.x. Likipe Servers Dev ServerProduction Server TypeShared HostVirtual Private Server Urlweb1.likipe.se/web2.likipe.se“Real

SuggestionEclipse PDT – Remote Team

◦FTP/SFTP/SSH/Terminal◦Historical logs

Sublime with “Vintage” mode