4. fejezet, WAMP

403 forbidden message on windows-7

A hiba oka a httpd.conf-ban:

<Directory "c:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride all
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Directory>

És a phpmyadmin.conf-ban:

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1
</Directory>

Elhárítása:

AllowOverride All
Order allow,deny
Allow from all

MySQL – Resetting the Root Password

    Click on the Wamp server icon > MySQL > MySQL Console
    Enter password: LEAVE BLANK AND HIT ENTER
    mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; ENTER Query OK
    mysql>FLUSH PRIVILEGES; ENTER mysql>quit ENTER mysql>bye
    Edit phpmyadmin file called "config.inc.php" enter 'MyNewPass' ($cfg['Servers'][$i]['password'] = 'MyNewPass';)
    Restart all services
    Clear all cookies – I got the No password error and it was because of the cookies. (ERROR 1045: Access denied for user: ‘root@localhost’ (Using password: NO))