06 March, 2016

on Leave a Comment

Simple and repetitive things in php

to set mysql password:
SET PASSWORD FOR root@localhost=PASSWORD('root');
replece root with your password.

 Updating password:
UPDATE mysql.user         SET Password = PASSWORD('pwd')         WHERE User='root';

Enable mod_rewrite in windows , WAMP, XAMPP

(before placing .htaccess file, this should be done)

For enabling the rewrite rules follow these rules:-
1) find httpd.conf (usually this file can be found in folder callled conf , config or something along those lines)
2) Find and uncomment the line LoadModule rewrite_module modules/mod_rewrite.so
3) Find the line with DocumentRoot “C:/path/to/my/root”, There you will find contents like
<Directory>
</Directory>
Make sure the content

  inside these two braces looks like
<Directory>
Options All
AllowOverride All
</Directory>
4) All done now restart the Apache server and you will be all good to go.

Ads

Landing Page eBook WP Shopping Cart

Follow me