wieye Absent Member.
Absent Member.
603 views

Problem with Apache


Hello Again Forum,
I nave a new problem, I make a rule for a script called startup.sh, I
add modify eviroment script and added all enironment variables,
something like this:
bash-3.2$ env

LC_MONETARY=en_US.ISO8859-15
TERM=vt100
SHELL=/bin/sh
SSH_CLIENT=10.188.229.18 61968 22
LC_NUMERIC=en_US.ISO8859-15
SSH_TTY=/dev/pts/3
USER=idm
LD_LIBRARY_PATH=/etc/emc/rsa/cst/lib
PATH=/idm/jdk/jdk1.6.0_30/bin:/usr/bin:/bin:/opt/EMCpower/bin:/etc/emc/bin:/etc
MAIL=/var/mail//idm
LC_MESSAGES=C
WSHOME=/idm/glassfish3/glassfish/domains/domain1/applications/idm81
LC_COLLATE=en_US.ISO8859-15
PWD=/idm
JAVA_HOME=/idm/jdk/jdk1.6.0_30
TZ=Mexico/General
SHLVL=1
HOME=/idm
LOGNAME=idm
SSH_CONNECTION=10.188.229.18 61968 10.191.106.170 22
LC_CTYPE=en_US.ISO8859-15
LC_TIME=en_US.ISO8859-15
_=/usr/bin/env

So when the user call USRUN startup.sh, everything goes OK, PAM
authorize the command, and the apache server says everithing is ok.
But when I check for the apache service up... is not!!!. I log as root a
run startup.sh and it works good.
What can I do?
Regards
Angel


--
wieye
------------------------------------------------------------------------
wieye's Profile: https://forums.netiq.com/member.php?userid=11128
View this thread: https://forums.netiq.com/showthread.php?t=57261

0 Likes
1 Reply
Knowledge Partner
Knowledge Partner

Re: Problem with Apache

Perhaps get debugging output from your script by changing the first line
to have a -xv after #!/bin/bash, like this:


#!/bin/bash -xv

#rest of code down here


With a bit of luck you may see something broken, or else you can post the
output here and we can review it.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.