404 Error on Fresh Install

pwrsrg - 10 months ago

So after MANY unsuccessful installation attempts via the Pyro installer, I was finally able to install via Composer.
But when I try to view it in the browser, I get redirected to /installer and get a 404 error.

Here is my system configuration:
Windows IIS 10
PHP 5.6.18
Composer 1.4-dev
Elevated command prompt

Answer

edster - 10 months ago

So its needs to be updated that's fine.

https://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module should get your index.php out.

piterden - 10 months ago

https://laravel.com/docs/5.3#server-requirements

Did you install Pyro with artisan command?

pwrsrg - 10 months ago

I followed the "Via Composer" installation instructions on the PyroCMS website.
https://pyrocms.com/documentation/pyrocms/v3.1
composer create-project pyrocms/pyrocms --prefer-source

All of my other Laravel sites are working just fine.

edster - 10 months ago

Did you make sure you have all the requied addons.

Full extension requirements are here: https://pyrocms.com/documentation/pyrocms/v3.1#installation/server-requirements

Also make sure your host is pointing to the public folder not the root.

Can you give us more information on your hosting environment? What is the URL you are using?

you also should be using 3.3 not 3.1

pwrsrg - 10 months ago

OK, so I was able to get it to "work", though something is still not right. When I add index.php in front of the route, it works:

Does NOT work - http://pyrocms.dev/installer
Does work - http://pyrocms.dev/index.php/installer

It clearly has something to do with how PHP is behaving on my machine, but good to add to the forum in case someone else runs into the same issue.

Also to answer your questions from above:

  1. The Composer install FAILS if all PHP addon requirements are not first met.
  2. If I was not pointing to the /public folder, Pyro would not have redirected to the /installer path.
  3. My hosting environment details were listed above - Windows IIS 10, PHP 5.6.18, Composer 1.4-dev, Elevated command prompt
  4. The huge "GET STARTED" button on the PyroCMS.com homepage points to /v3.1, not /v3.3.

    Thanks for all your help!

edster - 10 months ago

So its needs to be updated that's fine.

https://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module should get your index.php out.