I
I
IsaevDev2017-04-27 22:00:37
PHP
IsaevDev, 2017-04-27 22:00:37

Why can't a PHP-FPM script make a file_get_contents( 'https://...' ) request?

The bottom line is that it costs PHP7.1 The pro
user is created and added to the www-data group For him, the /home/pro pro folder owns the folder with permissions 755 The /home folder owns root In the pool settings user = pro; chroot=/home; listen = 10.0.0.9:9000 In php.ini url_open is allowed Nginx from another server proxies the request to eth1 vk.com) If I open it through a browser, I get the error file_get_contents cant resolve host..



I read on the stack that there could be a problem in dns - it seems to me that it is unlikely. Then nothing would work.
For the second day I've been freaking out
. What could be the reason?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-04-27
@IsaevDev

https://serverfault.com/a/613174

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question