I am running a non framework php7 site on an ubuntu server. (18.4)
There is no issue when on my local machine.
I have a controller that attempts to create a file.
fopen("new.txt", "w");
No error is thrown, but no file is created. Note: same issue with copy($src,$dest);
I set the directory and file to CHMOD 777.
'fopen' works in the directory when i use the cli,
PHP -a fopen("new.txt", "w");
The program uses the php functions unlink() & chmod() else where in the program with no issues.
Is there a php.ini setting I have to enable to allow php web scripts to create files on apache?