Posts Tagged ‘plesk’

Plesk Panel was updated and released new panel -v 11.5 Couple of bugs were founded #1 File manager being reproduce errors when enter into file manager and get below error: ++++++ Internal error: Unable to lookup SID for name MISSEDUSERID: (1332) No mapping between account names and security IDs was done. (Error code 1) Message […]

Here it is for others who wish to increase the upload limit from 2M to whatever you desire: Change the folowing file: /usr/local/psa/admin/conf/php.ini And the following value: “upload_max_filesize” & “post_max_size” From: “2147483647″ To: “100M” (100M or whatever value you wish to set the cap to)   Then you need to run the following commands to […]

Suspend / Unsuspend domain via command line Plesk

Posted: 8th July 2013 by admin in all
Tags: , ,

To suspend or unsuspend a domain on a Plesk server via the command line We use the Plesk command line tools. Most are just one liners πŸ™‚ Suspend a Domain Suspend domain via command line Plesk  /usr/local/psa/bin/domain -u -status disabled Unsuspend a Domain Unsuspend domain via command line Plesk /usr/local/psa/bin/domain -u -status enabled

Comments Off on Script to calculate disk space usage of Mail Boxes on Plesk v >10

​ On new versions of Plesk non exist otions for calculating disk space of mail boxes So here nice script that calculate disk space per mailbox: The script: (saved in /usr/local/sbin/hogs and chmod 755 and change <THEDOMAIN.COM> to whatever the domain is you are getting usage for) #!/bin/sh # #lists disk usage by user echo […]

Bash script removing malicious .pl && .cgi scripts

Posted: 28th February 2012 by admin in all
Tags: , , , , , , , , ,

During mass Plesk hack around the world,couple of our servers were hacked(not rooted). There little script for checking malicious perl and cgi scripts in cgi-bin directory #!/bin/bash find /var/www/vhosts/*/cgi-bin/*.cgi >>domlist find /var/www/vhosts/*/cgi-bin/*.pl >>domlist echo “***********************************************************” cat domlist echo TOTAL FILES $(cat domlist|wc -l) echo “***********************************************************” echo “wanna remove? [yes] || [no] || [q]” echo […]