Install on Freedom OS

Hi, I am trying to get the pretty URL’s setup but when I run the sudo command i get an error message
sudo -u kincloud php /home/kincloud/public_html/ocs maintenance:update:htaccess

PHP Warning: Unknown: failed to open stream: Cannot allocate memory in Unknown on line 0
Status: 403 Forbidden

I have tried the documented command as well and cant get that to run

It looks like you have some restrictions running php on command line. Or the php configuration when run via command line is very restricted. You can see the settings with php -i.