Pixel v2 Installation Error
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
(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.
(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.
(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.
(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 :)