Hello,New to PHPMaker. Testing with a few pages. Copied all the files and directories. Loading the website, I keep getting the following:"Warning: Directory D:\InetPub\vhosts\liban-ex.com\httpdocs\MyFirst\vendor\ezyang\htmlpurifier\library/HTMLPurifier/DefinitionCache/Serializer not writable, please alter file permissions in D:\InetPub\vhosts\liban-ex.com\httpdocs\MyFirst\vendor\ezyang\htmlpurifier\library\HTMLPurifier\DefinitionCache\Serializer.php on line 305"Appreciate any help.
As the warning message said, make sure you have already given write permission for “Serializer.php” file inside that folder, and then try again.
Thank you for your response.
I’m trying this, but HostGator does not allow write permissions for some directories, it keeps reverting back. I have to do it for suPHP in the .ini file … checking the docs …Best Regards,
I too cannot get rid of this error, that floods my phperrors.log.
Gave full permissions to IUSR (yes, working on IIS) on that folder and still get the error.
If I delete the specific folder, I get this error: please create or change using %Cache.SerializerPath
This means I can set it to another folder. How can I do this, maybe adding the code to userfn.php?
Found the problem. Turns out that adding write permissions to IUSR doesn’t fix it. Instead permissions must be added to the local user
IIS AppPool<myappoolname>
Actually, this is very strange, because the project’s php scripts can store uploaded files, which are written to the filesystem even without these permissions. Can’t understand why HTML Purifier would need extra permissions, but the fix does work.
Nevertheless, to keep the vendor folder tidy and clean of cache files, I added the following to the Global Code:
$PurifierConfig->set(‘Cache.SerializerPath’, UploadTempPath());