How to restore default permissions on a domain?
Resolution

In case default permissions on the domain folder are lost, the following actions can be performed to restore them:

In Parallels Plesk Panel (PP), go to the Domains page, mark the required domains, and click on the Check permissions button. Then uncheck the Check-only mode checkbox and click OK.

If it is necessary to repair permissions for all domains, you can launch Plesk Reconfigurator (Start > Programs > SWsoft > Plesk > Plesk Reconfigurator). When it is running, choose Repair Plesk installation, toggle on Plesk virtual hosts security, and click on the Check button.

Note: Please be aware that any custom permissions that might have been configured by customers will be replaced with the default ones after this action.

You can find instructions for Plesk for Linux here – http://kb.odin.com/en/6572

How to set it in plesk: https://support.managed.com/kb/a642/how-to-fix-permissions-on-your-site-through-plesk-control.aspx

APPLIES TO:

Plesk 12.0 for Linux
Plesk 11.0 for Linux
Plesk 11.5 for Linux

Symptoms

I started a security check through Parallels Plesk Panel at Modules -> Watchdog -> Security -> Start. The process finished successfully, however, the following warning messages are reported in the Watchdog security check log (/var/log/rkhunter.log):

Warning: The command ‘/usr/bin/GET’ has been replaced by a script: /usr/bin/GET: perl script text executable
Warning: The command ‘/usr/bin/groups’ has been replaced by a script: /usr/bin/groups: Bourne shell script text executable
Warning: The command ‘/usr/bin/ldd’ has been replaced by a script: /usr/bin/ldd: Bourne shell script text executable
Warning: The command ‘/sbin/ifdown’ has been replaced by a script: /sbin/ifdown: Bourne-Again shell script text executable
Warning: The command ‘/sbin/ifup’ has been replaced by a script: /sbin/ifup: Bourne-Again shell script text executable

These files exist in the system. How can I reconfigure RKHunter to verify the existence of the binaries and remove the warning messages?
Resolution

It is recommended that you add the following directives into the RKHunter configuration file:

/usr/local/psa/etc/modules/watchdog/rkhunter.conf
—>8—
SCRIPTWHITELIST=/usr/bin/GET
SCRIPTWHITELIST=/usr/bin/groups
SCRIPTWHITELIST=/usr/bin/ldd
SCRIPTWHITELIST=/sbin/ifdown
SCRIPTWHITELIST=/sbin/ifup
—8<--- If you want to disable emails, check the log file at /usr/local/psa/etc/modules/watchdog/rkhunter.conf and set it to [bash] /usr/local/psa/etc/modules/watchdog/rkhunter.conf [/bash] Or in /etc/cron.daily/01-rkhunter

On Windows, similar results can be achieved using the IIS URL Rewrite functionality. To enable this functionality, place the desired rewrite rules in a web.config file in your website’s document root directory. Refer to the IIS documentation for more information.

More info: http://www.iis.net/learn/extensions/url-rewrite-module/using-the-url-rewrite-module

Windows 2008

http://www.microsoft.com/en-us/download/details.aspx?id=7435

For Windows Plesk servers, this KB says that IIS rewrite can be supported in a plesk panel and installed as a panel component – http://kb.odin.com/en/125167

Under Tools and Settings > Updates and upgrades

updates

Click Add/Remove Components

add

Select IIS URL Rewrite Module and Then Click OK

rewrite

Errors in plesk:

# /usr/local/psa/bin/admin --show-password
SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES)

Accessing the plesk panel:


ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES) (Abstract.php:144)

Reset the root password

UPDATE – See this for cool script to reset the password – https://support.plesk.com/hc/en-us/articles/213364309-Unable-to-access-Plesk-on-Linux-Access-denied-for-user-admin-localhost-using-password-YES-


# service mysqld stop

# mysqld_safe --skip-grant-tables
# service mysqld start

Login:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow`

Or,


# mysql -u root

# mysql> use mysql;
# mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
# mysql> flush privileges;
# mysql> quit

Trying to start the PHP-FPM support for nginx in plesk:

Error: Unable to make action: Unable to manage service by phpinimng: [18-May-2015 09:13:30] ERROR: unable to bind listening socket for address ‘127.0.0.1:9000’: Address already in use (98)
[18-May-2015 09:13:30] ERROR: FPM initialization failed
Failed to start php-fpm service
(‘–type=fpm’, ‘php-fpm’)

Check for the process running:


# netstat -tulpena | grep 9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 0 1005390944 30929/php-fpm

Kill the process and then restart the PHP-FPM support for nginx in Plesk

kill -9 processid

Configuring the rDNS for a linux server is easy. A windows server with plesk is a different story.

Plesk

I changed the hostname in the plesk Tools and Settings.

pleskhostname

Rebooted the system. Then sent a test email. Here is the header:


Received: from WIN-QO7M1M92HBS.home

Humm…where is the new hostname? So I did some investigation. I checked the computername in windows:

Win-Computername

Then I checked the Mailenable settings > Services and Connectors > SMTP > properties.

SMTP Connector

So, the email received from name is a combination of the Windows computer name and the Mailenable Local domain name.

Now that I had this information, how do I give the mail server a valid hostname?