After upgrading to Mac OSX Sierra from El Capitan as soon as I run php it denies to run any php project which was previously installed on my system. That after exploring this issues on internet I came with these options... After running the below commands:
cd /etc/apache2/
sudo mv httpd.conf httpd.conf.sierra
sudo mv httpd.conf~previous httpd.conf
cd ..
sudo cp php.ini-previous php.ini
sudo apachectl restart
I made my php project work like a charm. But now I ran into an another issue. That is php mcrypt extension error. As I run php project (laravel 4.2 project) the project doesn't work and shows me the error - "PHP mcrypt extension required!" Please help me out with this.. My php.ini file's mcrypt line looks like this
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20121212/"
; extension_dl = On
extension=mcrypt.so
; On windows:
; extension_dir = "ext"
Can you tell me what is wrong with my system.