PHP Script Can't Create Log File
My site had some PHP scripts that created log files to output trace messages I use in troubleshooting the scripts.
Now that I am on linode, my PHP scripts can't create the log files.
Anything I need to do, perhaps in Apache or PHP to get this to work again?
I have a Linode 512 with LAMP stack StackScript.
Thanks!
Greg
4 Replies
Try
Don't forget to write full description - error message and related part of code.
sudo chmod 775 /path/to/the/directory/
sudo chown www-data:www-data /path/to/the/directory/