johmarjac - 2 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

Answer

edster - 2 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.

ryanthompson - 2 months ago

@edster halp

edster - 2 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.

johmarjac - 2 months ago

Thank's I guess I will just have a look into your links and try it out again :)

For example, that IUSR does not exist in my Security settings. So I cannot give it permissions to user that does not exist.. ?!

johmarjac - 2 months ago

@edster The thing is, I tried to install normal laravel yesterday, and did what your link has told me to do. And laravel could be installed successfully and I can show it without errors. So Laravel works fine, it seems to just have issues with pyro.

When entering the Backend of Pyro I get the following exception: ErrorException (E_ERROR) An exception has been thrown during the rendering of a template ("file_exists(): open_basedir restriction in effect. File(C:\inetpub\vhosts\yothri.com\httpdocs\pyrocms\core/pyrocms/accelerant-theme/resources/js/vendor/*) is not within the allowed path(s): (C:/Inetpub/vhosts/yothri.com\;C:\Windows\Temp)").

edster - 2 months ago

So I know case and slashes doesn't ususally matter on windows, but give it a try. Look at the allowed base directories and the path it is trying to access, it is saying it can't access it because it isn't in the allowed path.

Could be the trailing slash in your base_dir allowed paths, could be the different slash directions, could be the capital I in Inetpub.

https://forum.joomla.org/viewtopic.php?t=710302#p2787111 https://forums.iis.net/t/1154153.aspx <- mentions the trailing slash