#1045 – Access denied for user ‘root’@’localhost’ (using password: YES)

I first changed the root password running mysql at a prompt with mysql -u root -p Update password: UPDATE mysql.user SET Password=PASSWORD(‘MyNewPass’) WHERE User=”root”; Edited line in the file config.inc.php with the new root password: $cfg[‘Servers’][$i][‘password’] = ‘MyNewPass’ Stop and re-start mysql service (in Windows: mysql_stop.bat/mysql_start.bat) and got phpMyAdmin to work! EDIT 2017: for MySQL≥5.7 … Read more

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

Running Composer returns: “Could not open input file: composer.phar”

If you followed instructions like these: https://getcomposer.org/doc/00-intro.md Which tell you to do the following: $ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer Then it’s likely that you, like me, ran those commands and didn’t read the next part of the page telling you to stop referring to composer.phar by its full name and … 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

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

Regaining access to lost MySQL password for PHPMyAdmin on WAMP

Here is a method that will allow you to reset the MYSQL ‘root’ password quite simply. Stop the mysql service wampmanager -> MySQL -> Service -> Stop Service Edit the my.ini file wampmanager -> MySQL -> my.ini Find the [wampmysqld](32bit) or [wampmysqld64](64bit) section in the ini file Add this line directly after that section heading … 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

tech