Opened 10 years ago

Closed 10 years ago

#41464 closed defect (worksforme)

apache2 @2.2.25_0+preforkmpm (active) httpd not working (Cannot execute binary file)

Reported by: bastien.guillaume@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: apache2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I cannot manage to make macports' built apache2 work under 10.5.8 PPC

new-host:~ User$ sudo bash -x /opt/local/apache2/bin/apachectl -k start
+ ARGV='-k start'
+ HTTPD=/opt/local/apache2/bin/httpd
+ test -f /opt/local/apache2/bin/envvars
+ . /opt/local/apache2/bin/envvars
++ test x '!=' x
++ DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib
++ export DYLD_FALLBACK_LIBRARY_PATH
+ LYNX='lynx -dump'
+ STATUSURL=http://localhost:80/server-status
+ ULIMIT_MAX_FILES=
+ '[' x '!=' x ']'
+ ERROR=0
+ '[' 'x-k start' = x ']'
+ case $ARGV in
+ /opt/local/apache2/bin/httpd -k start
+ ERROR=1
+ exit 1
new-host:~ User$ sudo bash -x /opt/local/apache2/bin/httpd -k start
/opt/local/apache2/bin/httpd: /opt/local/apache2/bin/httpd: cannot execute binary file
new-host:~ User$ file /opt/local/apache2/bin/httpd
/opt/local/apache2/bin/httpd: Mach-O executable ppc

Change History (4)

comment:1 Changed 10 years ago by bastien.guillaume@…

I cannot manage to make macports' built apache2 work under 10.5.8 PPC

new-host:~ User$ sudo bash -x /opt/local/apache2/bin/apachectl -k start
+ ARGV='-k start'
+ HTTPD=/opt/local/apache2/bin/httpd
+ test -f /opt/local/apache2/bin/envvars
+ . /opt/local/apache2/bin/envvars
++ test x '!=' x
++ DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib
++ export DYLD_FALLBACK_LIBRARY_PATH
+ LYNX='lynx -dump'
+ STATUSURL=http://localhost:80/server-status
+ ULIMIT_MAX_FILES=
+ '[' x '!=' x ']'
+ ERROR=0
+ '[' 'x-k start' = x ']'
+ case $ARGV in
+ /opt/local/apache2/bin/httpd -k start
+ ERROR=1
+ exit 1
new-host:~ User$ sudo bash -x /opt/local/apache2/bin/httpd -k start
/opt/local/apache2/bin/httpd: /opt/local/apache2/bin/httpd: cannot execute binary file
new-host:~ User$ file /opt/local/apache2/bin/httpd
/opt/local/apache2/bin/httpd: Mach-O executable ppc

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: apache2 added
Priority: Not setNormal

I've updated the port to 2.2.26; please wait 30 minutes, then run "sudo port selfupdate" and "sudo port upgrade outdated" and then try again and let me know if that changes anything. Apache worked fine for me last time I used it on Leopard and on PowerPC but that was several years ago.

I'm not familiar with "bash -x"... what does it do and why is it needed here?

comment:3 Changed 10 years ago by bastien.guillaume@…

Thanks for your prompt answer Ryan.

I might have bothered you for no reason anyway. I should have checked the error_log before posting. There was this error there :

[alert] (EAI 8)nodename nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "new-host.home"
Configuration Failed

which seems to be related (according to this thread) to getaddrinfo() and that can be fixed by modifying the hosts file.

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed

I'm hoping the above means you were able to fix the problem.

Note: See TracTickets for help on using tickets.