I currently have working copy of Magento installed on my machine. I am now trying to install another copy. The new install has thrown the error
PHP extension "mcrypt" must be loaded.
I can only assume that it is looking at a different file to what the other install is looking at.
How do I find where the working install is looking?
Comparing the two I can see the working one has local.xml in app/etc folder and the new install does not, is this automatically created on the install? I assume I can't copy and paste it due to this line of code
In both installed version and version im trying to install
echo phpinfo() showed mcrypt was not being used and shows
Configuration File (php.ini) Path
this is different to the file path shown in the next command I made
so I ran
php --ini on the cli and it displayed this
myName@myMac:~ » php --ini Configuration File (php.ini) Path: /usr/local/etc/php/5.4 Loaded Configuration File: /usr/local/etc/php/5.4/php.ini Scan for additional .ini files in: /usr/local/etc/php/5.4/conf.d Additional .ini files parsed: /usr/local/etc/php/5.4/conf.d/ext-ioncubeloader.ini, /usr/local/etc/php/5.4/conf.d/ext-lzf.ini, /usr/local/etc/php/5.4/conf.d/ext-mcrypt.ini, /usr/local/etc/php/5.4/conf.d/ext-memcache.ini
It seems there are two php installs how would I point my currently install copy of Magento to use the correct one and how would I tell the new install to look in that folder? or should I simply drag files from
/usr/local/etc/php/5.4 /usr/local/etc/php/5.4/php.ini /usr/local/etc/php/5.4/conf.d /usr/local/etc/php/5.4/conf.d/ext-ioncubeloader.ini, /usr/local/etc/php/5.4/conf.d/ext-lzf.ini, /usr/local/etc/php/5.4/conf.d/ext-mcrypt.ini, /usr/local/etc/php/5.4/conf.d/ext-memcache.ini