repair.exe Repairing plesk accounts an update to our Earlier Post

repair.exe Repairing plesk accounts an update to our Earlier Post

repair.exe Repairing plesk accounts an update to our Earlier Post

This is an update to our Earlier post Here with More Examples.

The repair.exe utility is used to repair various Panel configuration parameters that might be changed or broken, for example, after upgrading from older Panel versions or manual editing of configuration files. Most of the commands of this utility are executed automatically during the upgrade to Panel 11.5, however, you can run the commands manually if you need to repair corresponding configuration parameters .

With this utility, you can perform the following tasks:

  • updating the configuration of Panel services
  • updating the location of configuration files
  • updating permissions
  • installing SSL certificates
  • repairing the Horde webmail’s database
  • starting and stopping the Panel UI
  • generating new passwords for the built-in IIS users
  • repairing the site’s home directory structure and permissions

You can access this repair.exe command by change directory to %plesk_cli%

repair.exe 
Command Description Example
–reconfigure-ftp-sites The system user (FTP user) account, the additional FTP user account and their permissions might be changed not through Panel. As a result, the information in the Panel database becomes not synced with the actual configuration.
This command updates the FTP service configurations of all registered websites with the information from the Panel database.
To repair the configuration of FTP service for all sites on the server:
>repair.exe –reconfigure-ftp-sites
–reconfigure-ftp-site The system user (FTP user) account, the additional FTP user account and their permissions might be changed not through Panel. As a result, the information in the Panel database becomes not synced with the actual configuration.
This command updates the FTP service configuration of the specified website with the information from the Panel database.
Note: If the website was deleted from the server, this command first creates it on the IP address that corresponds to this website in the Panel database, and then creates the FTP users with appropriate permissions.
Requires -webspace-name.
To repair the the configuration of FTP service for the webspace example.tld:
>repair.exe –reconfigure-ftp-site -webspace-name example.tld
–reconfigure-web-site
The site configuration in the configuration files and in the Panel UI might become not synced, for example, after manual editing of configuration files.
This command replaces the settings in the web server configuration files of the specified website with the settings that are stored in the Panel database.
Note: Configuration settings that are not stored in the Panel database are not repaired. These parameters include virtual directory settings – for example, default documents or MIME types.
Requires -web-site-name.
To repair the web server configuration of website example1.tld:
>repair.exe –reconfigure-web-site -web-site-name example1.tld

–reconfigure-web-site-logs Sets the correct path to the directory where logs of the specified website should be stored, and moves existing logs to the new directory.
Requires -web-site-name.
To repair the path to log files of example1.tld :
>repair.exe –reconfigure-web-site-logs -web-site-name example1.tld
–reconfigure-all-web-sites-logs For each website, sets the correct path to the directory where its logs should be stored, and moves existing logs to the new directory. To repair the path to log files for all sites on the server:
>repair.exe –reconfigure-all-web-site-logs
–regenerate-web-server-users-password Generates new passwords for the built-in IIS users. To generate the new passwords of the built-in IIS users:
>repair.exe –regenerate-web-server-users-password
–reconfigure-webmail-sites Reconfigures webmail services for all sites on the server. To update the configuration of webmail services:
>repair.exe –reconfigure-webmail-sites
–recreate-horde-database Creates a new clean database for the Horde webmail.
Note: This command removes the existing data.
To create a new database to be used by the Horde webmail:
>repair.exe –recreate-horde-database
–upgrade-horde-database Upgrades the Horde webmail database (preserving the existing data). To repair the database for the Horde webmail:
>repair.exe –upgrade-webmail-sites
–reconfigure-mssql-webadmin-site Reconfigures SQL Server database web administration services.
To reconfigures the SQL Server database web administration services:
>repair.exe –reconfigure-mssql-webadmin-site
–reconfigure-ssl-certificates Reinstalls SSL certificates on the server.
To reinstall SSL certificates:
>repair.exe –reconfigure-ssl-certificates
–update-security-metadata-locations Moves the security metadata files (.Security) to the correct location for each domain on the Panel server.
To move the .Security files of all domains to the correct location:
>repair.exe –update-security-metadata-locations
–update-webspace-subdomains-security-metadata-location Moves the security metadata files (.Security) of subdomains of the specified subscription to the correct location.
Requires -webspace-name.
To move the .Security files of subdomains within the subscription example.tld to the correct location:
>repair.exe –update-security-metadata-locations -webspace-name example.tld
–update-webspace-spaw-security Updates the HTML editor permissions for the specified subscription.
Requires -webspace-name.
To repair the HTML editor permissions for the subscription example.tld:
>repair.exe –update-webspace-spaw-security -webspace-name example.tld
–update-all-webspaces-spaw-security Updates the HTML editor permissions for all subscriptions. To repair the HTML editor permissions for all subscriptions:
>repair.exe –update-all-webspaces-spaw-security
–update-webspace-security Permissions on a subscription’s files on the file system may differ from the permissions written in the .Security file, for example, after the permissions are changed not through Panel. As a result, ‘Access denied’ messages may appear.
This command updates permissions on the file system with the permissions from the .Security file for the specified subscription.
Requires -webspace-name.
To update all permissions for the subscription example.tld:
>repair.exe –update-webspace-security -webspace-name example.tld
–repair-webspace-security Permissions in the .Security file of a subscription may differ from the virtual host template, for example, after data migration or restoration of a backup. As a result, ‘Access denied’ messages may appear.
This command updates the permissions on the file system with the permissions from the .Security file and from the virtual host template.
Requires -webspace-name.
To repair permissions for the subscription example.tld:
>repair.exe –repair-webspace-security -webspace-name example.tld
–repair-all-webspaces-security Permissions in the .Security file of a subscription may differ from the virtual host template, for example, after the migration or restoration of a backup. As a result, ‘Access denied’ messages may appear.
This command updates the permissions on the file system with the permissions from the .Security file and from the virtual host templates. The permissions are updated for all subscriptions.
To repair permissions for all subscriptions:
>repair.exe –repair-all-webspaces-security
–update-domain-web-stat The web statistics page might not open and the 404 error page might be displayed. This might happen after upgrading to Panel 11.5 if web statistics files are not found in the correct location.
This command moves the web statistics configuration files of the specified subscription to the correct location. Also, it provisions a correctlocation to IIS and Webalizer settings.
Requires -domain-name.
To update web statistics configuration for the domain example1.tld:
>repair.exe –update-domain-web-stat -domain-name example1.tld
–update-all-domains-web-stat The web statistics page might not open and the 404 error page might be displayed. This might happen after upgrading to Panel 11.5 if web statistics files are not found in the correct location.
This command moves the web statistics configuration files of all subscriptions to the correct location.
To update web statistics configuration for all domains:
>repair.exe –update-domain-web-stat
–reconfigure-tomcat Repairs the configuration of the Apache Tomcat service for all websites. To repair the configuration of the Apache Tomcat service for all websites:
>repair.exe –reconfigure-tomcat
–reconfigure-coldfusion Reconfigures websites with the enabled ColdFusion support. To repair the configuration of websites with the enabled ColdFusion support:
>repair.exe –reconfigure-coldfusion
–start-plesk-website Starts the Panel web interface. To start the Panel UIt:
>repair.exe –start-plesk-website
–stop-plesk-website Stops the Panel web interface. To stop the Panel UIt:
>repair.exe –stop-plesk-website
–transform-maintenance-mode Replaces the deprecated Maintenance Mode in websites configurations with the Suspended status (introduced in Panel 11.5) and removes the deprecated ‘sitemaintenance’ ISAPI filter from all sites. To replace the deprecated Maintenance Mode with the Suspended status for all websites:
>repair.exe –transform-maintenance-mode
–help or -h Displays help on the use of the utility. To view help on the use of the utility:
>repair.exe –help
or
>repair.exe -h

Options to use with the Above command.

Option Parameter Description Example
-webspace-name <webspace name> Specifies the name of the target subscription (this name is the same as the name of the main domain in a subscription). To repair permissions for the subscription example.tld:
>repair.exe –repair-webspace-security -webspace-name example.tld
-web-site-name <website name> Specifies a domain name. To repair the path to the website’s example1.tld log files:
>repair.exe –reconfigure-web-site-logs -web-site-name example1.tld
-domain-name <domain name> Specifies a domain name. To update web statistics configuration for the domain example1.tld:
>repair.exe –update-domain-web-stat -domain-name example1.tld

Source odin.com, its worth sharing on our Blog.

 

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.