1753512 Members
5147 Online
108795 Solutions
New Discussion юеВ

apache problem

 
SOLVED
Go to solution
sheevm
Regular Advisor

apache problem

Hi,

Does anyone know why we are getting this error?

cmhed003 # chatr +s enable /opt/hpws/apache/bin/apachectl

chatr(error): chatr cannot recognize file type of file /opt/hpws/apache/bin/apachectl


HPUX 11.23

Thanks
be good and do good
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: apache problem

Because apachectl is not a binary executable file; it is a shell script.
If it ain't broke, I can fix that.
spex
Honored Contributor

Re: apache problem

Hello,

Did you mean to operate on '/opt/hpws/apache/bin/httpd' instead?

$ file /opt/hpws/apache/bin/apachectl
/opt/hpws/apache/bin/apachectl: commands text
$ file /opt/hpws/apache/bin/httpd
/opt/hpws/apache/bin/httpd: PA-RISC1.1 shared executable dynamically linked -not stripped


PCS
Rasheed Tamton
Honored Contributor

Re: apache problem

Hi,

chatr +s enable (executable)

It should be an exe and apachectl is a script which calls the exe /opt/hpws/apache/bin/httpd

See the envvars-std (default environment variables for apachectl) for SHLIB_PATH issues.

Regards.
sheevm
Regular Advisor

Re: apache problem

Hi All,

Thanks for the response.

We made sure that SHLIB_PATH variable is set for the sahred libraries.

executed the following command:

chatr +s enable /opt/hpws/apache/bin/httpd

We get this error

chatr(error): cannot open file for writing: httpd

we are executing this coomand as non-root user.

The dir/files has full permission to the "user" and the "group"

Thanks
be good and do good
Dave Hutton
Honored Contributor

Re: apache problem

By chance is the file being used?
Assuming you are correct in the fact the user other then root has the privilages to do so.
Dennis Handly
Acclaimed Contributor

Re: apache problem

>chatr(error): cannot open file for writing: httpd
>we are executing this coomand as non-root user.

If you are not root, either the executable is busy as Dave says, or you need to be the owner and do:
$ chmod u+w httpd
$ chatr +s enable httpd
$ chatr u-w httpd