proc_open() failed. Unable to launch a new process.
johmarjac - 6 months ago
Hello, I have a Windows Server 2016 with IIS 10 with Plesk Onyx and I want to install PyroCMS on my domain. I cant believe it takes me already 8 hours to find a solution but nothing works as expected and that makes me think to actually just move on and find the next CMS I could try. Now to my problems:
I have tried to use the installer. Downloading it worked fine. Running: pyro new mysite however did not. It throws RuntimeException: Unable to create a new process (proc_open() : Process.php:344)
Then I decided to try it using not the installer but using composer. It took 30 minutes to download everything. Then I looked up how to run laravel on IIS, added a web.config with the rewrite rules in the public folder. I set permissions to Full Permissions to whole folder containing pyrocms and pointed my domain to public folder. Then finally when trying to call the site, I get Server Error 500 with no info at all. Logs just say, FastCgiModule Reqruest Exception or something like that. NO INFO AT ALL. So I read further the Installation Guide and saw there is an alternative of using the web installer... The Pyro CLI. So I went with that, entered all my details, database ... blabla and that finally installed PyroCMS. When now visiting my site, it also showed the site perfectly. But then, of course, when viewing the admin panel it shows errors over errors (something with open_basedir() function has restricted access or something).
I am really tired that both methods failed, and now I want to know if there is people having same issues and how they fixed it. Thanks
edster - 6 months ago
The proc_open has been added to the documentation for clarity. The issue you had with composer are doced that you need to use
--prefer-source. The issues you have described with trying to load the gui seem to come down to your environment being misconfigured and not an issue with Pyro itself.
Perhaps have a look at: https://laracasts.com/discuss/channels/general-discussion/iis7-laravel-5 and https://stackoverflow.com/questions/45464267/setup-laravel-5-4-with-iis-10 or other documents on getting IIS working.
I dev on Windows, but I use WAMP/Laragon and other solutions rather then IIS. So the specifics of getting that environment working I can't help you with.
Your getting a permission error from what you said above, I would start by looking there.
Anouther thing to remeber, best practice for pyro is to point your vhost to the
public/ directory, I've had that resolve random issues before.