DevHeads.net

httpd.conf Invalid Argument

Hi all,

I compiled apache 2.4.27 on an AIX server and installed it on to other AIX
servers of same OS. It works on all servers except one where I see the
error "httpd: Could not open configuration file
/usr/local/etc/httpd/conf/httpd.conf: Invalid argument" when I try to start
using apachectl. The same error appears when I try httpd -M. The
configuration file exists and the permissions are correct. Any suggestions
on what might be wrong?

I did httpd -M under truss and see this

kopen("/usr/local/etc/httpd/conf/httpd.conf", 0440000000) Err#22 EINVAL

On a good server, it shows

kopen("/usr/local/etc/httpd/conf/httpd.conf", 0440000000) = 3

Any help is appreciated.

Thanks!

Comments

Re: httpd.conf Invalid Argument

By Eric Covener at 06/12/2018 - 19:40

On Tue, Jun 12, 2018 at 5:17 PM Vandana Sakamuri
< ... at gmail dot com> wrote:
Seems likely that you didn't compile it on a sufficiently old
maintenance release of the OS.

Re: httpd.conf Invalid Argument

By John Iliffe at 06/12/2018 - 19:36

I'm not an AIX user but for Linux, the definition of EINVAL is:

The mode provided to fopen(), fdopen(), or freopen() was invalid.

The file could exist but you might be trying to open it for writing or
appending?

Regards,

John
==========================================================
On Tue, 2018-06-12 at 16:17 -0500, Vandana Sakamuri wrote:

Re: httpd.conf Invalid Argument

By Vandana Sakamuri at 06/13/2018 - 16:15

I gave full permissions 777 to the conf file and that still did not help. I
compiled it on 7.1 AIX and the error server also has AIX 7.1. Any other
suggestions?

Re: httpd.conf Invalid Argument

By Eric Covener at 06/13/2018 - 16:57

On Wed, Jun 13, 2018 at 4:40 PM Vandana Sakamuri
< ... at gmail dot com> wrote:
Build on 7.1.0.0 or 6.1.x. Unix only has forward compat for binaries.