Issues Installing Snipe-IT on CentOS 7
-
@aaronstuder said in Issues Installting Snipe-IT on CentOS 7:
@dustinb3403 I have, same result
Well you can always install Snipe-IT manually.
-
@bnrstnr said in Issues Installting Snipe-IT on CentOS 7:
@jaredbusch Well he's stating the script does it all for you but it doesn't work, yet I've done it manually twice now and it worked flawlessly both times.... apparently my iso of centos minimal is more awesomer than his idk
And to verify, I just checked the script as it exists on github right now.
It does not make the directories, so you are correct that @aaronstuder needs to do that first.
It does install EPEL.
It is also stupid that the CentOS7 section of the snipeit.sh script installs
wget
when the install.sh script uses it. so it would have had to be installed already.So the current correct instructions from a clean CentOS 7 install should be
yum -y install wget mkdir -p /var/www/html; cd /var/www/html/ firewall-cmd --zone=public --add-port=http/tcp --permanent firewall-cmd --reload wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh && chmod 744 install.sh && ./install.sh
-
@jaredbusch THANKS!
I'll give it a shot again.
-
@aaronstuder said in Issues Installting Snipe-IT on CentOS 7:
@jaredbusch THANKS!
I'll give it a shot again.
when it fails, the log exists here
/var/log/snipeit-install.log
assuming git is failing, you should see why there.
-
@jaredbusch still no dice. Have to be something with this connect (firewall\proxy)
-
@aaronstuder said in Issues Installting Snipe-IT on CentOS 7:
@jaredbusch still no dice. Have to be something with this internet connection.
Provide the logs.
-
to manually run the git command on CentOS 7
git clone https://github.com/snipe/snipe-it /var/www/html/snipeit
-
@aaronstuder said in Issues Installting Snipe-IT on CentOS 7:
@jaredbusch still no dice. Have to be something with this connect (firewall\proxy)
see the post above for the log
-
-
@jaredbusch said in Issues Installting Snipe-IT on CentOS 7:
@bnrstnr said in Issues Installting Snipe-IT on CentOS 7:
@jaredbusch Well he's stating the script does it all for you but it doesn't work, yet I've done it manually twice now and it worked flawlessly both times.... apparently my iso of centos minimal is more awesomer than his idk
And to verify, I just checked the script as it exists on github right now.
It does not make the directories, so you are correct that @aaronstuder needs to do that first.
It does install EPEL.
It is also stupid that the CentOS7 section of the snipeit.sh script installs
wget
when the install.sh script uses it. so it would have had to be installed already.So the current correct instructions from a clean CentOS 7 install should be
yum -y install wget mkdir -p /var/www/html; cd /var/www/html/ firewall-cmd --zone=public --add-port=http/tcp --permanent firewall-cmd --reload wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh && chmod 744 install.sh && ./install.sh
The script does create the directories. Take a look at
installsnipeit ()
in snipeit.shlog "git clone https://github.com/snipe/snipe-it $webdir/$name"
$webdir and $name is defined in the script.
-
-
@aaronstuder cd into
/var/www/html/snipeit/
and docat .env
What happens?
-
@aaronstuder Are you running the script under root account or sudo account?
-
@black3dynamite said in Issues Installting Snipe-IT on CentOS 7:
@jaredbusch said in Issues Installting Snipe-IT on CentOS 7:
@bnrstnr said in Issues Installting Snipe-IT on CentOS 7:
@jaredbusch Well he's stating the script does it all for you but it doesn't work, yet I've done it manually twice now and it worked flawlessly both times.... apparently my iso of centos minimal is more awesomer than his idk
And to verify, I just checked the script as it exists on github right now.
It does not make the directories, so you are correct that @aaronstuder needs to do that first.
It does install EPEL.
It is also stupid that the CentOS7 section of the snipeit.sh script installs
wget
when the install.sh script uses it. so it would have had to be installed already.So the current correct instructions from a clean CentOS 7 install should be
yum -y install wget mkdir -p /var/www/html; cd /var/www/html/ firewall-cmd --zone=public --add-port=http/tcp --permanent firewall-cmd --reload wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh && chmod 744 install.sh && ./install.sh
The script does create the directories. Take a look at
installsnipeit ()
in snipeit.shlog "git clone https://github.com/snipe/snipe-it $webdir/$name"
$webdir and $name is defined in the script.
I would have to test again ( no able atm) but i do not believe that the git command will create more than the last directory.
-
@black3dynamite root
-
@aaronstuder said in Issues Installting Snipe-IT on CentOS 7:
-bash: git: command not found
WTF?
I added git to the CentOS 7 instructions months ago via pull request that was accepted. so the latest update must have removed it.
Edit: Nope, still listed.
PACKAGES="httpd mariadb-server git unzip php71u php71u-mysqlnd php71u-bcmath php71u-cli php71u-common php71u-embedded php71u-gd php71u-mbstring php71u-mcrypt php71u-ldap php71u-json php71u-simplexml"
-
so look higher in the log for the yum install for git. is there an error?
-
mariadb-server isn't installed.....
-
All the package install are wrapped in a log command
log "yum -y install $p"
-
@aaronstuder I'm looking over the script now. Which OS are currently using the script on? Ubuntu 17.04 or CentOS 7?