Hello! I’m new to using Kirby, but it’s all been easy enough to figure out while developing locally with MAMP.
I wanted to figure out how to host it publicly on a real web page, and feel a bit lost with how to go about that. The site is for a small non-profit, so very little traffic is expected. Do I just find a hosting platform that meets all the PHP requirements, and upload everything?
All you need to do is upload the files to a server. For that you need a domain name, and compatable webhosting. Alot of hosting companies market hosting plans as being Wordpress comptible - any of those will be more than sufficiant, but avoid the ones that charge extra for a Database, because you will not need one.
But thats assuming your in the UK / Western Europe
Regarding the domain name, if you dont have one yet, it is generally smoothest to buy one through whatever hosting company you choose. This is becase they will set it up for you to work with the hosting. If you get it from else where, you will need to do that yourself.
Cool! That all makes sense. I’m located in the Eastern US, and am certainly open to recommendations for hosting and domain name.
For my personal site, I have a domain and hosting from godaddy that I bought years ago. I’ve been meaning to switch away from them but never got around to it. I tried uploading my Kirby site to a subdirectory of my personal site, and I just got PHP errors. Is there something I might have done wrong, or is godaddy perhaps not equipped well for Kirby?
That is helpful to hear, thanks. I was looking into Fortrabbit a bit, will do the same with Liquid Web.
With the subdirectory on my godaddy site, here is the error I get in the browser: Parse error : syntax error, unexpected T_OBJECT_OPERATOR, expecting ‘,’ or ‘;’ in /home/content/88/3875188/html/waarc/index.php on line 5
I’m wondering if, for whatever reason, my hosting doesn’t have a modern enough version of PHP.
The PHP version can usually be set on a per domain/per folder level with most hosting providers. So if your PHP version is outdated, check if you can change it in the control panel of the service (some services require that you set the PHP version in .htaccess, check out the provider’s docs). More often than not, you don’t have to change hosting.
I’m back with proper hosting that supports PHP 7.4, but am now running into a new issue when uploading the contents of my site: Call to undefined function Kirby\Toolkit\ctype_digit()
I’ve reuploaded several times and can’t quite figure out what might be going wrong. It all works fine when hosted locally.
And I’d say either this information is pretty outdated
Update: iPage currently uses PHP version 5.3, with availability to choose from 5.4/5.5/5.6 also coming soon. This is a unique benefit to see on an affordable hosting provider under $10/month.
or you should use another hosting provider, because PHP 5.x has long reached end of life and you seem to be on 7.4 anyway.
Come to think of it, the issue is probably something else. If we read the error closely, then it tries to call a function Kirby\Toolkit\ctype_digit() and of course, in that namespace, no such function exists, because ctype_digit()` is a PHP function.
So the question is, why does this happen.
Is there any more information regarding this problem? A stacktrace ?
Interestingly enough, when I reached out to support, they told me that 7.3 supports ctype, but 7.4 doesn’t. I changed my version to 7.3 and it’s all good now.