How to Make WordPress Permalinks Work in Xampp

Xampp Wordpress PermalinksXampp and similar localhost webservers that can be run from a local computer do not have mod_rewrite enabled by default. Furthermore, the AllowOverride directive is usually set to none, causing Apache to ignore an .htaccess file. If this is the case, your WordPress installation might return a 404 error, stating post not found and you would only be able to access your posts via a default permalink structure http://localhost/?p=2. In the following simple solution, I show you how to make WordPress Permalinks work in Xampp and other localhost server installations. Upon completion, you will also have the ability to use .htaccess files on your local server.

This is because in xampp, mod_rewrite is not enable by default. Beside, AllowOverride directive in Apache configuration file is also set to None by default, causing Apache web server to ignore any .htaccess file, which used to rewrite the permalinks to the post’s actual url.

Read More →

How to Resetting a Forgotten MySQL Root Password

resetting password mysqlHowever if you don’t know the current password this approach will not work - you need to login to run any commands and without the password you’ll not be able to login!. Thankfully there is a simple solution to this problem, we just need to start MySQL with a flag to tell it to ignore any username/password restrictions which might be in place. Once that is done you can successfully update the stored details.

First of all you will need to ensure that your database is stopped
# /etc/init.d/mysql stop

Now you should start up the database in the background, via the mysqld_safe command
# /usr/bin/mysqld_safe –skip-grant-tables

Read More →