I have installed lamp server on a EC2 instance, and then Wordpress following https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html#hosting-wordpress-prereqs
Now I have installed a plugin which works fine on other servers. This plugin has a GUI interface for users using my website, and at some moment they have to upload an image. This image is used for a curl. However, I'm getting curl error 26 after performing a curl, which I couldn't see in my local server. I suspect the error comes from the line:
$cFile = curl_file_create($_REQUEST["image"]);
Because if I echo $_REQUEST["image"] I can see an stream of an image in bytes correctly, but, if I echo $cFile I get an error 500 from server. Later I use this $cFile for
curl_setopt($ch, CURLOPT_POSTFIELDS, $cFile);
Do I have any problems of permissions? What do I have to do?