我开始想在我的Mac上安装Laravel。我让终端正常工作。 我的问题不在终端。 我的问题在于Apache。
我将php.ini文件从/Applications/MAMP/bin/php/php5.5.14/conf/php.ini移动到/etc/php.ini,当我检查phpinfo()时它似乎加载了
我正在安装Laravel并遇到了mcrypt问题。我的ubuntu机器上运行良好。我尝试了一切。
phpinfo()说:
PHP Version 5.4.30
Configuration File (php.ini) Path: /etc
Loaded Configuration File: /etc/php.ini
[[NO MCRYPT]]
php.ini是从/Applications/MAMP/bin/php/php5.5.14/conf/php.ini复制的。这应该启用mCrypt,因为它在终端...
$ sudo apachectl restart
但phpinfo STILL SAYS
PHP Version 5.4.30
...............
我正在运行MacOSX 10.9.5
$ which php
/Applications/MAMP/bin/php/php5.5.14/bin/php
$ php --ini
Configuration File (php.ini) Path: /Applications/MAMP/bin/php/php5.5.14/conf
Loaded Configuration File: /Applications/MAMP/bin/php/php5.5.14/conf/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
$ php -i | grep mcrypt
...
mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value
$ echo $PATH
/Applications/MAMP/bin/php/php5.5.14/bin:/usr/bin:/bin:/usr/sbin:/usr/local/bin:/usr/local/git/bin
......和
的内容$ nano ~/.bash_profile
PATH="/Applications/MAMP/bin/php/php5.5.14/bin:/usr/bin:/bin:/usr/sbin:/usr/local/bin:/usr/local/git/bin"
export PATH
我缺少什么?!
请帮忙......