I currently using
php -S localhost:8000
for my php testing server on OS X.
I am trying to use OpenCart which requires mcrypt and OS X does not come with that.
I installed Homebrew, php 5.6.5, and mcrypt.
It still says that mcrypt is not on when I try to install Open Cart which requires that.
How can I be sure that the correct php version from Homebrew as well as mcrypt are linked properly?
In the past I manually installed MySQL and also tried to manually install php 5.6.5 to replace the version that came with OS X. The phpinfo(); page I made and the command line both state that I have version 5.6.5 so I am unsure if that is linked to Homebrew or to when I manually tried to install php 5.6.5.
Thank you
Best Answer
I'm not familiar with OpenCart but you should check you path and make sure the homebrew php is the default.
In the terminal:
In this example I've installed mongod from homebrew. I've never installed php but it looks like it exists on my system by default. I'm guessing your system is using the standard php and not the brew one.
Try running your server like this: