change wordpress password manually

Reset wordpress password using provided link not work, sadly no phpmyadmin available 🙂

Fortunately I have shell access which is enough, using built in md5 function to generate and update the password, here’s the steps:

1. Creating md5

– Using shell

Just type :

md5 -s your chosen password

– Make php script with this content :

<?php

$string=’your chosen password’;

echo md5($string);

?>

save this script and execute on your server.

2. Update wordpress table

– Using shell

login to mysql with username and password that written in wp-config.php

mysql -uusername -ppassword -pdatabase_name;

use database_name;

update user table set password=’md5 generated hash’ where username=’current_username’;

– Using php script

Make this script

<?php

$con=mysql_connect(“localhost”,”username_db”,”password_db”);

$choose=mysql_select_db(“db_name”);

//updating table

$update=mysql_query(“update table_user set password=’md5 generated hash’ where username=’current_username'”);

?>

save this script as change.php, upload to server and execute.

Done.

I can login to my wordpress account again.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

I don’t know why this is happen, doing nothing and got the message

Contact my webhosting and he don’t know what happened.

After wait for 5 minutes it’s get back to normal, google search to this subject return a lot of other experiences :

Looks like .htaccess has big portion in my case.

Hmm… I’ll look at my log first.

 

in Blog | 164 Words

Upgrade your wordpress to 2.3.2

WordPress 2.3.2 is out, it will fix some bugs.

One of them is bug where a person can see someone future posting posting.

Upgrade now and secure your wordpress.

Get latest wordpress from here.

Happy new year 2008 🙂

in Blog | 37 Words

Configure Vlan on Vmware and Dynamips : step by step

From mmliac in hacki forum :

I have tested trunking between two 3660 with NM-16ESW and it works fine.
Connected 3 Wmware computers on each side in 2 different vlans.
Vlan information is being transferred from the VTP server to the VTP client.

I am using Vmware Workstation 5.0 and Dynamips is running on the host computer

Heres step by step configure vlan on vmware and dynamips :

Start by configuring new virtual interfaces in Vmware.

Continue reading

in Blog | 646 Words