After the schema.xml file creation, I want to restart the solr to reflect the newly created core. When restarting through command prompt, the solr gets restarted and everything works fine. But I want to do the restart through PHP code. I have used the below PHP code to restart, which outputs request timeout error (also getting Internal server error) also the solr is not restarted.
exec("solr restart -p 8983", $output, $return);
I am running PHP in IIS 6.x. Can anyone please suggest a solution.