Skip to content
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

Snipeit displaying apache default page after installing with install script. #5690

Closed
pmzhou opened this issue Jun 10, 2018 · 15 comments
Closed
Labels
🚫 not a bug This issue is not a bug

Comments

@pmzhou
Copy link

pmzhou commented Jun 10, 2018

screenshot from 2018-06-10 16-43-04

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Install a VM (Ubuntu 16 xenial) - bridged adapter
  2. Download the install script and run it
  3. Try accessing snipe

Server (please complete the following information):

  • Snipe-IT Version : v4.4.1
  • OS: Ubuntu 16 Xenial
  • Web Server: Apache
  • PHP Version : 7.1.17

Desktop (please complete the following information):

  • OS: Ubuntu 16
  • Browser : Opera / Firefox

Error Messages
When trying to access SnipeIT i get the default apache page.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@snipe snipe added the 🚫 not a bug This issue is not a bug label Jun 10, 2018
@snipe
Copy link
Owner

snipe commented Jun 10, 2018

What's the URL you're trying to access it with?

@sokeada
Copy link

sokeada commented Jun 11, 2018

I faced the the same issue. Normally in the older version, after finished everything, i just type the ip address or my server, the browser will directly me to http://server-hostname/setup page but with a fresh install of newer version from 4.4, when i browse it, i only see the apache page.

@pmzhou
Copy link
Author

pmzhou commented Jun 11, 2018 via email

@EarlRamirez
Copy link
Contributor

EarlRamirez commented Jun 11, 2018

@sokeada are you also using Ubuntu? I have literally tested over a dozen installations and I have not experienced this, the only difference is CentOS was used, will try with Ubuntu and report back, below is what virtual host looks like

<VirtualHost *:80>
ServerAdmin webmaster@localhost
    <Directory /var/www/html/snipeit/public>
        Allow From All
        AllowOverride All
        Options +Indexes
   </Directory>
    DocumentRoot /var/www/html/snipeit/public
    ServerName snipe-it.localdomain
        ErrorLog /var/log/httpd/snipeIT.error.log
        CustomLog /var/log/httpd/access.log combined
</VirtualHost>

@pmzhou
Copy link
Author

pmzhou commented Jun 12, 2018 via email

@sokeada
Copy link

sokeada commented Jun 20, 2018

@EarlRamirez yes i'm running Ubuntu, thanks for the tips, i will double check it.

@ts0384
Copy link

ts0384 commented Jul 3, 2018

We are having the same problem. Just loaded up new Ubuntu Server 18.04 and ran the download. Says everything is ready but keeps defaulting to default site. Tried running these commands but different make a difference:

a2dissite default
a2dissite default-ssl
apachectl graceful

I have to admit it's been a minute since messing with Apache so not sure what I am missing. Thanks

@EarlRamirez
Copy link
Contributor

@ts0384, @sokeada and @pmzhou are you all running Ubuntu 18, it appears that the default.conf in Ubuntu 18 is very dominant, hence the reason why you once experienced seeing the default home page after the snipeit site was created and apache was reloaded.

Will poke around more to find the root cause of this behaviour, with that said, this is not a Snipe-IT issue but more on at the OS level; therefore, I believe that this issue can be closed.

@EarlRamirez
Copy link
Contributor

This was resolve with #5998 PR which was merged into the develop branch

@stale
Copy link

stale bot commented Sep 29, 2018

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Sep 29, 2018
@ts0384
Copy link

ts0384 commented Oct 1, 2018 via email

@stale
Copy link

stale bot commented Oct 1, 2018

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Oct 1, 2018
@snipe snipe closed this as completed Oct 1, 2018
@davidschmidt88
Copy link

davidschmidt88 commented Oct 23, 2018

Hi, I just installed latest version with the script on a newly created Ubuntu VM 18.04.1 server.
Trying to debug the issue tomorrow!

Even this debug thing does not work:
snipeitapp@snapit:/var/www/snipeit$ php artisan config:clear
PHP Fatal error: Uncaught Error: Class 'Log' not found in /var/www/snipeit/app/Exceptions/Handler.php:39
Stack trace:
#0 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(320): App\Exceptions\Handler->report(Object(Dotenv\Exception\InvalidFileException))
#1 /var/www/snipeit/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(124): Illuminate\Foundation\Console\Kernel->reportException(Object(Dotenv\Exception\InvalidFileException))
#2 /var/www/snipeit/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 {main}
thrown in /var/www/snipeit/app/Exceptions/Handler.php on line 39

@EarlRamirez
Copy link
Contributor

Not too certain what issue you are having, can you create a new issue since this was already closed? We will be happy to help you resolve your issue.

@davidschmidt88
Copy link

Sure, done: #6360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚫 not a bug This issue is not a bug
Projects
None yet
Development

No branches or pull requests

6 participants