PHP API - no response if restart flag set to yes

Hello,

I’m calling “v-add-web-domain-alias” with a cURL request in PHP and the alias gets created but since I’m adding the “restart” flag I don’t get any response and after 10s I get a 500 error. I also tried with “shell_exec()” but it’s the same. Once i remove the restart flag I immediately get a response.

The strange thing is, it doesn’t occur when I run the same script from an external host, so I guess it has to be a nginx/apache/php setting but I can’t figure it out.

Any idea?

Thanks a lot,
Kornel

It the script calling the api running on the same server it will restart php causing the issue

1 Like

I get it, makes sense. Is there any workaround you can think of?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.