-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database Settings (Help for Total Noob) #800
Comments
Hi @hardlock00 - did you actually create a database, and a database user in your MariaDB? Snipe-IT doesn't do that for you. You'll need to create a database, create a database user, and then grant that user permission to that database. Then you modify the |
Actually, this link is more clear: http://www.cyberciti.biz/faq/how-to-install-mariadb-databases-on-a-freebsd-v10-unix-server/mariadb-create-user-database-password/ |
Ok that link seemed to work. and it went through setting up. I just said yes to both questions and updated the key as it suggests. However now when I browse to the URL I get an Server Error: 500 (Internal Server Error) Which is odd, as this is the second time I have done all of this and the first time didn't get that error. |
Server Error: 500 (Internal Server Error) => Sure error Permission |
Could be one of a few things. We need to see what's in your logs. http://snipeitapp.com/documentation/getting-help/ |
Here are my logs that I have. [2015-05-18 10:20:17] production.ERROR: exception 'ErrorException' with message 'Trying to get property of non-object' in C:\inetpub\wwwroot\snipe-it\app\storage\views\e45a256171a65da9ba495060df6401df:11 Next exception 'ErrorException' with message 'Trying to get property of non-object (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\layouts\default.blade.php)' in C:\inetpub\wwwroot\snipe-it\app\storage\views\e45a256171a65da9ba495060df6401df:11 Next exception 'ErrorException' with message 'Trying to get property of non-object (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\layouts\default.blade.php) (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\layouts\default.blade.php)' in C:\inetpub\wwwroot\snipe-it\app\storage\views\e45a256171a65da9ba495060df6401df:11 Next exception 'ErrorException' with message 'Trying to get property of non-object (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\layouts\default.blade.php)' in C:\inetpub\wwwroot\snipe-it\app\storage\views\e45a256171a65da9ba495060df6401df:11 Next exception 'ErrorException' with message 'Trying to get property of non-object (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\layouts\default.blade.php) (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\layouts\default.blade.php)' in C:\inetpub\wwwroot\snipe-it\app\storage\views\e45a256171a65da9ba495060df6401df:11 Next exception 'ErrorException' with message 'Trying to get property of non-object (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\layouts\default.blade.php)' in C:\inetpub\wwwroot\snipe-it\app\storage\views\e45a256171a65da9ba495060df6401df:11 Next exception 'ErrorException' with message 'Trying to get property of non-object (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\layouts\default.blade.php) (View: C:\inetpub\wwwroot\snipe-it\app\views\backend\layouts\default.blade.php)' in C:\inetpub\wwwroot\snipe-it\app\storage\views\e45a256171a65da9ba495060df6401df:11 |
Any chance you have bad data in there? Did you seed the database and then maybe delete something directly from the DB? |
The only file i deleted was the one for composer.lock, as i had and error. Other from that i followed the iis install to the letter. |
Not files, database entries. That error usually shows up when it's trying to request an asset that's been deleted. Can you show me what's in C:\inetpub\wwwroot\snipe-it\app\storage\views\e45a256171a65da9ba495060df6401df on line 11 (and a little just before and just after). |
Any luck here? |
Hey @hardlock00 - can you tell me if you've made any progress here? Otherwise I'm going to close this ticket. |
Hi Snipers and Githubbers
Help required for total website and database noob.
Basically I followed all the step to the letter including going through the FAQ errors on the Snipe IT page. Installed under windows and IIS and cannot get this to work. I think I'm not putting the correct information in for the Database in database.php.
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'snipeit_laravel',
'username' => 'travis',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
Where should I be getting the information to enter here? I used MariaDB
When I try to run 'php artisan app:install --env=production' in the composer I get the error
Access denied for user martin @ localhost. using password yes.
Any help would be awesome.
Many Thanks
Martin
The text was updated successfully, but these errors were encountered: