Wednesday, August 20, 2008

Plesk Windows 2003 - One website asking for password

This post is actually associated with the last post I made. But instead of editing the last post, I decided to go with a new post, since the issue happened before. After I change the password of an account, website on accessing on a browser, keeps on asking for username and password. It can be fixed by executing the following command from the cd %plesk_bin% directory.

websrvmng --update-anon-password --domain-name=domainname.com

Plesk Windows 2003 - 530 FTP user cannot login

Plesk Windows 2003 - 530 User username cannot log in. A plesk user after a server move was not able to log in.

My first attempt was to change the password which resulted in the error as below

Error: Unable to activate/deactivate domain: User or role 'username2' does not exist in this database.


As you can see that didn't fix the issue. Now I went on to change the username which resulted in the below error

Error: Unable to update hosting preferences: Unable to rename FTP user: ftpmng --rename-user failed: User "username1" doesn't exist


So that put me in the track. Before entering to the plesk database and manually updating it on, I gave it a try to use the following command (which worked!) and saved me from further hassles.

"%plesk_bin%\ftpmng.exe" --reconfigure-all

Tuesday, August 19, 2008

IIS 6.0 ASP or ASP.NET 404 Page Not found error

First of all, before telling about the issue, let me apologize to the blogger god for blogging about Windows issues too, on a Unix only blog. I currently support a windows client as well. It is a learning process and I must say that I am enjoying that too.

Okay the issue was this

I am moving a domain from a Plesk 7.6 installed server to Plesk 8.4 installed server - a relatively new one. Everything except the domain contents are moving. I didn't try to fix at the source. Instead I tarred the httpdocs and moved to the new server and extracted it there. And there began the permission issue, as expected.

Issues
--------

* Permission issue was making the website to ask for the password. Ran the Plesk permission fix from the Plesk reconfigurator and it did fix the issue.

* Once that permission was fixed, came another issue which was returning 404 on a asp page which is actually there. I asked the Sergey's google, but it was saying many things but all answers were addressing the serverwide issues, like Allowing the ASP in Web Service Extension and so on, which was already enabled.

My issue was domain specific. So had to do something with the IIS and the website in specific. Made sure that it had permissions for all users, just as any other website. So not any permission issue. And after two hours of scratching, I found that it was because there was nothing configured to process the files with .asp extension.

Steps to follow is this

1. Start -> Run -> inetmgr
2. Websites -> domain.com -> Right Click permissions
3. Home Directory --> Application Settings --> Configuration
3. Add -> Executable -> C:\WINDOWS\System32\inetsrv\asp.dll and LIMIT the verbs to GET,HEAD,POST,TRACE.

And voila that fixed the issue. Now some database connectivity is missing. Let me go back and work on that.