I just migrated from the server and found a problem with MPDF. It turns out that I have a script that creates PDF documents and saves them in a folder on my server called Documents
I have already made sure that my folder has the necessary permissions. Your permissions are
I don't know if it has anything to do with parent folder permissions because they have different permissions.
The error that mpdf returns is the following:
An unrecognized exception was found
Message: Cannot create output file:
As further information I use Ubuntu Server 18.04.
The part of my PHP script that works on another server with cpanel (but doesn't work on this new server with Ubuntu 18.04) is the following:
$path_name = __DIR__ . "/../../assets/cdn/documentos/" . $file_name . ".pdf"; $mpdf->Output($path_name, "F");
I hope you can help me fix the problem. I have already tried to delete and create the folder using the console or FTP and it does not work. Thank you very much