HTTP Error 500

Install and configure FormaLMS and DoceboCE
Post Reply
jgun98vpn
Newbie
Posts: 6
Joined: Mon Apr 01, 2024 4:02 am

HTTP Error 500

Post by jgun98vpn »

Hi there,
I am using ubuntu 22.04
install apache2
install php7.4
install mysql

done extract and copy formalms 3.3.22
but I'm getting error when do
http://192.168.x.x/formalms/install

This page isn’t working192.168.x.x is currently unable to handle this request.
HTTP ERROR 500

Rgds,
JG
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: HTTP Error 500

Post by alfa24 »

Check Apache error log. You'll find a fatal error.
Per supporto GRATUITO contattatemi in privato qui
jgun98vpn
Newbie
Posts: 6
Joined: Mon Apr 01, 2024 4:02 am

Re: HTTP Error 500

Post by jgun98vpn »

Hi Alfa24, thank you for your replay
I found error
PHP Fatal Error: Uncaught RuntimeException: Unable to create the cache directory (/var/www/html/formalms/files/cache/twig/b1)

Regards,
JG
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: HTTP Error 500

Post by alfa24 »

Check that Apache user has write permission on that folder
Per supporto GRATUITO contattatemi in privato qui
jgun98vpn
Newbie
Posts: 6
Joined: Mon Apr 01, 2024 4:02 am

Re: HTTP Error 500

Post by jgun98vpn »

Hi alfa24,
What user Apache used?

permission already 755, but for root:root
I don't know which user that apache used.

Regards,
JG
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: HTTP Error 500

Post by alfa24 »

You'd better study how Apache works before publishing sites, otherwise you'll encounter errors or (even worst) security problems. Never make root own published folder, privilege escalation attack would be easy
apachectl -S, which will show something Apache user and group
Per supporto GRATUITO contattatemi in privato qui
jgun98vpn
Newbie
Posts: 6
Joined: Mon Apr 01, 2024 4:02 am

Re: HTTP Error 500

Post by jgun98vpn »

Hi alfa24,
Thank bro. superb advised.
Regards,
JG
Post Reply