Snipe-it Artisan Not Generating Key

Are we missing a guide for your target system? Request one, or submit your own!

Snipe-IT is a free and open source web application for IT assets management. It is written on the Laravel 5.2 framework and uses MySQL to store its data. Snipe-IT is a complete and comprehensive solution for assets management, software license management, and much more.

In this tutorial, you will learn to install Snipe-IT on Ubuntu 16.10.

If you installed Laravel via Composer or the Laravel installer, this key has already been set for you by the php artisan key:generate command. Typically, this string should be 32 characters long. The key can be set in the.env environment file. If you have not copied the.env.example file to a new file named.env, you should do that now. Apr 21, 2017  Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Jan 22, 2016 Doesn't look like the key ever changed so I'm not sure what I may have done. How does the system know an ldap user from a local user. Just looking at the user table it appears that accounts exist for both types.

Prerequisites

  • A Vultr Ubuntu 16.10 server instance.
  • A sudo user.

Step 1: System update

Before installing any packages on the Ubuntu server instance, it is recommended to update the system. Log in using the sudo user and run the following commands to update the system.

Step 2: Install Apache web server

Install the Apache web server.

Start Apache and enable it to automatically run at boot time.

Step 3: Install PHP 5.6

Snipe-IT is compatible with any version of PHP greater than 5.5.9. Since PHP 5.5 has reached end of life, you can install PHP 7. Run the following command to install PHP 7 with the modules required by Snipe-IT.

Step 4: Install MariaDB

MariaDB is a fork of MySQL. Install it using following command.

Start MariaDB and enable it to automatically start at boot time.

Secure your MariaDB installation.

You will be asked for the current MariaDB root password. As we have just installed MariaDB, its root password has not been set. Press the enter key to proceed. Set a strong root password for your MariaDB server and answer Y to all of the other questions asked. The questions asked are self explanatory.

Step 5: Create database for Snipe-IT

Log into the MariaDB shell as its root user using the following command.

Provide the password for the MariaDB root user.

Run the following queries to create a database and a database user for Snipe-IT.

Make sure that you use a semicolon at the end of each query above. You can replace the database name 'snipeit_data' and username 'snipeit_user' according to your needs. Be sure to change 'StrongPassword' to a very strong password.

Step 6: Install Composer

Install Composer using the following command. Composer is a dependency manager for PHP.

Step 7: Install Snipe-IT

First, install Git.

Switch to Apache's web-root folder and clone the latest version of Snipe-IT.

Create the .env file from example file provided.

Edit the .env file.

Find the following lines and edit the values according to instructions provided.

Leave the default values for all of the other parameters. Save the file and exit the text editor.

Provide the appropriate ownership and file permissions.

Install PHP dependencies using Composer.

Generate the 'APP_Key'.

Step 8: Create virtual host

Run the following command to create a virtual host for your Snipe-IT site.

Add the following lines into the file, then save the file.

Activate the configuration and enable mod_rewrite using the following commands.

Restart Apache.

Step 9: Finish installation

Your Snipe-IT installation is now complete. You can finish configuring Snipe-IT through your web browser. Navigate to the following link, replacing snipeit.example.com with the IP address of your Vultr VPS.

Thank you for reading. This concludes the tutorial.

Snipe-it artisan not generating key free
  • Sponsor Apr 21, 2017

Expected Behavior (or desired behavior if a feature request)

according to https://snipe-it.readme.io/docs/generate-your-app-key the following command should generate a key and set the APP_KEY value in the .env file:
php artisan key:generate

Actual Behavior

Nothing happens. The command produces no output and .env is not altered. This is the content of PHP71x64_errors.log
I refer to issue 3377. Accoring to the answer I tried several changes.
The php_mysql.dll warning is gone after adapting php.ini. However, I keep running into the no file found error:
'C:inetpubwwwrootsnipe-itbootstrap/../vendor/autoload.php'
in all variations of forward and back slashes, depending on changing the value of require DIR.'/../vendor/autolaod.php in line 17 of autoload.php. Shouldn't there be a 'vendor' directory in the snipe-it root in order for this to work?

Please confirm you have done the following before posting your bug report:

  • I have enabled debug mode
  • [x ] I have read checked the Common Issues page

Please provide answers to these questions before posting your bug report:

  • Version of Snipe-IT you're running
    3.6.4
  • What OS and web server you're running Snipe-IT on
    Windows Server 2012 R2 - IIS
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
    Manual installation
  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproduceable on the demo.
  • Include any additional information you can find in app/storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

Snipe-it Artisan Not Generating Key Windows 10

commented Apr 21, 2017

I (finally) figured out how to get the key. Thanks for all the help.

Snipe-it Artisan Not Generating Key West

closed this Apr 21, 2017

Snipe-it Artisan Not Generating Key 2017

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment