Monday, December 6, 2010

Reset / Forgot Coldfusion 6, 7 and 8 Administrator password


For ColdFusion 6 MX, ColdFusion 7 MX, and ColdFusion 8:
  • Stop the "ColdFusion MX Application Server" Service
  • Open the "neo-security.xml" file contained at %CFMXInstallRoot%\lib
  • Find the line: var name='admin.security.enabled'
  • boolean value='true' and change the true to false, then save the file
  • Start the "ColdFusion MX Application Server" Service
  • Go to the ColdFusion Administrator again and set a password (http:\\localhost\administrator)

To set the password 

Go to 'Security' --> CF Admin Password 
Enable 'Use a Cold Fusion Administration Password'
Set the password --> Submit changes


Friday, December 3, 2010

Cannot connect to WAMP from network machines

In the new version of WAMP, it seems that the permission to connect to WAMP server has been disabled from another machines in the network. Here is the work around for it.

- Find the file 'httpd.conf'   (normal path is c:\wamp\bin\apache\Apache2.2.11\conf)
- Find the below lines

#   onlineoffline tag - don't remove
     Order Deny,Allow
     Deny from all
     Allow from 127.0.0.1

Replace it with


#   onlineoffline tag - don't remove
     Order Allow,Deny
     Allow from all


Restart WAMP service and it will work ...

Tuesday, November 2, 2010

Retrieve / Recover Plesk Admin Password (Windows)

Log on to your webserver
Go to start -> run -> cmd c:\cd "%plesk_bin%"
(The %plesk_bin% here stands for c:\program files\swsoft\plesk\admin\bin folder in case of 'by default' installation)

Now give the command plesksrvclient -get you will get your Plesk password in a popup. Coooool.... isnt it ?

Migrate / Move Plesk License Key (Windows)

Follow the steps to migrate the Plesk control panel license key ..

1) Log in to the source server
2) Take Command window
3) Go to Plesk Bin folder (usually the command "cd %plesk_bin%" takes you there)
4) Give the command "keymng --fetch >> c:\license.psa"  (You may change the location as your wish)

Now open the Plesk control panel which needs the new key..

Go to "Server --> License Management --> Upload Key"
Browse for the fetched key and upload it...

Thats it...

Thursday, September 23, 2010

Disable inheritance of web.config

This is helpful when we need to use a different web.config for a virtual directory and not to inherit any settings from the web.config of root folder.

Add the below tag to root web.config


 <location path="." inheritInChildApplications="false" >


    <system.web>
    ...

   </system.web>
  </location>

Overcome file upload issue / limit in ASP pages, Change attachment size for Mail Enable

By default, on ASP pages the file upload limit is set to 200KB. Here are the steps to increase the limit in IIS6 and IIS7

This update can be applied to change the attachment limit in Mail Enable webmail interface.


IIS 6
------
In IIS6, we need to edit the "metabase.xml" to change the limit


1 - Before you can edit the metabase.xml file you must tell IIS to allow you to edit the file.  In IIS, right click the name of the server and select properties.  Check "Enable Direct Metabase Edit".


2 - Find the metabase.xml file located in C:\windows\sytem32\inetserv and open the file in Notepad.


3 - Search for AspMaxRequestEntityAllowed and increase the value.  The default value is 204800 (200K).  Setting the value to 1000000 will allow 1 MB file uploads.


4 - You may now wish to uncheck the IIS property called "Enable Direct Metabase Edit".




IIS7
----


Here we can do this as a Server wide property or configure it for each domain

1 - Open Up IIS Manager
2 - Click on ASP
3 - Expand Limits Properties
4 - Change the default 200KB to a bigger value.

To change the value for a single domain, find and edit the ASP property by going on to that domain only.

Restart IIS

Friday, September 17, 2010

Extra Memory for your Windows 7 or Vista

You can use an USB flash memory as an additional memory on your Windows 7 or Vista Operating system. Just plug it in and try the below settings:

• Right-click the USB flash memory drive letter and select “Properties”.
• Click the “Readyboost” tab at top in the Properties window.
• Now in the list of options, select “Dedicate this device to ReadyBoost.”
• Optionally, you can choose “Use this device” and dedicate a specific amount of Readyboost memory on the USB drive.
• Click the “OK” button.

Give a try and enjoy the performance :)

Monday, August 2, 2010

Adding MIME types in IIS / Plesk, Office 2007 MIME types

Adding MIME type in IIS
--------------------------

- Open IIS --> right click Local Computer Name --> Properties
- Click 'MIME Types'
- Click 'New'
- In the Extension box, type the file name extension that you wan, eg: docx
- In the MIME Type box, provide the appropriate description --> Apply the settings
- Restart the web service or you may need to 'Recycle' the application pool.

Normally it works as soon as the MIME type is added


Adding MIME type in Plesk (Windows)
----------------------------------------

- Log in to your Plesk Panel
- Select the domain --> Click "Web Directories" (If you wish you can choose a virtual directory)
- Select the MIME Types tab
- Type the filename extension in the Extension field. File name extension should begin with a dot (.), or a wildcard (*) to serve all files regardless of file name extension.
- Specify the file content type in the Content field.
- You can either select the appropriate value from the list or define a new content type. To do this, select Custom... and enter the content type in the input box provided.
- Click OK to finish the creation.


MS Office 2007 MIME Types
------------------------------

.docx -- application/vnd.openxmlformats-officedocument.wordprocessingml.document
.docm -- application/vnd.ms-word.document.macroEnabled.12
.dotx -- application/vnd.openxmlformats-officedocument.wordprocessingml.template
.dotm -- application/vnd.ms-word.template.macroEnabled.12
.xlsx -- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xlsm -- application/vnd.ms-excel.sheet.macroEnabled.12
.xltx -- application/vnd.openxmlformats-officedocument.spreadsheetml.template
.xltm -- application/vnd.ms-excel.template.macroEnabled.12
.xlsb -- application/vnd.ms-excel.sheet.binary.macroEnabled.12
.xlam -- application/vnd.ms-excel.addin.macroEnabled.12
.pptx -- application/vnd.openxmlformats-officedocument.presentationml.presentation
.pptm -- application/vnd.ms-powerpoint.presentation.macroEnabled.12
.ppsx -- application/vnd.openxmlformats-officedocument.presentationml.slideshow
.ppsm -- application/vnd.ms-powerpoint.slideshow.macroEnabled.12
.potx -- application/vnd.openxmlformats-officedocument.presentationml.template
.potm -- application/vnd.ms-powerpoint.template.macroEnabled.12
.ppam -- application/vnd.ms-powerpoint.addin.macroEnabled.12
.sldx -- application/vnd.openxmlformats-officedocument.presentationml.slide
.sldm -- application/vnd.ms-powerpoint.slide.macroEnabled.12
.one -- application/onenote
.onetoc2 -- application/onenote
.onetmp -- application/onenote
.onepkg -- application/onenote
.thmx -- application/vnd.ms-officetheme

Wednesday, July 21, 2010

Install Flash player in Linux / Firefox

Simply follow the below steps to install Flash player on your linux box

1) rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm

2) rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

3) mkdir -p /usr/lib/mozilla/plugins /usr/lib64/mozilla/plugins

4) yum install flash-plugin

5) mozilla-plugin-config -i -g -v


Now restart Firefox and view the flash videos...

Saturday, July 10, 2010

Recover your hacked Gmail account

If your Gmail account is compromised, try the below link to recover the account:

http://www.google.com/support/accounts/bin/request.py?ara=1

On the page, click the option 'No' and on the next page provide as much correct details as you could to recover your account.

This has actually worked for many of my friends who had forgot the password or on a compromised account.

Cheers ;-)

Friday, June 4, 2010

Folder permission issue in Plesk

If you are unable to change the folder permission on your Plesk control panel, try the below steps.

An error message that could probably be displayed is : FileList::init() failed: ls_dir_wrapper() failed: Unable to get file (C:\inetpub\vhosts\domainname.com) attributes: (5) Access is denied

Solution:-
----------

- Go to the domain folder and delete the file ".security"
- Log in to your Plesk control panel --> Select the Domain --> Click "Check Permissions"
- On the next window, deselect "Check-only mode" --> OK

Now wait for the process to complete and try accessing the File Manager in Plesk.

Monday, March 15, 2010

Reset MySQL Password

- Log on as Administrator
- Stop 'MySQL' service if its running (from Service manager or Task Manager)
- Create a text file with the following statements:

UPDATE mysql.user SET Password=PASSWORD('MyNewPass')
WHERE User='root';
FLUSH PRIVILEGES;
(Replace 'MyNewPass' with the password you need to use and also change the Username as needed. In the case of plesk installations, the username is usually 'Admin')

'Update' and 'Flush' statements, each should be given in a single line. 'Update' statement updates the root password and 'Flush' statement tells the server to reload the grant tables into memory.

- Save the file

- Start MySQL server special --init-file option

On the command window, give the following statement.
C:\> C:\mysql\bin\mysqld-nt --init-file=C:\mysql-init.txt

(Change the paths according to the installation folder)

Restart the service in normal mode.

Reference : http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

Tuesday, January 5, 2010

Random Password for User Accounts

Assign Random Password for User Accounts

==================================

* Click 'Run' --> CMD --> Ok

* Give the command 'net user (username)  /random'

The user account will be assigned with a random strong password which is 8 character long..

:-)