MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - shantanu

Pages: [1]
1
How take backup of IIS Configuration and list/restore/delete it.

1. Navigate to appcmd.exe directory as follows:

C:\>cd "c:\windows\system32\inetsrv"
Or
c:\>cd %systemroot%\system32\inetsrv\

2. Take IIS backup:

c:\Windows\System32\inetsrv>appcmd.exe add backup IIStest
BACKUP object "IIStest" added

3. List the available IIS backups:

c:\Windows\System32\inetsrv>appcmd.exe list backup
BACKUP "IIStest"
BACKUP "CFGHISTORY_0000000004"
BACKUP "CFGHISTORY_0000000005"
BACKUP "CFGHISTORY_0000000006"
BACKUP "CFGHISTORY_0000000007"
BACKUP "CFGHISTORY_0000000008"
BACKUP "CFGHISTORY_0000000009"
BACKUP "CFGHISTORY_0000000010"
BACKUP "CFGHISTORY_0000000011"
BACKUP "CFGHISTORY_0000000012"
BACKUP "CFGHISTORY_0000000013"

4. Restore the previous backups:

c:\Windows\System32\inetsrv>appcmd.exe restore backup IIStest
Restored configuration from backup "IIStest"

5. Delete the unwanted backups:

c:\Windows\System32\inetsrv>appcmd.exe delete backup IIStest
BACKUP object "IIStest" deleted

2
How To's / Re: How to ping a domain name ?
« on: January 13, 2014, 06:39:09 PM »
If you want to copy the output of Ping command into a text file directly then run the below command into Command Prompt:

C:\>ping milesweb.com >> C:\ping-result.txt

It will create ping-result.txt file with the ping details.

3
Errors and Solutions / Unable to open File Manager in Plesk Control Panel
« on: January 08, 2014, 07:21:21 PM »
Symptoms:

After opening the File Manager in Plesk Panel, you will get below error:

++++++++
FileList::init() failed: ls_dir_wrapper() failed: Unable to lookup SID for name test_user: (1332) No mapping between account names and security IDs was done.
---------------------- Debug Info -------------------------------
0: FileManagerUIPointer.php:737
        FileManagerUIPointer->accessItem(string 'GET', NULL null)
1: client.domain.hosting.file-manager.php:87
        plesk__client__domain__hosting__file_manager->accessItem(string 'GET', NULL null)
2: UIPointer.php:600
        UIPointer->access(string 'GET')
3: plesk.php:57
++++++++

Cause:

The FTP/File Managre user is not present on the server.

Resolution:

1. Start > Run > cmd>

2. After that retrieve the password using below command for user test_user:

"%plesk_bin%"\dbclient --direct-sql --sql="select su.login, a.password from accounts a, sys_users su  where a.id=su.account_id and su.login='test_user'"
login       password
test_user   p@ssw0rd

2. Add the missing user by using below command:
   C:\net user test_user p@ssw0rd /add

3. Add that user into Plesk Group:
   C:\net localgroup psacln test_user /add

4. Add local path in the following location >>
   Server Manager > Configuration > Local users and Groups > test_user > properties > Profile > Local Path
   (Local Path will be localtion of httpdocs folder of that domain)

   The path of the user can be found in the sys_users table.

Eg:

C:\Users\Administrator>"%plesk_bin%\dbclient.exe" --direct-sql --sql="select login,home from sys_users where login='test_user'"
+---------------+-------------------------------------+
| login         | home                                |
+---------------+-------------------------------------+
| test_user     | C:/Inetpub/vhosts/test.com          |
+---------------+-------------------------------------+
1 row in set (0.00 sec)

5. If the password is encrypted and "Enhanced security mode" policy is enabled:then follow the below steps:
 A. Add the user with random password.
 B. Login to Plesk Control panel >> Subscriptions >> test.com >> Change hosting settings and Update password for that FTP user.

Now you will be able to access the File Manager without any error.

4
Follow the below steps to add PHP 5 handler manually into IIS which is having Plesk Panel.

1.   Login to the server.
2.   Open IIS.
3.   Click on the website under the Sites.
4.   Open Handlers Mappings for the website.
5.   Click on Add Module Mapping from Right Hand side Action pane.
6.   Request path should be *.php
7.   Module is FastCgiModule.
8.   Executable will be "C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\php-cgi.exe"
9.   Name is PHPFastCGi
10. Request Restrictions settings as as follows:
       Mapping- Select option ''Invoke handler only if request is mapped to: File or Folder"
       Other settings keep as it is.
11. Click on OK button and then again click on Yes.

PHP handler will get added into IIS and websites will work with PHP pages without any error.

Pages: [1]