The document provides information about different web hosting plans from OVH including Perso, Kimsufi, and Pro. It then demonstrates how to deploy a Laravel application called "rond coin" using the Pro plan which includes SSH access. It shows cloning the GitHub code, installing dependencies with Composer, configuring the database using a private SQL instance, and setting up the application. It also discusses adding an API and CDN, and provides tips for optimizing the PHP configuration, caching, and more.
3. 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
5. 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
32. Activate cache on static content
$ vim public/.htaccess
...
# Cache des images durant 1 mois
<FilesMatch ".(jpg|jpeg|png|gif)$">
Header set CacheControl "maxage=2592000, public"
</FilesMatch>
# Cache des javascript et CSS durant 1 mois
<FilesMatch ".(js|css)$">
Header set CacheControl "maxage=2592000, public"
39. 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
40. 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',
41. 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...)