I am trying to use Apache 2.4.7 with php5.5 in my Mini Mac with Mac Os 10.8.5
Apache 2.4.7 installed following instructions in here
Run apachectl -v, shows
Server version: Apache/2.4.7 (Unix)
Server built: Mar 4 2014 19:23:56
PHP5.5 installed following instructions in here
Run php -v, shows
PHP 5.5.8 (cli) (built: Jan 12 2014 18:50:29)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
I added in the apache http.conf file the following line
LoadModule php5_module /usr/local/php5/libphp5.so
But it does not seem to work, as when I try to start the server with
sudo apachectl start
It produces the following error
httpd: Syntax error on line 151 of /usr/local/apache-2.4.7/conf/httpd.conf:
Cannot load /usr/local/php5/libphp5.so into server:
dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found:
unixd_config\n
Referenced from: /usr/local/php5/libphp5.so
Expected in: /usr/local/apache-2.4.7/bin/httpd in /usr/local/php5/libphp5.so
As suggested in the tutorials I have linked, I modified my bash profile with
export PATH=~/bin:/usr/local/php5/bin:$PATH
export MANPATH=/usr/local/apache/man:$MANPATH
I have been trying for hours different solutions, and this is as far as I got.
If someone can give me some hints I would be very happy, I am quite desperate...!