This forum is no longer active. Please post your questions to our new community site

Forums MAMPStack

not so independent?

Subscribe to not so independent? 3 post(s), 2 voice(s)

 
Avatar mememan 2 post(s)

Hi can someone please help explain the following issue.

I had apache 2 installed as part of my base os (osx workstation 10.5.6) and mysql 5.0.24 (64bit) downloaded from mysql. I also had versions of apache, php5 and mysql installed under /opt using PORTS.

I then downloaded mysql 5.1.34 (64bit) from mysql and installed it.

When I installed mampstack-1.1-2 and tested the apache configuration I got the following error:

bash-3.2$ ./apachectl -t
./apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument
httpd: Syntax error on line 105 of /mampstack-1.1-2/apache2/conf/httpd.conf: Cannot load /mampstack-1.1-2/apache2/modules/libphp5.so into server: Library not loaded: /usr/local/mysql/lib/libmysqlclient.16.dylib\n Referenced from: /mampstack-1.1-2/apache2/modules/libphp5.so\n Reason: no suitable image found. Did find:\n\t/usr/local/mysql/lib/libmysqlclient.16.dylib: mach-o, but wrong architecture

which implies that the mamp stack is looking for libraries outside of itself?

So I uninstalled everything including the PORTS and then reinstalled the mampstack and I now get the following error:

bash-3.2$ ./apachectl -t
./apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument
httpd: Syntax error on line 105 of /mampstack-1.1-2/apache2/conf/httpd.conf: Cannot load /mampstack-1.1-2/apache2/modules/libphp5.so into server: Library not loaded: /usr/local/mysql/lib/libmysqlclient.16.dylib\n Referenced from: /mampstack-1.1-2/apache2/modules/libphp5.so\n Reason: image not found

which seems to confirm that the stack is not truely self contained. I’m not that bothered other than wanting to get it working and am now going to try installing a 32bit version of mysql and see if the stack likes those libraries but thought I’d raise as the error seems to fly in the face of the raison-d’etre of the bitnami stacks?

any thoughts much appreciated

Any he

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Try to start/stop apache using the main <installdir>ctlscript.sh. The Stack preloads the environment variables and uses their own libraries.

Cheers.

 
Avatar mememan 2 post(s)

Thanks for the answer – I should have realised this was the case.

Forums MAMPStack