Opened 11 years ago

Last modified 10 years ago

#41464 closed defect

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

Reported by: bastien.guillaume@… Owned by: ryandesign@…
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 (2)

comment:1 Changed 11 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 11 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?

Note: See TracTickets for help on using tickets.