snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.48k stars 3.07k forks source link

Installation on IIS on Server 2008 R2 #2730

Closed studentforever-yahoo closed 7 years ago

studentforever-yahoo commented 7 years ago

Hi, similar to https://github.com/snipe/snipe-it/issues/1452 I have the same issue or similar issue, where i cant see any page when opened http:\localhost and http:\localhost\snipe-it

C:\inetpub\wwwroot\snipe-it>dir Volume in drive C is SysVol Volume Serial Number is 38DE-C948

Directory of C:\inetpub\wwwroot\snipe-it

03/10/2016 12:12 PM

. 03/10/2016 12:12 PM .. 06/09/2016 10:38 AM 67 .dockerignore 03/10/2016 01:18 PM 1,907 .env.example 06/09/2016 10:38 AM 1,764 .env.testing 06/09/2016 10:38 AM 1,758 .env.testing-ci 06/09/2016 10:38 AM 11 .gitattributes 03/10/2016 11:45 AM .github 06/09/2016 10:38 AM 756 .gitignore 06/09/2016 10:38 AM 251 .htaccess 06/09/2016 10:38 AM 1,895 .travis.yml 03/10/2016 11:45 AM app 06/09/2016 10:38 AM 1,646 artisan 03/10/2016 11:45 AM bootstrap 06/09/2016 10:38 AM 9,210 c3.php 06/09/2016 10:38 AM 242 circle.yml 06/09/2016 10:38 AM 511 codeception.yml 03/10/2016 12:11 PM 751,448 Composer-Setup.exe 06/09/2016 10:38 AM 2,149 composer.json 06/09/2016 10:38 AM 185,956 composer.lock 03/10/2016 11:45 AM config 03/10/2016 11:45 AM database 03/10/2016 11:45 AM docker 06/09/2016 10:38 AM 614 docker.env 06/09/2016 10:38 AM 2,897 Dockerfile 06/09/2016 10:38 AM 1,711 gh-changelog.php 06/09/2016 10:38 AM 1,486 gulpfile.js 06/09/2016 10:38 AM 1,064 index.html 06/09/2016 10:38 AM 240 install.sh 06/09/2016 10:38 AM 34,519 LICENSE 06/09/2016 10:38 AM 873 phpunit.xml 03/10/2016 11:45 AM public 06/09/2016 10:38 AM 3,936 README.md 03/10/2016 11:45 AM resources 06/09/2016 10:38 AM 567 server.php 06/09/2016 10:38 AM 21,049 snipeit.sh 03/10/2016 11:45 AM storage 03/10/2016 11:45 AM tests 26 File(s) 1,028,527 bytes 12 Dir(s) 8,208,191,488 bytes free

C:\inetpub\wwwroot\snipe-it>php artisan key:generate

C:\inetpub\wwwroot\snipe-it>composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages.

Problem 1

  • Installation request for intervention/image 2.3.x-dev -> satisfiable by in tervention/image[2.3.x-dev].
  • intervention/image 2.3.x-dev requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system. Problem 2
  • Installation request for intervention/image dev-master -> satisfiable by intervention/image[dev-master].
  • intervention/image dev-master requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    To enable extensions, verify that they are enabled in those .ini files:

  • C:\Program Files\PHP\v7.0\php.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

C:\inetpub\wwwroot\snipe-it> C:\inetpub\wwwroot\snipe-it>php artisan app:install --env=production C:\inetpub\wwwroot\snipe-it>

The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that $ has Read access to the physical path. Then test these settings again.

file: .env.example

--------------------------------------------

REQUIRED: BASIC APP SETTINGS

--------------------------------------------

APP_ENV=production APP_DEBUG=false APP_KEY=ChangeMe APP_URL=http://localhost/snipeit APP_TIMEZONE='Australia/Melbourne' APP_LOCALE=en

--------------------------------------------

REQUIRED: DATABASE SETTINGS

--------------------------------------------

DB_CONNECTION=mysql DB_HOST=localhost DB_DATABASE=snipeit DB_USERNAME=root DB_PASSWORD=root DB_PREFIX=null DB_DUMP_PATH='C:\Program Files\MySQL\MySQL Server 5.5\bin'

--------------------------------------------

REQUIRED: OUTGOING MAIL SERVER SETTINGS

--------------------------------------------

MAIL_DRIVER=smtp MAIL_HOST=email-smtp.us-west-2.amazonaws.com MAIL_PORT=587 MAIL_USERNAME=YOURUSERNAME MAIL_PASSWORD=YOURPASSWORD MAIL_ENCRYPTION=null MAIL_FROM_ADDR=you@example.com MAIL_FROM_NAME='Snipe-IT'

--------------------------------------------

REQUIRED: IMAGE LIBRARY

This should be gd or imagick

--------------------------------------------

IMAGE_LIB=gd

--------------------------------------------

OPTIONAL: SESSION SETTINGS

--------------------------------------------

SESSION_LIFETIME=12000 EXPIRE_ON_CLOSE=false ENCRYPT=false COOKIE_NAME=snipeit_session COOKIE_DOMAIN=null SECURE_COOKIES=false

--------------------------------------------

OPTIONAL: CACHE SETTINGS

--------------------------------------------

CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync

--------------------------------------------

OPTIONAL: AWS S3 SETTINGS

--------------------------------------------

AWS_SECRET=null AWS_KEY=null AWS_REGION=null AWS_BUCKET=null

--------------------------------------------

OPTIONAL: MISC

--------------------------------------------

APP_LOG=single APP_LOCKED=false FILESYSTEM_DISK=local APP_TRUSTED_PROXIES=192.168.1.1,10.0.0.1 ALLOW_IFRAMING=false

Environment: 2008 R2 IIS 7.5

image

image

image

snipe commented 7 years ago
  • intervention/image 2.3.x-dev requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

You have to enable the fileinfo extension.

studentforever-yahoo commented 7 years ago

Thanks for the info: I have added the line in php.ini under PHP install

extension=php_fileinfo.dll

then restarted IIS

and now ran composer install again which is giving me following:

image

studentforever-yahoo commented 7 years ago

C:\inetpub\wwwroot\snipe-it>composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file

symfony/var-dumper suggests installing ext-symfony_debug () symfony/translation suggests installing symfony/config () symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader) symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)

symfony/routing suggests installing symfony/expression-language (For using expression matching) symfony/event-dispatcher suggests installing symfony/dependency-injection () symfony/http-kernel suggests installing symfony/class-loader () symfony/http-kernel suggests installing symfony/config () symfony/http-kernel suggests installing symfony/dependency-injection () psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :)) psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.) psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POSIX extension as well. ) psy/psysh suggests installing ext-readline (Enables support for arrow-key history navigation, and sh owing and manipulating command history.) paragonie/randomcompat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.) monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server ) monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ req uired)) monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server) monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 serv er) monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver) monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP s erver using php-amqplib) monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Ch rome) monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar) monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server) monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server) league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with A WS SDK v2) league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with A WS SDK v3) league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob st orage) league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator fo r metadata caching) league/flysystem suggests installing league/flysystem-copy (Allows you to use Copy.com storage) league/flysystem suggests installing league/flysystem-dropbox (Allows you to use Dropbox storage) league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use Eventa bleFilesystem) league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud F iles) league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage vi a phpseclib) league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage) league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapt er) laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 d river (~1.0).) laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rack space driver (~1.0).) laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3 .0).) laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drive rs (~1.0).) laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~2.0).) laravel/framework suggests installing symfony/psr-http-message-bridge (Required to use psr7 bridging features (0.2.).) aws/aws-sdk-php suggests installing aws/aws-php-sns-message-validator (To validate incoming SNS noti fications) aws/aws-sdk-php-laravel suggests installing laravel/lumen-framework (To test the Lumen bindings) maximebf/debugbar suggests installing kriswallsmith/assetic (The best way to manage assets) maximebf/debugbar suggests installing predis/predis (Redis storage) intervention/image suggests installing ext-imagick (to use Imagick based image processing.) intervention/image suggests installing intervention/imagecache (Caching extension for the Interventi on Image library) maknz/slack suggests installing maknz/slack-laravel (Required for Laravel support) maknz/slack suggests installing nexylan/slack-bundle (Required for Symfony bundle support) sebastian/global-state suggests installing ext-uopz (_) phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1) phpunit/phpunit suggests installing phpunit/php-invoker (~1.1) facebook/webdriver suggests installing phpdocumentor/phpdocumentor (2.*) codeception/codeception suggests installing codeception/phpbuiltinserver (Extension to start and sto p PHP built-in web server for your tests) codeception/codeception suggests installing codeception/specify (BDD-style code blocks) codeception/codeception suggests installing codeception/verify (BDD-style assertions) codeception/codeception suggests installing phpseclib/phpseclib (Extension required to use the SFTP option in the FTP Module.) codeception/codeception suggests installing symfony/phpunit-bridge (For phpunit-bridge support) phpspec/phpspec suggests installing phpspec/nyan-formatters (~1.0 ΓÇô Adds Nyan formatters) Generating autoload files [codeception/c3] c3.php is already up-to-date

php artisan clear-compiled php artisan optimize Generating optimized class loader Compiling common classes

C:\inetpub\wwwroot\snipe-it>

Do i have to re run the key generation?

snipe commented 7 years ago

If you've copied over the .env.example to .env, yes

studentforever-yahoo commented 7 years ago

Thanks for the help. Please guide.

yes, i have copied the .env and after that i have ran again C:\inetpub\wwwroot\snipe-it>php artisan key:generate

Still, I am getting a " waiting for local host " when loading the webpage then it says cannot find.

image

image

studentforever-yahoo commented 7 years ago

I have found one thing which i have fixed in my .env file

changed APP_URL from APP_URL=http://localhost/snipeit to APP_URL=null

Restarted IIS and now i can see the Snipe-IT Pre-Flight page, which crashed on the page where we have to create a new user.

image

But after that it is showing this:

image

studentforever-yahoo commented 7 years ago

Debugger on IE

<!DOCTYPE html>

``` Snipe-IT ``` ``` ```

404 Page not found.

Sad panda. We could not find the page you were looking for. You should maybe return to the dashboard.

studentforever-yahoo commented 7 years ago

Following is the Chrome debugging and has following when i go to localhost/snipe-it

image

image

studentforever-yahoo commented 7 years ago

@snipe : please guide. Thanks. Issue ticket has been closed.

snipe commented 7 years ago

You cannot set the APP_URL to null. It will break just about everything