Page 1 of 1

HTTP Error 500

Posted: Mon Apr 01, 2024 4:26 am
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

Re: HTTP Error 500

Posted: Mon Apr 01, 2024 7:54 am
by alfa24
Check Apache error log. You'll find a fatal error.

Re: HTTP Error 500

Posted: Mon Apr 01, 2024 8:56 am
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

Re: HTTP Error 500

Posted: Mon Apr 01, 2024 8:57 am
by alfa24
Check that Apache user has write permission on that folder

Re: HTTP Error 500

Posted: Mon Apr 01, 2024 9:09 am
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

Re: HTTP Error 500

Posted: Mon Apr 01, 2024 9:14 am
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

Re: HTTP Error 500

Posted: Mon Apr 01, 2024 9:20 am
by jgun98vpn
Hi alfa24,
Thank bro. superb advised.
Regards,
JG