Fatal Error – ‘Mongo’ class not found

The problem was the PHP driver (php_mongo.dll). Apache/WAMP just did not like the mongo-1.1.4-php5.3vc6ts version for some reason. My Windows 7 Professional machine had the mongo-1.2.5-php5.3vc9ts version. That was the only difference between the two machines. I originally had been using the mongo-1.2.5-php5.3vc9ts version of the driver on the Windows 7 Enterprise machine but changed … Read more

intl extension php_intl.dll with wamp

I had the same problem a few days ago. You have to copy all the files (all files starts with icu*): icudt.dll icudt46.dll icuin.dll icuin46.dll icuio.dll icuio46.dll icule.dll icule46.dll iculx.dll iculx46.dll icutest.dll icutest46.dll icutu.dll icutu46.dll icuuc.dll icuuc46.dll From: <wamp_installation_path>/bin/php/php5.4.3/ To: <wamp_installation_path>/bin/apache/apache2.2.22/bin/ And you also need to enable intl in php.ini file (uncomment this line): ;extension=php_intl.dll … Read more

WAMP 403 Forbidden message on Windows 7

The access to your Apache server is forbidden from addresses other than 127.0.0.1 in httpd.conf (Apache’s config file) : <Directory “c:/wamp/www/”> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory> The same goes for your PHPMyAdmin access, the config file is phpmyadmin.conf : <Directory “c:/wamp/apps/phpmyadmin3.4.5/”> Options Indexes FollowSymLinks MultiViews AllowOverride … Read more

Change PHP version used by Composer on Windows

Three ways to do this, really. Create an alias in .bashrc to always run composer with the corresponding version Something like alias ncomposer=`/path/to/php /path/to/composer.phar ` Specify the path to PHP version inside composer.phar itself This is specified at the start of the file: #!/path/to/php php. Then composer should run with composer.phar NB! The line will … Read more

How to set the env variable for PHP?

You need to add the PHP directory to your path. On the command line (e.g. in a batch file), it would look like this: SET PATH=%PATH%;C:\your\wamp\path\php if in doubt, it’s the directory containing the php.exe. You can also pre-set the path in Windows’ control panel. See here on how to do this in Windows 7 … Read more

How to enable memcache in WAMP

Here are the steps that worked for me: Needed Files memcached.exe Direct Link MSVCP71.DLL Windows DLL Files msvcr71.dll php_memcache.dll Working memcache for PHP 5.3.4 OR REF Steps Copy MSVCP71.DLL, msvcr71.dll to C:\windows\sysWOW64 Copy memcached.exe into C:\memcached Click Windows-Key Type: CMD press: Ctrl-Shift-Enter Choose yes type: C:\memcached\memcached.exe -d install type: C:\memcached\memcached.exe -d start Copy php_memcache.dll to … Read more