Show pageBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Snipe-IT ====== ===== INSTALLATION ===== $ git clone https://github.com/snipe/snipe-it $ sudo apt-get install php php-mbstring php-curl php-bcmath php-gd php-xml $ cd snipeit $ curl -sS https://getcomposer.org/installer | php $ php composer.phar install --no-dev --prefer-source $ php artisan key:generate $ sudo mv snipe-it /var/www/html ===== SETUP ===== See [[selfhosted:apache|APACHE]] to install, configure, and enable site < /etc/apache2/sites-available/snipe.conf > <VirtualHost *:80> Alias /snipe-it "/var/www/html/snipe-it/public" <Directory /var/www/html/snipe-it/public> Allow From All AllowOverride None Options +Indexes </Directory> DocumentRoot /var/www/html/snipe-it/public ServerName www.yourserver.com # Other directives here </VirtualHost> < /var/www/html/snipe-it/public/.htaccess > <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On RewriteBase /snipe-it # Uncomment these two lines to force SSL redirect # RewriteCond %{HTTPS} off # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule> environment: $ sudo nano .env < .env > APP_URL=localhost DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_DATABASE=snipeit DB_USERNAME=snipeituser DB_PASSWORD=snipeitdb_password1 DB_CHARSET=utf8mb4 ===== ERRORS ===== * "FatalErrorException with message 'Call to undefined function Patchwork\utf8_encode()'" $ sudo apt-get install php-xml php-mbstring $ sudo service apache2 restart * "Table 'snipeit.oauth_clients' doesn't exist" $ php artisan migrate References: https://snipe-it.readme.io/docs/installation selfhosted/snipeit.txt Last modified: 2023/07/03 02:15by hli