Really embaressed to ask this question but ive spent the last 6 hours trying to get this working without luck.
I'm new(ish) to freebsd. Primary knowledge is Windows but im also ok with Linux. Ive just installed FreeBSD 15.0 with KDE/Plasma over the top to experiment with. I've run cut down FreeBSD packages for the last several years (PFSense / XigmaNAS) but im hoping to transition to a full install as I keep hitting boundaries with those.
In short, I cant get .php files to render correctly. Apache is up and running (Apache24). I can hit basic html pages locally.
Ive installed php through package manager, as well as targetting specific versions like php85.
I've made sure both apache and php are running as services
I've added the following in httpd.conf
LoadModule php_module modules/libphp.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
i've tried
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
but no matter what ive tried it either renders the file as plain text, or tries to open it in an external program
Any help greatly appreciated.... going a bit nuts here. Sure ive missed something simple, but for the life of me cant work out what that is. Spent hours trying different things from google but none of them have worked.
I'm new(ish) to freebsd. Primary knowledge is Windows but im also ok with Linux. Ive just installed FreeBSD 15.0 with KDE/Plasma over the top to experiment with. I've run cut down FreeBSD packages for the last several years (PFSense / XigmaNAS) but im hoping to transition to a full install as I keep hitting boundaries with those.
In short, I cant get .php files to render correctly. Apache is up and running (Apache24). I can hit basic html pages locally.
Ive installed php through package manager, as well as targetting specific versions like php85.
I've made sure both apache and php are running as services
I've added the following in httpd.conf
LoadModule php_module modules/libphp.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
i've tried
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
but no matter what ive tried it either renders the file as plain text, or tries to open it in an external program
Any help greatly appreciated.... going a bit nuts here. Sure ive missed something simple, but for the life of me cant work out what that is. Spent hours trying different things from google but none of them have worked.