I have a php (php-fpm) script script1.php
running in /var/www/html/folder1/script1.php
, protected with open_basedir
"/var/www/html/folder1".
From that script, I call a 2nd script script2.php
located in /var/www/html/folder2/script2.php
through php-curl
.
I call script2 using its public load balancer IP, yet, I get an error from script1, open_basedir in effect. I'm not sure why that's happening since curl is http://, not file://, and shouldn't resolve the file system the way it does. Or should it? I don't intend to change that open_basedir parameter. What's my best course of action?