enabling php in web server

Using Web Server, PHP, MySQL, MariaDB.
Post Reply
User avatar
trunip190
Posts: 4
Joined: 04 Dec 2020, 11:46

enabling php in web server

Post 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.
User avatar
trunip190
Posts: 4
Joined: 04 Dec 2020, 11:46

Re: enabling php in web server

Post by trunip190 »

It all started working when i switched to https in web server. oh well.
User avatar
trunip190
Posts: 4
Joined: 04 Dec 2020, 11:46

Re: enabling php in web server

Post 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.
Post Reply

Return to “Web Server/PHP/MySQL/MariaDB”