Deploy Kirby on OVH

Hello,
I’ve built a website using kirby and I would like to deploy it to OVH.
Actually, it’s going to be my first time doing it, and I would have known if anyone could help me with some online ressources.

Thanks a lot.

What sort of server/hosting do you use at OVH? (Shared hosting, own VPS, cloud instance, bare metal).

Hi texnixe,
I have a hosting plan in their webcloud category. It’s a database MYSQL running php 7.4.
I can acces that database using FileZilla.

Is that correct ?

Thanks a lot.

For Kirby, you don’t need a database because it’s a flat file CMS, unless you are also accessing a database from Kirby.

I think this is the right documentation for your plan: Publishing a website on your Web Hosting plan | OVH Guides

Hi,
Alright, thanks.
My database will be useful actually.

So i only have to push the files using my ftp client, right? And make some tweaks like in the doc you sent me?

Thanks.

Yes, exactly, at least that is one way of doing it and probably the easiest.

  • Log in with your SFTP credentials with your FTP client.
  • Copy your project files into the webroot or a separate folder
  • Make changes to .htaccess if required (shouldn’t be necessary)
  • if you are using a subfolder, point the domain to this new folder
  • Adapt the php.ini settings if necessary

Seems perfect!
Thanks a lot.

Hi there again,
I’m trying to upload the website.
Actually everything seems to work fine if I use a simple index.html page, or if I edit the index.php with plain html (if I add a paragraph at the begining it will be rendered)but my kirby website is not showing, I only have a white page.
Here is it’s location


The htaccess file is :

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule (^|/)\.(?!well-known\/) index.php [L]
RewriteRule ^content/(.*) index.php [L]
RewriteRule ^site/(.*) index.php [L]
RewriteRule ^kirby/(.*) index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]

</IfModule>

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

And my ovhconfig file is :

app.engine=php
app.engine.version=7.4
http.firewall=none
environment=production
container.image=stable64

Thanks for the help.

First of all, I’d comment this line if you haven’t tried that yet.

The check if there are any errors in your php error log/server error log.

If that doesn’t help, output phpinfo() in index.php to check if all required PHP extensions are available.

This should also show you where you can find the php error log.

Seems like I figured this out.
Might be because I forgot to activate the license key.

Thanks!