zurekdj01
what would be the command to set that path and also do you know the name of the startup/shutdown script. I am running off a MacBook Pro OSX Sierra with apache 2.4. I can attach my httpd file if need be. thank you
zurekdj01
I am new to mac so bare with me sorry
zurekdj01
whats the command and the startup/shutdown script used. I am using OSX Sierra on MAC.
zurekdj01
I am running version Mac OSX Sierra. I did take a look at /usr/sbin/apachectl and can edit in atom, but I do not where to put the file path of "export DYLD_LIBRARY_PATH=/usr/local/opt/apr-util/libexec/lib" at to stop it from defaulting to /usr/lib/libaprutil-1.0.dylib
zurekdj01
Is there by chance a diagram as to going about doing this process. I cant find anything close to what I am dealing with :(
DougR
The key concept is that environment variables are passed from parent process to child process. The parent process can decide not to deliver the EV to the child. The child can decide to eliminate the EV before doing anything else. But neither of those are the norm. Of course, "launchctl" could choose to remove it. I have no experience with it. However, just to test things out I would export the environment variable just after the assignment of the 2 "LAUNCH*" variables in lines 69/70. The rest of the script is only concerned with stopping, starting, restarting, etc. Apache so should not contaminate anything else.
zurekdj01
LAUNCHCTL="/bin/launchctl" LAUNCHD_JOB="/System/Library/LaunchDaemons/org.apache.httpd.plist" export DYLD_LIBRARY_PATH=/usr/local/opt/apr-util/libexec/lib just like this?
zurekdj01
this is what I get next after editing the /usr/sbin/apachectl dyld: Symbol not found: _apr_ldap_get_option Referenced from: /usr/sbin/httpd Expected in: /usr/local/opt/apr-util/libexec/lib/libaprutil-1.0.dylib in /usr/sbin/httpd /usr/sbin/apachectl: line 93: 10727 Abort trap: 6 $HTTPD "$@"
DougR
Thank you for trying that. What it points out is that the Apache you are using is actually not compatible with the libexec library that you want it to load. Simply put, any shared-library-loadable image really needs to be compiled explicitly to match the executable that is going to load it. While it is possible for minor version changes to still be compatible (e.g. a "contract neutral bug fix release"), any changes that change the calling sequence or any functional contract thereof require at a minimum a recompilation (and at a maximum some actual programming). Note that the executables and the shared libraries can and do call back and forth between themselves at times so all contracts within the various API scopes need to be considered. In this case the Apache is operating under one "contract" and the shared library is operating under a different "contract" and that pretty much won't work. Not sure how you obtained that libexec but it simply won't run with that Apache.
zurekdj01
I had another co-worker setup a brand new MacBookPro doing the exact same thing and had no issue with it. my Apache version is Server version: Apache/2.4.23 (Unix)
zurekdj01
Server version: Apache/2.4.23 (Unix) Thats my version of apache that I am running. I had a co-worker setup a brand new macbook pro as well and he has had no isssues with setting up the same thing. idk what else to do.
zurekdj01
idk what else to do here. The apache version is Server version: Apache/2.4.23 (Unix) and my co worker is not having the same issue.
zurekdj01
should I reinstall Apache or ???
zurekdj01
I currently did not install apache through brew.
DougR
If you installed the "libexec" via brew then you must install Apache via the same source.
zurekdj01
As far as I see, the /usr/lib directory has the libaprutil created on oct 2016 and when I installed apache when I got my computer obviously on the date that I installed?