Apache SSL — How to create a self-signed SSL Certificate

July 28, 2006 | In WebTechnology | No Comments

How to create a self-signed SSL Certificate …

… which can be used for testing purposes or internal usage

Overview

The following is an extremely simplified view of how SSL is implemented and what part the certificate plays in the entire process.

Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems, especially where security and privacy is necessary, such as in credit card data and bank transactions. The Secure Socket Layer is used to encrypt the data stream between the web server and the web client (the browser).

Continue reading Apache SSL — How to create a self-signed SSL Certificate…

refresh and redirect web page with a meta tag

July 25, 2006 | In WebTechnology | 3 Comments
<meta http-equiv=“refresh” content=”2;URL=http://www.yoursite.com/newpage.htm” />
In 2 seconds, redirect to http://www.yoursite.com/newpage.htm.
							
				

			

			

A.4.2 How to Reset Root Password in MySQL

July 22, 2006 | In MySQL, WebTechnology | No Comments

If you have forgotten the root user password for MySQL, you can restore it with the following procedure:

1. Take down the mysqld server - kill `cat /mysql-data-directory/hostname.pid`

2. Restart mysld with the –skip-grant-tables option.

3. Connect to the mysqld server mysql -h hostname mysql

4. FLUSH PRIVILEGES to enable grant tables

5. Change the root password.

Details/Notes of Steps

1. Take down the mysqld server -

Do not kill -9 The server’s process file runs in .pid format, and is usually in the MySQL database directory, so:kill `cat /mysql-data-directory/hostname.pid`
This procedure requires root access to your Unix server.
2. Restart mysld with the –skip-grant-tables option.

3. Connect to the mysqld server with

mysql -h hostname mysql

and change the password with a GRANT command.
4. FLUSH PRIVILEGES to enable grant tables

5. Change the root password.

source: paraphrased from p. 723 of MySQL Reference Manual, printed in 2002 for MySQL v. 4

Key notes

The book/docs mention at the bottom of instructions that you will get an error until you execute FLUSH PRIVILEGES. But they did not include this as a step Before using the GRANT command.
Important: Use the cli mysql client to do this. I tried to use phpmyadmin and it kicked me out after flush privileges and prompted for login - a reasonable security feature of phpmyadmin. But what you want to do is to be able to get access to your mysql server, then enable privileges, then change privileges so you can get in later.
Hope these instructions save someone else the headache.

Next Page »

Powered by WordPress RSS XMLRSS Feed - Syndicate this Site and comments feed
linux GNUpowered by Apache tomcatMySQL ABPHP - The Language the Web Runs on

^Top^ Gare CalhounGare CalhounGare CalhounGare CalhounGare Calhoun