Hey there, everyone. So I've been spoiled by shared hosting for far too many years, so I've decided to experiment in what it takes to set up a FreeBSD-based web server from "bare metal" (right now, for testing purposes, that means a VirtualBox session not exposed to the internet). I've also not set up nginx before.
I think I have nginx working ok... a test index.html file is displayed. So the next step was to get PHP set up so that a CMS can work (I do not need MySQL in this instance). However trying to start the CMS after uploading it to the web directory (same place I had the test index.html) does not work even after setting the same file permissions. nginx's error.log contains tons of "Permission denied" PHP errors. So I believe I'm looking at something PHP-specific here, clearly requiring more than just installing PHP (newbie alert). I installed php81 and the following modules: php81-ctype php81-curl php81-dom php81-iconv php81-gd php81-mbstring php81-session php81-simplexml php81-xml php81-zip php81-zlib php81-filter php81-ftp php81-tokenizer php81-calendar php81-fileinfo (I believe php*-json and php*-openssl are also required but they don't appear available in php81-* versions). Then I simply:
Tutorials I found online didn't go any deeper than that re: PHP but clearly I'm missing something. Anyone feeling gentle and willing to guide me, provide insight or point me to a proper tutorial?
I do have a dummy user for the website set up with no password, no login and disabled. Unclear what it should own vs what www should own. Does the dummy user need to be part of wheel?
I think I have nginx working ok... a test index.html file is displayed. So the next step was to get PHP set up so that a CMS can work (I do not need MySQL in this instance). However trying to start the CMS after uploading it to the web directory (same place I had the test index.html) does not work even after setting the same file permissions. nginx's error.log contains tons of "Permission denied" PHP errors. So I believe I'm looking at something PHP-specific here, clearly requiring more than just installing PHP (newbie alert). I installed php81 and the following modules: php81-ctype php81-curl php81-dom php81-iconv php81-gd php81-mbstring php81-session php81-simplexml php81-xml php81-zip php81-zlib php81-filter php81-ftp php81-tokenizer php81-calendar php81-fileinfo (I believe php*-json and php*-openssl are also required but they don't appear available in php81-* versions). Then I simply:
Code:
# sysrc php_fpm_enable=yes
# service php-fpm start
Tutorials I found online didn't go any deeper than that re: PHP but clearly I'm missing something. Anyone feeling gentle and willing to guide me, provide insight or point me to a proper tutorial?
I do have a dummy user for the website set up with no password, no login and disabled. Unclear what it should own vs what www should own. Does the dummy user need to be part of wheel?