SlideShare a Scribd company logo
Advanced Web Hosting
Advanced
Web hosting
Vincent Cassé
@vcasse
Webhosting lead tech
OVH
Our offers
Perso
- 5 websites
- 100 Gb disk
- 1 x 200 Mb db
- Anti DDOS
Kimsufi
- 1 website
- 1 Gb disk
- 1 x 100 Mb db
- Anti DDOS
Pro
- 10 websites
- 250 Gb disk
- 3 x 400 Mb db
1 x 2Gb db
- Anti DDOS
- SSH access
Performance
- ∞ websites
- 500 Gb disk
- 3 x 800 Mb db
1 x 4 Gb db
- 1 privateSql
- SSH access
- dedicated
A small application to deploy
https://rondcoin.ovh
Laravel
- Framework PHP to don’t reinvent the wheel
- Use a lot of existing PHP library and composer
- Just few hours to develop the “rond coin” app
- https://github.com/ovh/summit2016-webhosting-example-rondcoin
How to deploy this
application?
Order a web hosting
FTP?
SSH
­ From “pro” offer
­ PHP cli and Git installed
­ https://github.com/ovh/webhosting­ssh­bashrc
Deploy the code by SSH
$ ssh user@ftp.clusterXXX.hosting.ovh.net
Password:
Welcome to OVH
user@ssh02.clusterXXX.gra.hosting.ovh.net (fpm/5.6/prod/legacy) ~ $ 
git clone https://github.com/ovh/summit2016­webhosting­example­
rondcoin.git
Cloning into summit2016­webhosting­example­rondcoin...
remote: Counting objects: 133, done.
remote: Compressing objects: 100% (99/99), done.
remote: Total 133 (delta 19), reused 133 (delta 19), pack­reused 0
Receiving objects: 100% (133/133), 153.26 KiB, done.
Resolving deltas: 100% (19/19), done.
 
Deploy the code: get composer
$ php ­r "copy('https://getcomposer.org/installer', 'composer­
setup.php');"
$ php ­r "if (hash_file('SHA384', 'composer­setup.php') === 
'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865
e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } 
else { echo 'Installer corrupt'; unlink('composer­setup.php'); } 
echo PHP_EOL;"
$ php composer­setup.php
$ php ­r "unlink('composer­setup.php');"
 
Deploy the code: install libraries
$ php composer.phar install
$ cp .env.example .env
$ php artisan key:generate
 
What is multisite?
- Link multiple domains or subdomains
- For tech: like add a virtualhost
- No isolation
Laravel structure
.env
api/
app/
artisan
assets/
bootstrap/
composer.json
config/
database/
public/
resources/
routes/
storage/
tests/
vendor/
Edit the ‘rondcoin.ovh’ multisite
What about the
database?
Get the private SQL
­ Better max_connexions
­ No neighbors issues
­ Dedicated resources (CPU / RAM)
­ For performance offer: 1 privateSQL included
Activate the privateSQL
Create the user and database
Create the user and database
Update laravel
$ vim .env
…
DB_CONNECTION=mysql
DB_HOST=your_db_host
DB_PORT=your_db_port
DB_DATABASE=your_db_name
DB_USERNAME=your_db_user
DB_PASSWORD=your_db_password
…
$ php artisan migrate
 
Rondcoin.ovh is up!
Deploy the
API
API?
Laravel: add a new endpoint
$ ls -al public/
.htaccess
css/
favicon.ico
fonts/
index.php
js/
robots.txt
upload/
$ ls -al api/
.htaccess
index.php
Add a multisite
API is ready!
https://api.rondcoin.ovh/api/offer
Add a
CDN
Content Delivery Network
- Store your static content all around the world
- Images / JS / CSS load fastest
- Included into ‘performance’ offer
Activate your CDN
Create a ‘assets’ multisite
Activate cache on static content
$ vim public/.htaccess
...
# Cache des images durant 1 mois
<FilesMatch ".(jpg|jpeg|png|gif)$">
Header set Cache­Control "max­age=2592000, public"
</FilesMatch>
# Cache des javascript et CSS durant 1 mois
<FilesMatch ".(js|css)$">
Header set Cache­Control "max­age=2592000, public"
Update laravel template
$ vim resources/views/layout/app.blade.php
… 
<!­­ Styles ­­>
<link href="http://assets.rondcoin.ovh/css/app.css" rel="stylesheet">
… 
<!­­ Scripts →
<script src="http://assets.rondcoin.ovh/js/app.js"></script>
Environment
configuration
Change your PHP
https://www.ovh.com/fr/a1948.php7-nouveautes-deja-le-moment-migrer
Update the .ovhconfig
$ vim ~/.ovhconfig
; pour plus d'informations sur ce fichier:
; http://www.ovh.com/fr/g1175.format_du_point_ovhconfig
app.engine=php
app.engine.version=7.1
http.firewall=none
environment=production
container.image=stable
 
RAM
cache
Architecture
Webserver
privateSQL
Webserver
Filer
Store cache in /tmp
- /tmp is mount in RAM
- Reduce latency to get data from filerzs
- Can divide by two the load of the webpage
Store laravel cache in /tmp
$ vim config/cache.php
…
'file' => [
       'driver' => 'file',
       'path' => '/tmp',
],
$ vim config/session.php
…
'files' => '/tmp',
$ vim config/view.php
…
'compiled' => '/tmp',
Another tips
- Use “cron” for asynchronous tasks
- You can see all your logs in logs.clusterXXX.hosting.ovh.net
- Use “boost” if you have previsible load peaks
- Check external connexions from PHP (APIs like twitter...)
Vincent Cassé
@vcasse

More Related Content

What's hot (20)

PPTX
Choosing A Proxy Server - Apachecon 2014
bryan_call
 
KEY
Nginx - Tips and Tricks.
Harish S
 
PDF
Lcu14 Lightning Talk- NGINX
Linaro
 
PDF
My complicated WordPress site
Marko Heijnen
 
PDF
Building your own CDN using Amazon EC2
SergeyChernyshev
 
PPT
Roy foubister (hosting high traffic sites on a tight budget)
WordCamp Cape Town
 
PDF
Redundancy Rocks. Redundancy Rocks.
AOE
 
PDF
Setting up a local WordPress Environment
Chris La Nauze
 
PDF
High Performance WordPress II
Barry Abrahamson
 
ZIP
High Performance WordPress - WordCamp Jerusalem 2010
Barry Abrahamson
 
PPTX
Install dev stack
Basim Aly (JNCIP-SP, JNCIP-ENT)
 
PPTX
Benchmarking NGINX for Accuracy and Results
NGINX, Inc.
 
PDF
Automation using power cli
esarakaitis
 
PDF
Using WebSockets with ColdFusion
cfjedimaster
 
PPTX
NGINX High-performance Caching
NGINX, Inc.
 
PPT
High Performance WordPress
Barry Abrahamson
 
PPTX
NGINX: Basics and Best Practices
NGINX, Inc.
 
PDF
Securing Your WordPress Website - WordCamp Sydney 2012
Vlad Lasky
 
PPT
ServerBeach and WordPress BlogWorldExpo 2007
Barry Abrahamson
 
PPTX
Nginx [engine x] and you (and WordPress)
Justin Foell
 
Choosing A Proxy Server - Apachecon 2014
bryan_call
 
Nginx - Tips and Tricks.
Harish S
 
Lcu14 Lightning Talk- NGINX
Linaro
 
My complicated WordPress site
Marko Heijnen
 
Building your own CDN using Amazon EC2
SergeyChernyshev
 
Roy foubister (hosting high traffic sites on a tight budget)
WordCamp Cape Town
 
Redundancy Rocks. Redundancy Rocks.
AOE
 
Setting up a local WordPress Environment
Chris La Nauze
 
High Performance WordPress II
Barry Abrahamson
 
High Performance WordPress - WordCamp Jerusalem 2010
Barry Abrahamson
 
Benchmarking NGINX for Accuracy and Results
NGINX, Inc.
 
Automation using power cli
esarakaitis
 
Using WebSockets with ColdFusion
cfjedimaster
 
NGINX High-performance Caching
NGINX, Inc.
 
High Performance WordPress
Barry Abrahamson
 
NGINX: Basics and Best Practices
NGINX, Inc.
 
Securing Your WordPress Website - WordCamp Sydney 2012
Vlad Lasky
 
ServerBeach and WordPress BlogWorldExpo 2007
Barry Abrahamson
 
Nginx [engine x] and you (and WordPress)
Justin Foell
 

Viewers also liked (12)

PPTX
Getting Started With My Next-Gen IP Load Balancing
OVHcloud
 
PDF
HTTPS: All you need to know
OVHcloud
 
PPTX
Discover the OVH Dedicated Cloud Webinar
OVHcloud
 
PPTX
OVH Webinar: 10 questions you should ask your Cloud Service Provider
OVHcloud
 
PDF
[FR] Timeseries appliqué aux couches de bébé
OVHcloud
 
PDF
[FR] Les requêtes HTTP de l'extrême
OVHcloud
 
PDF
Introduction to OverTheBox
OVHcloud
 
PPT
[FR] OVH Webinar : 10 questions à poser à votre Cloud Service Provider
OVHcloud
 
PDF
[FR] C'est quoi une API ?
OVHcloud
 
PPT
[FR] Les connexions SDSL chez OVH Télécom
OVHcloud
 
PDF
HTTPS, Here and Now
Philippe De Ryck
 
PPTX
VMworld 2015: The Future of Software- Defined Storage- What Does it Look Like...
VMworld
 
Getting Started With My Next-Gen IP Load Balancing
OVHcloud
 
HTTPS: All you need to know
OVHcloud
 
Discover the OVH Dedicated Cloud Webinar
OVHcloud
 
OVH Webinar: 10 questions you should ask your Cloud Service Provider
OVHcloud
 
[FR] Timeseries appliqué aux couches de bébé
OVHcloud
 
[FR] Les requêtes HTTP de l'extrême
OVHcloud
 
Introduction to OverTheBox
OVHcloud
 
[FR] OVH Webinar : 10 questions à poser à votre Cloud Service Provider
OVHcloud
 
[FR] C'est quoi une API ?
OVHcloud
 
[FR] Les connexions SDSL chez OVH Télécom
OVHcloud
 
HTTPS, Here and Now
Philippe De Ryck
 
VMworld 2015: The Future of Software- Defined Storage- What Does it Look Like...
VMworld
 
Ad

Similar to Advanced Web Hosting (20)

PDF
Wordpress y Docker, de desarrollo a produccion
Sysdig
 
PDF
Shipping Applications to Production in Containers with Docker
Jérôme Petazzoni
 
PPTX
Lumen
Joshua Copeland
 
PPTX
PHP on Heroku: Deploying and Scaling Apps in the Cloud
Salesforce Developers
 
PDF
How Reconnix Is Using Docker
Russ Mckendrick
 
PPTX
SVILUPPARE E GESTIRE ARCHITETTURE A MICROSERVIZI SU AZURE
DotNetCampus
 
PPTX
Dnc2015 azure-microservizi-vforusso
DotNetCampus
 
PPT
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
Valent Mustamin
 
PDF
DevOPS training - Day 1/2
Vincent Mercier
 
PDF
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
Erica Windisch
 
PPTX
Advanced WordPress Tooling: By InstaWP.com
InstaWP Inc
 
PDF
Convert Your Dev Environment to a Docker Stack - PHP Tek 2025.pdf
Dana Luther
 
PPTX
Running Docker in Development & Production (#ndcoslo 2015)
Ben Hall
 
PPT
5-WebServers.ppt
webhostingguy
 
PDF
Docker module 1
Liang Bo
 
PDF
Docker for developers on mac and windows
Docker, Inc.
 
PPTX
WP-CLI Workshop at WordPress Meetup Cluj-Napoca
4nd4p0p
 
PPTX
Docker - Demo on PHP Application deployment
Arun prasath
 
PDF
Converting Your Dev Environment to a Docker Stack - Cascadia
Dana Luther
 
PDF
Converting Your Dev Environment to a Docker Stack - php[world]
Dana Luther
 
Wordpress y Docker, de desarrollo a produccion
Sysdig
 
Shipping Applications to Production in Containers with Docker
Jérôme Petazzoni
 
PHP on Heroku: Deploying and Scaling Apps in the Cloud
Salesforce Developers
 
How Reconnix Is Using Docker
Russ Mckendrick
 
SVILUPPARE E GESTIRE ARCHITETTURE A MICROSERVIZI SU AZURE
DotNetCampus
 
Dnc2015 azure-microservizi-vforusso
DotNetCampus
 
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
Valent Mustamin
 
DevOPS training - Day 1/2
Vincent Mercier
 
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
Erica Windisch
 
Advanced WordPress Tooling: By InstaWP.com
InstaWP Inc
 
Convert Your Dev Environment to a Docker Stack - PHP Tek 2025.pdf
Dana Luther
 
Running Docker in Development & Production (#ndcoslo 2015)
Ben Hall
 
5-WebServers.ppt
webhostingguy
 
Docker module 1
Liang Bo
 
Docker for developers on mac and windows
Docker, Inc.
 
WP-CLI Workshop at WordPress Meetup Cluj-Napoca
4nd4p0p
 
Docker - Demo on PHP Application deployment
Arun prasath
 
Converting Your Dev Environment to a Docker Stack - Cascadia
Dana Luther
 
Converting Your Dev Environment to a Docker Stack - php[world]
Dana Luther
 
Ad

More from OVHcloud (20)

PDF
OVHcloud Startup Program : Découvrir l'écosystème au service des startups
OVHcloud
 
PPTX
Fine tune and deploy Hugging Face NLP models
OVHcloud
 
PDF
How can you successfully migrate to hosted private cloud 2020
OVHcloud
 
PDF
OVHcloud Partner Webinar - Data Processing
OVHcloud
 
PDF
OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...
OVHcloud
 
PPTX
Webinar - VPS New Range
OVHcloud
 
PDF
OVHcloud Tech Talks S01E08 - GAIA-X pour les techs : OVHcloud & Scaleway vous...
OVHcloud
 
PPTX
Webinar - Enterprise Cloud Databases
OVHcloud
 
PDF
OVHcloud Tech Talks S01E07 – Introduction à l’intelligence artificielle pour ...
OVHcloud
 
PDF
OVHcloud Tech Talks Fr S01E06 – BeeGFS, un filesystem orienté performance, ma...
OVHcloud
 
PDF
OVHcloud Tech Talks Fr S01E05 – L’opérateur Harbor, une nécessité pour certai...
OVHcloud
 
PPTX
OVHcloud Tech-Talk S01E04 - La télémétrie au service de l'agilité
OVHcloud
 
PDF
OVHcloud TechTalks - ML serving
OVHcloud
 
PPTX
Logs @ OVHcloud
OVHcloud
 
PPTX
Les APIs OpenStack
OVHcloud
 
PDF
1 sysadmin vs 250 clusters de stockage
OVHcloud
 
PDF
Migrer 3 millions de sites sans maitriser leur code source ? Impossible mais ...
OVHcloud
 
PPTX
Industrialize Machine Learning
OVHcloud
 
PPTX
OVHcloud – Enterprise Cloud Databases
OVHcloud
 
PDF
OVHcloud Hosted Private Cloud Platform Network use cases with VMware NSX
OVHcloud
 
OVHcloud Startup Program : Découvrir l'écosystème au service des startups
OVHcloud
 
Fine tune and deploy Hugging Face NLP models
OVHcloud
 
How can you successfully migrate to hosted private cloud 2020
OVHcloud
 
OVHcloud Partner Webinar - Data Processing
OVHcloud
 
OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...
OVHcloud
 
Webinar - VPS New Range
OVHcloud
 
OVHcloud Tech Talks S01E08 - GAIA-X pour les techs : OVHcloud & Scaleway vous...
OVHcloud
 
Webinar - Enterprise Cloud Databases
OVHcloud
 
OVHcloud Tech Talks S01E07 – Introduction à l’intelligence artificielle pour ...
OVHcloud
 
OVHcloud Tech Talks Fr S01E06 – BeeGFS, un filesystem orienté performance, ma...
OVHcloud
 
OVHcloud Tech Talks Fr S01E05 – L’opérateur Harbor, une nécessité pour certai...
OVHcloud
 
OVHcloud Tech-Talk S01E04 - La télémétrie au service de l'agilité
OVHcloud
 
OVHcloud TechTalks - ML serving
OVHcloud
 
Logs @ OVHcloud
OVHcloud
 
Les APIs OpenStack
OVHcloud
 
1 sysadmin vs 250 clusters de stockage
OVHcloud
 
Migrer 3 millions de sites sans maitriser leur code source ? Impossible mais ...
OVHcloud
 
Industrialize Machine Learning
OVHcloud
 
OVHcloud – Enterprise Cloud Databases
OVHcloud
 
OVHcloud Hosted Private Cloud Platform Network use cases with VMware NSX
OVHcloud
 

Recently uploaded (20)

PDF
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PPTX
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
PDF
HydITEx corporation Booklet 2025 English
Георгий Феодориди
 
PPTX
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
PDF
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Are there government-backed agri-software initiatives in Limerick.pdf
giselawagner2
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
HydITEx corporation Booklet 2025 English
Георгий Феодориди
 
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
UiPath vs Other Automation Tools Meeting Presentation.pdf
Tracy Dixon
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Market Wrap for 18th July 2025 by CIFDAQ
CIFDAQ
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 

Advanced Web Hosting