Page 1 of 1

enabling php in web server

Posted: 26 Oct 2024, 14:24
by trunip190
I've done some html and javascript before but not php.
i have web server, php 7.4, along with mariadb installed.
web server has been set up with a virtual host and php installed (aforementioned php 7.4).

so, here's what works - i can connect in to a sample index.htm file and it will display, along with javascript, so that's a basic start.
however, when i try and connect to sample.php (just a basic php file i downloaded) i get '500 internal server error' and it doesn't load.
if i change the type to htm/html then it loads, but the php portions do nothing.

is there a step that I'm missing in getting the php portion to run? i feel like a service must need starting etc.

Re: enabling php in web server

Posted: 26 Oct 2024, 14:36
by trunip190
It all started working when i switched to https in web server. oh well.

Re: enabling php in web server

Posted: 17 Nov 2024, 03:40
by trunip190
It ended up working after a while on it's own, but curiously while it was working displaying web pages i could no longer log into mariadb, or the TOS online app.
Then, after a couple of days, everything started work together and i could do it all. no idea what happened - i was checking every day and it was just web server until one day i could access all three.