-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Install On Ubuntu #867
Comments
Greg, I was on the same boat earlier today, but managed to get this going. I plan on putting a shell script tomorrow/this weekend (depending on the baby) that will do 99% of the work necessary to make Snipe It install (On Ubuntu). I appreciate GR360RY's contribution, but it just didn't install Snipe it correctly in my environment, so I scrapped it and started from a fresh OS install. If you're monitoring this thread, feel free to reply and we will go from there. Edit: Fixed some text and specified Ubuntu install. |
Mtucker Thank you for the response, can you post details of your script and any additional instructions and i will give them a try on a fresh install |
Sorry Greg, I got caught up with family stuff and am at work now. I'll work on some install stuff and get back to you. |
Greg, This is a script I made today that will hopefully make it an easier install. Several things
If you (or anyone) care to change it or improve upon it, I only ask that my name to be left in there somewhere as I did put some time into the groundwork for this. Thanks! [Edited by @snipe - embedded the code, versus linking to a google drive download]:
|
Thank you for that, it will probably help me figure out some things... I'll report back as needed! |
No problem--thanks, I am new to github, wasn't sure of the quote structure =-( |
@mtucker6784 FYI, some of the stuff in here will break during the 2.0 release. I'll try to update it and include the install.sh file in 2.0 after doing some testing. |
Sure thing, like I said, it's pretty cruddy code (made in a matter of 4-5 hours with a lot of trial and error.) So I'll be glad to tune it a little bit when the time comes, if you're interested anyway |
I think most of the tuning I'll do (or you can, or whatever) will be to variable-lize the server path (as I expect that will trip up some people who don't know what they're doing). Also, this line:
That's not going to work as expected is your server's hostname is not the same as your FQDN. Laravel 4.2 needs hostname in A lot of people also run this on a shared server with multiple sites on it already, so we may need to tweak it to handle that by naming the apache conf file. |
@snipe, ahhh yeah, makes sense about the fqdn, didn't know laravel worked that way. I was aiming this more towards Greg's needs as he said he did a completely fresh OS install (so didn't think about shared sites.) You don't have to go out of your way to modify the script, but I'd love to see how you edit it so I can learn how it should have been 'properly' done :P Make sense? |
Yeah, if we're going to include this (or some version of this) in core, I have to make sure it doesn't create even more support tickets for me for the unusual cases that come through quite often. ;) |
(And let's not even talk about all of the windows users who won't be able to use it and will complain... lol) |
Haha, forgot about the windows peeps..poor fellers. |
We might be able to do a similar line-for-line port into a windows Batchfile, no? |
@uberbrady I'm sure, but it's another component to have to keep up to date. It's why I haven't written the script before. :-/ |
It's been so long since I last wrote a script for a windows box. To have
|
Many apologies if this gets too inundating. I wanted to make note that I made some changes to accommodate @snipe's suggestions, and a couple other changes as well. Added $dir => /var/www/snipe-it/ and replaced all the long "/var/www/snipe-it/" in the previous script with $dir instead (I believe I) Fixed Apache: Added entries in /etc/hosts for the virtual host Per snipe's clarification, /bootstrap/start.php will now only contain the hostname and Not the FQDN.
|
@mtucker6784 Even without the edits you made 20h ago, I've been able to use your script and have an install running, you helped a lot for a noob to reverse-engineered what was needed, compared with the documentation! My install differs a little :
I've installed it on a test system for now, might install it on another server soon, so I will give your new script a try. Thanks! |
Hey there @ionreflex , very cool, glad to hear that my script at least helped a little bit. Did you make changes to the script itself, or just did your changes separately? I know @snipe said that the script I wrote will break in 2.0, but I don't know of 2.0's release timeline. If you're able to tell me what changes you made (for MariaDB), I can at least put them in the install script as options for other people to use (ie: "select 1 for MySQL, 2 for MariaDB"). I just don't have any experience with MariaDB, so I don't know how different the commands are from mysql. I don't want to get too crazy with it because if you give too many options, it can be just as confusing for people with minimal Linux experience. There are so many awesome features in Snipe IT; if I'm able to help streamline an install process for people, I'll gladly do it. Snipe's documentation isn't horribly written by any means, but it is a bit technical for sure 👍 |
Install for MariaDB shouldn't be much (or any) different than MySQL. MariaDB is a just community-developed fork of MySQL. |
(And timeline for 2.0 is in the next week, week and a half.) |
Ah, good deal about MariaDB. Dang, that soon huh? Very excited to see it! |
That soon, yep. We release aggressively :) |
Closing this out for now :) |
I have tried to install in ubuntu server but failed to work.Can you help me the correct way to install Snipe-IT in my server.? |
@vijaynageswaran Please see the getting help documentation and open a new ticket with your issues. http://docs.snipeitapp.com/getting-help.html |
I didn't find the tab to open the new ticket over that link.Kindly help me with that asap.Thanks. Or Can you share me how to install in ubuntu server and how can i access it from web browser.I have done the steps in configuration file and set up the Virtual host.I followed this link Kindly help me with that asap. Thanks in advance. |
@vijaynageswaran https://github.com/snipe/snipe-it/issues/new will open a new issue. Please see the Getting Help documentation so that you can provide a more detailed description of your issue. http://docs.snipeitapp.com/getting-help.html |
Just to a quick comment to say that the script works perfectly and thank you. |
Hello
I am struggling to follow the install guide for Linux guide, I am trying to install Snipe-it on Ubuntu server 14.04, so far I have done the following
From a fresh Server Install I have done the following
apt-get install lamp-server^
apt-get install php5 php5-mcrypt php5-curl php5-mysql
php5enmod mcrypt
I have then cloned the Snipe-it folder however I am unsure as to where the best place to put this once cloned and so far placed it in /var/www/snipe-it
I have followed the guide down to configure Apache and from here is where I am getting stuck. It is more than likely I am not creating or editing the correct conf file for the virtual host settings.
I don't think I am installing composer correctly i'm not sure if this is because I have the Snipe-it folder in the correct place.
And am not able to create a user account via php artisan.
I am a novice when it comes to unix, I have successfully installed applications in the past following user guides but I feel as though I am lacking some basic back groung knowledge to follow the guide provided successfully.
Any help would be appreciated
I have since been able to get the application up and running using GR360RY snipeit-ansible script I did have to make a few adjustments along the way to get around error 500 when trying to log into the server
For the benefit of anyone else trying to install and having difficulties the exact method I used is below
Using a fresh install of Ubuntu server with nothing else installed
At the command prompt input the following commands in order
sudo apt-get -y install python-software-properties software-properties-common
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get -y install ansible git
Clone the repositroy
cd $HOME
git clone https://github.com/GR360RY/snipeit-ansible.git
Modify the configuration
cd $HOME/snipeit-ansible
sudo nano snipeit.yml (here I changed the database password the SMTP server and username and password details)
Install Snipe-IT
sudo ansible-playbook -i hosts -c local snipeit.yml
Create User first changing permissions to write to app.php
cd /opt/snipe-it/app/config
sudo chmod -R 777 app.php (I had to do this to get allow php artisanapp:install to work)
cd .. back to opt/snipe-it
php artisan app:install
Create user using details from the modified snipeit.yml
Confirm Y to all
If successful open browser and type IP of Host machine
I would however like to know how to install everything without using a script
The text was updated successfully, but these errors were encountered: