simplexml_load_file PHP does not work at all

0

(I'm using Ubuntu)

I tried everything I imagined was the problem. I tried first using the site I want to collect the XML that is from any Youtube channel.

Failed ...

Then I tried to download it and then put it in the server folder to see if anything was changed.

Failed ...

I looked at whether my php.ini was allow_url_fopen = On , and yes, it was On .

It's always the same mistake. It delivers the Failed to load resource: the server responds with a status of 500 (Internal Server Error) , it does not matter whether the file exists or not.

Can anyone tell me what's going on?

    
asked by anonymous 28.03.2017 / 20:07

1 answer

2

I had also tried everything, only localhost worked, the server made the same mistake. I tried this tip that was small in the above comment and it worked:

apt install php7.0-mbstring php7.0-zip php7.0-xml

Thank you !!

    
23.10.2017 / 19:19