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

New Installation Problem - Website Not Showing #5106

Closed
FazzaGBR opened this issue Feb 26, 2018 · 8 comments
Closed

New Installation Problem - Website Not Showing #5106

FazzaGBR opened this issue Feb 26, 2018 · 8 comments

Comments

@FazzaGBR
Copy link

FazzaGBR commented Feb 26, 2018

Expected Behavior (or desired behavior if a feature request)

I've just finished installing Snipe-IT on Ubuntu Server 16.04.3 using the guide here:

https://www.vultr.com/docs/how-to-install-snipe-it-on-ubuntu-16-10

but when i browse to the IP address of the server using a web browser Snipe-IT is not displayed.


Actual Behavior

The Apache2 Ubuntu Default Page is displayed.

If I delete the index.html file then I just get a Not Found message instead.


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

I've turned the server off and back on again but I'm new to Linux and Snipe-IT so no idea what I've done wrong or missed in the configuration of this server.


Provide answers to these questions:

  • Is this a fresh install or an upgrade? - Fresh Install
  • Version of Snipe-IT you're running 4.1.14
  • Version of PHP you're running 7.0.25
  • Version of MySQL/MariaDB you're running 10.0.33
  • What OS and web server you're running Snipe-IT on Ubuntu Server 16.04.3
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) followed the aforementioned guide
  • 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 - cant get the home page
  • 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 reproducible on the demo: https://snipeitapp.com/demo.
  • Include any additional information you can find in 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

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

https://snipe-it.readme.io/docs/getting-help

@GeoffYoung
Copy link
Contributor

When you request the server's IP address it will load the default VirtualHost (/etc/apache2/sites-available/000-default.conf). That VirtualHost is loading the default Apache landing page.

In step 8 of the guide you used, you created a VirtualHost for snipe-it and set the server name by adding ServerName snipeit.example.com to the configuration. You should change snipeit.example.com to whatever domain you have pointed at that server. Then reload the Apache configuration with service apache2 reload and navigate to that domain name in your browser.

If you plan on accessing snipe-it using only your server's IP address then you could disable the default Apache VirtualHost by running sudo a2dissite 000-default.conf. Then the snipeit.example.com.conf file you created would become the default. I wouldn't really recommend that unless snipe-it is the only thing this server is being used for.

There's some more about VirtualHosts here.

@FazzaGBR
Copy link
Author

Thanks for the reply! :)

The server is only going to have Snipe-IT on it so I have run the sudo a2dissite command above and now I get a screen full of text when I open it in a web browser. This is the first part of what I get on screen:

*/ /* |-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader for | our application. We just need to utilize it! We'll simply require it | into the script here so that we don't have to worry about manual | loading any of our classes later on. It feels nice to relax. | */ require __DIR__.'/../bootstrap/autoload.php'; /* |-------------------------

@snipe
Copy link
Owner

snipe commented Feb 27, 2018

You don't have PHP installed. PHP is required to run Snipe-IT.

@FazzaGBR
Copy link
Author

FazzaGBR commented Feb 27, 2018

That's frustrating then as the guide I followed claimed to work! I'm new to Linux so needed a step by step guide to follow and I simply copied and pasted each line in so I have no idea how they got their install to work. I'm going to have to try and find another guide then I guess.

[UPDATE]

I think I found a website with the command to install PHP and now I get a Whoops, look like something went wrong, message instead! :(

I've got an old version of Snipe-IT running on XAMP on Windows but everywhere says that should only really be for testing and really it should be on Linux but I have yet to find an installation guide that doesn't error out at some point. Snipe-IT is an amazing solution and pretty much meets our needs 99% but I cant get it installed and working on Linux :(

@FazzaGBR
Copy link
Author

I've been making backups of my Snipe-IT server as I've been going along and I've just restored the server to a previous version and I've checked the guide I followed and it has the following command:

sudo apt-get -y install php php-pdo php-mbstring php-tokenizer php-curl php-mysql php-ldap php-zip php-fileinfo php-gd php-dom php-mcrypt

Isn't this what installs PHP? I've tried running it again and it says it's already installed as it says all the options are already the latest version.

@FazzaGBR
Copy link
Author

After spending the last 2 days getting nowhere with Ubuntu I have just installed CentOS 7 (DVD version) and managed to get the installation script to run and it said it was all done OK but when I open my web browser and go to the website I just get Not Found - the requested URL / was not found on this server.

Is there something else I need to do other than run the script to get this to work? Thanks.

@FazzaGBR
Copy link
Author

ALL SORTED! Someone on SpiceWorks knows how to write simple step-by-step instructions on getting the automatic script to work - lots of things it doesnt do that you need to do manually to get it up and running.

All I've got to do now is rearrange our very large spreadsheet so I can import it in to Snipe-IT. It may sound a bit sad, but I'm really looking forward to getting our data in to Snipe-IT as from our test over the last 4 months has proved to be very successful :)

@spencerdahua
Copy link

@FazzaGBR would you mind sharing the spiceworks thread? im pretty stuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants