G
G
getNullData2015-09-05 21:38:45
PHP
getNullData, 2015-09-05 21:38:45

OS X Problems with PHP versions, how to solve?

Good evening.
With the help of brew, I installed Apache2, PHP 5.6.12, php-xdebug .. etc.
I start the project and I understand that something is wrong.
I decided to run phpinfo(), as it turned out, the site is running on PHP Version 5.5.27 and no mention of xdebug.
But I installed PHP Version 5.6.12.
If we look in the console, we get the following:

$ php -v
PHP 5.6.12 (cli) (built: Sep  5 2015 20:54:18) (DEBUG)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans
sayber at iMac-sayber in ~
$ php -m | grep xdebug
xdebug

Those. everything is fine.
I opened processes by htop, only php-fpm from the 5.6.12 directory works from PHP.
Question: PHP 5.5.27 in Yosemite 10.10.5 is out of the box, but how do I get rid of it and make 5.6 work?
In apache httpd.conf set
LoadModule php5_module libexec/apache2/libphp5.so

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-09-05
@getNullData

so your apache loads the default module, specify the path to your own.
something like:

LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question