Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Install OCS 2.1.2 on Ubuntu 14.04 LTS [closed]

Hi all,

I try to install OCS on Ubuntu 14.04 LTS.

I use this documentation  http://ceedrik.free.fr/pdf/Installation%20d'OCS%20Inventory%20NG.pdf (French) to install IT.

The install procedure :

sudo su
apt-get update
apt-get install apache2 mysql-server php5 perl6 make libxml-simple-perl libio-compress-perl libdbi-perl libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl php5-gd libphp-pclzip php5-mysql
wget https://launchpad.net/ocsinventory-server/stable-2.1/2.1.2/+download/OCSNG_UNIX_SERVER-2.1.2.tar.gz
tar -xvf OCSNG_UNIX_SERVER-2.1.2.tar.gz
cd OCSNG_UNIX_SERVER-2.1.2
sh setup.sh
=> Where is Apache main configuration file [] ?/etc/apache2/apache2.conf
=> Where is Apache Include configuration directory [] ?/etc/apache2/conf-enabled
reboot

 

When i do "apache2 -k restart"

I see this message and Apache does not work :

[Tue Oct 20 20:15:17.709837 2015] [core:warn] [pid 1241] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Tue Oct 20 20:15:17.710318 2015] [core:warn] [pid 1241] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Tue Oct 20 20:15:17.710540 2015] [core:warn] [pid 1241] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Tue Oct 20 20:15:17.710795 2015] [core:warn] [pid 1241] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Tue Oct 20 20:15:17.711035 2015] [core:warn] [pid 1241] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 20 20:15:17.729971 2015] [core:warn] [pid 1241] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 20 20:15:17.731117 2015] [core:warn] [pid 1241] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 20 20:15:17.731328 2015] [core:warn] [pid 1241] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

Is somebody have a solution for me?

BOB
closed with the note: Solution find with Centos 6.5
in OCS Inventory NG server for Unix by (130 points)
closed by

1 Answer

0 votes

Hi,

/etc/apache2/envvars file content. Verify that APACHE_LOCK_DIR is correctly set as described below.

# envvars - default environment variables for apache2ctl

# this won't be correct after changing uid
unset HOME

# for supporting multiple apache2 instances
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
    SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
    SUFFIX=
fi

# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
# temporary state file location. This might be changed to /run in Wheezy+1
export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
# Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
export APACHE_LOG_DIR=/var/log/apache2$SUFFIX

## The locale used by some modules like mod_dav
export LANG=C
## Uncomment the following line to use the system default locale instead:
#. /etc/default/locale

export LANG

## The command to get the status for 'apache2ctl status'.
## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
#export APACHE_LYNX='www-browser -dump'

## If you need a higher file descriptor limit, uncomment and adjust the
## following line (default is 8192):
#APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'

## If you would like to pass arguments to the web server, add them below
## to the APACHE_ARGUMENTS environment.
#export APACHE_ARGUMENTS=''

## Enable the debug mode for maintainer scripts.
## This will produce a verbose output on package installations of web server modules and web application
## installations which interact with Apache
#export APACHE2_MAINTSCRIPT_DEBUG=1

Regards

Frank

by (88.5k points)
Hi Frankb,

Thank you for your reply.

/etc/apache2/envvars seem exactly the same. I don't see difference with my file.

BOB
It seem difficult to install OCS 2.1.2 on Ubuntu 14.04 LTS.

I try on Centos 7 too with no sucess.

With Centos 6.5 and this procedure : http://www.vr4servers.com/how-to-install-configure-ocsinventory-2-1-server-on-centos-6-5-64bit/  , it is easy.

Bob
 
Powered by Question2Answer
...