I'm happy to introduce our new ultra-low tech CMS for smol, accessible websites. The goal was to make something that could be self-hosted, but friendly enough for people who don't SFTP or use a terminal. 3 PHP files, Apache, and Gemtext. Should work on any dumb old Apache host; a technical person could manage many of these for friends and family with zero maintenance. Happy to answer any questions or take bug reports.
@winduptoy Looks cool ! But I'll have to struggle with debian (php7) and nginx to make it work :'(
@winduptoy oh yeah, ff debugger.
>XHR POST https://MYWEBSITE/cms/render.php/index.gmi
> State : 404 Not Found
Of course there is nothing there ! I struggle to understand what was intended there
@winduptoy Oh, that's htaccess, it explains so much ! I look into it, I'll tell you ! And if I'm right, it also should work with php7 with the tinyest hack (but maybe I missed some hard parts).
@winduptoy Ookay. So I got it working, it wasn't htaccess related (I should now find an alternative), my config just didn't handled the path_info trick.
I followed this link to make it work : http://kbeezie.com/php-self-path-nginx/
To get lichen to work with php7 I just added two simplistic function "str_start_with" and "end_with"... Seriously, PHP, why T_T
@winduptoy Mhm, almost working anyway. I can edit and make new post, but can't visit them after. Is that still me having bugs or is it just still under dev ? It'd be sweet if it'd just generate static html pages out of the static pages, I think.
@otyugh that's sending the request to /cms/render.php and setting the $_SERVER['PATH_INFO'] variable to /index.gmi. I know it looks weird, but it's valid for Apache. It's all very dependent on the .htaccess configuration (check the comments). I have no clue how to make that work with nginx but I'm sure it's possible. If you get it working I will include nginx instructions for others.