problems with php using httpd from OpenBSD reddit / BSD ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 21:40 When I try to open a .php script from the web browser it downloads instead of running the script on my server, my httpd config: server "default" { listen on * port 2137 location "/*" { directory { no auto index, index "index.php" } root "/htdocs" } location "*.php" { fastcgi socket "/run/php-fpm.sock" } } I've enabled and ran the php80-fpm and the httpd services. Also, I don't want to create a new server block in the config for every project, I want to have multiple index.php files in other directories under /var/www/htdocs/ and load it by typing localhost:2137/website1/ in my web browser. ---------------------------------------------------------------------- kapitaali_com · 2021-12-08 22:38 a .htaccess file with AddType application/x-httpd-php5 .php could be tryworthy, you can also try disabling nginx cache ---------------------------------------------------------------------- zielonykid1234 · 2021-12-08 22:51 I places the .htaccess to the /var/www/htdocs, but didn't worked. Still downloads the file. EDIT: Ok, it worked. Thanks! ---------------------------------------------------------------------- adonov · 2021-12-09 06:00 OpenBSD httpd does not parse .htaccess files, so whatever made it work was something else you did. Maybe you could post the working configuration in case someone with a similar issue comes across this thread?