Problem with access permissions simplexml_load_file()

RicRey

Member
Feb 3, 2022
15
5
3
Ecuador
cPanel Access Level
DataCenter Provider
Hello everyone, I hope you can help me, I have a problem and I think it is permissions...

There is an electronic invoicing system that I am installing for Ecuador developed in PHP and it makes JAVA requests to the government's SRI System to obtain the Signed XML and the corresponding authorization of the invoice..., if I install XAMPP with centos 7 on a VPS server, the The system works perfectly, signs and sends the clear document in the folders where the XML and PDF of the invoice are received are with permission 757...

But on my server that has CPANEL it doesn't work no matter how hard I try everything... I get the following error:

Warning: simplexml_load_file(): I/O warning : failed to load external entity "../comprobantes/si_firmados/1912202201099289028200120010020000024821234567811.xml" in /home/factura/public_html/home/facturacion/facturacionphp/controladores/ctr_firmarxml.php on line 57

My server uses Cloudlinux 7, Cpanel, Litespeed, imunify360, but the system does not work at all, I have reviewed and I have set the same permissions to the folders and files that I have on the server with xampp, I have removed the cagefs from the account that I have created, but nothing seems to work... maybe someone can help me because it doesn't work with cpanel :(
 
Last edited:

RicRey

Member
Feb 3, 2022
15
5
3
Ecuador
cPanel Access Level
DataCenter Provider
The routes are like this:

public_html/home/facturacion/facturacionphp/comprobantes
public_html/home/facturacion/facturacionphp/controladores

As I mentioned at the beginning of the post, in xampp with centos 7 or cloudlinux 7 everything works perfectly, but on the server with cpanel it gives that error.
 

RicRey

Member
Feb 3, 2022
15
5
3
Ecuador
cPanel Access Level
DataCenter Provider
Yes, all the permissions are like this, what occurs to me is that perhaps cpanel puts an impediment for when the SRI returns the authorized document and it must be saved, but the strange thing is that it only happens with cpanel.