Posts

Showing posts from September, 2008

Inbound connections limit in Windows XP

SYMPTOMS At a computer that is running Windows XP or Windows 2000, when you attempt to connect to another Windows XP computer, you may receive the following error message: No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept. CAUSE This behavior occurs if the computer reaches the maximum number of inbound connections that the computer can host. ALTERNATIVE SOLUTION You can configure the AutoDisconnect time by running the following command from a command prompt: net config server /autodisconnect: time_before_autodisconnect Specify the time in minutes. For more information- http://support.microsoft.com/kb/314882

Apache 403 Error

There are two causes to 403 errors with virtual hosts. 1. First, every single parent path to the virtual document root must be Readable, Writable, and Executable by the web server httpd user. The access_log will show a 403 code, but the following message is returned to the browser with no "403" string printed: Forbidden You don't have permission to access /index.html on this server. 2. The second cause is actually a configuration problem -- the problem is forgetting to allow access in the httpd.conf. In this case the access_log will show a 403 error and Aapche2 will also sometimes send a "403" in the error string to the browser: HTTP 403 / client denied by server configuration error Forbidden You don't have permission to access /index.html on this server. A tail of the error_log gives a message like this for each access attempt: [Tue Jul 25 17:58:17 2006] [error] [client 192.168.1.1] client denied by server configuration: /var/www/vhosts/prabhat/ Th...

How to Remove Spaces From string

This is javascript function to remove spaces in given string function removeSpaces(string) { return string.split(' ').join(''); }

Web Redirection

<head> <script type="text/javascript"> <!-- setTimeout('Redirect()',2000); function Redirect() { location.href='http://newdomain.com/'; } //--> </script> <html> <body> This site is no longer located here. <br /> You will be redirected in 2 seconds. Please update your bookmarks/links </body> </html>

Forgotten MySQL root password

1. Start. 2. Stop the mysqld daemon process: root@prabhat:~# /etc/init.d/mysql stop 3. Start the mysqld daemon process with the --skip-grant-tables option. : root@prabhat:~# /usr/bin/mysqld_safe --skip-grant-tables & [1] 6702 Starting mysqld daemon with databases from /var/lib/mysql mysqld_safe[6763]: started . 4. Start the mysql client with the -u root option: Note: - In Mysql server running with the --skip-grant-tables flag not require password root@prabhat:~$ mysql --user=root mysql Enter password: 5. Execute the UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root'; mysql> update user set Password=PASSWORD(' new-password-here ') WHERE User='root'; Query OK, 2 rows affected (0.04 sec) Rows matched: 2 Changed: 2 Warnings: 0 6. Execute the FLUSH PRIVILEGES; comman...