Long story short:
It’s a caching system - The page takes information from the database, prints it to the browser, and then sends that page to a special cache folder that can be read later. If any portion of the page is updated, a database entry is set to “true”. The page the database for this value on each load. If it is set to true, then it regenerates the page, saves that to a file, and sets the value back to false.
The issue:
fopen(cache/items/en/item_1.php): failed to open stream: Permission denied
I’ve wrestled with this for hours - I’ve assigned different permission to different folder, groups, users, ect ect. Absolutely nothing has worked after HOURS of wrestling with it - I’m understandably frustrated. No matter the folder, the location, permissions given to PHP, or the method, fopen() ALWAYS results in a Permission Denied for write access error.
Please, I beg you: What do I need to do get fopen() working?!
The script attempting to create the file is located at /var/www/html/p/r/ViewItem.php. The cache folder is at /var/www/html/cache.
I’m running the latest version of LAMP.
Please, help me through this. The number of queries on the page are far too much to load each time, so the ability to cache is mandatory.