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 Urgh, I'm stuck on "There was an error rendering the page." while loading, no error php's side, any way to debug this ? I wish I understood what did the JS thing

@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

@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.

@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 : kbeezie.com/php-self-path-ngin

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.

· · Web · 0 · 0 · 0
Inscrivez-vous pour prendre part à la conversation
Mastodon Chapril

Chapril, membre du collectif CHATONS, un projet de l'April. Une fois votre compte créé, vous pouvez notamment vous abonner au compte de l'April (l'abonnement au compte admin de cette instance étant automatique).