Pixel v2 Installation Error

richard-madison

Aug 23rd, 2017 03:18 PM

Hello,

I'm having a problem installing Pixel v2. Cloud server at digital ocean. Did not experience any errors through the installation, but now /install//finish gives a 404:

The requested URL /install//finish was not found on this server.

Thoughts?

Thanks,

Richard

richard-madison

Aug 23rd, 2017 03:23 PM

(more details)

Ok, after setting APP_DEBUG=true in the .env, I see this:

SQLSTATE[42S02]: Base table or view not found: 1146 Table '[database].downloads' doesn't exist (SQL: select count(*) as aggregate from downloads)

we have replaced our database name with [database] in the above error.

Also checked and no tables have been created in our database.

richard-madison

Aug 23rd, 2017 03:25 PM

(and a solution)

Right, so not sure why it didn't work, but changing into the application folder and running "php artisan migrate" appears to have resolved this error.

Anyone else experiencing this issue, might find that this solves their problem as well. But don't blame me if it makes things worse ;)

Cheers.

richard-madison

Aug 23rd, 2017 03:33 PM

(and finally an explanation)

After we fixed the data error, we tried to access the /admin and received another 404. So we ran a couple of tests and it appears that mod_rewrite was install on our server, but not enabled. We enabled and restarted apacahe and now we can access /admin

This is likely what caused the /install/finish to fail in the first place.

Anyhow - maybe someone else can take this post and save themselves a bit of time.

And a last suggestion, I think it's not too difficult on your install requirements page to check if mod_rewrite is enabled - probably something as simple as grabbing the contents behind the scenes from a dummy route that returns data (or a 404 if mod_rewrite isn't enabled.) Just my two cents.

Thanks.

richard-madison

Aug 23rd, 2017 03:46 PM

(and an addendum)

Turns out more happened behind the scenes on that /install/finish

To get starter data into the database (specifically the admin user):

Change to the /application folder and run "php artisan db:seed"

I think a better long term solution is to make sure that you have mod_rewrite enabled before the install :)

mark

Aug 24th, 2017 06:26 AM

This is a common issue that the installer fails at the last step.

And running php artisan migrate and php artisan db:seed should help. This is also the case for GeekShop (they use the same installer)