Linux Plesk

change-the-default-port-for-Plesk

How to change the default port for Plesk

It is not recommended to change the default Plesk port because it can break Plesk integration with other programs (like Plesk Expand or DrWeb). Linux :- 1.) To change the port Plesk listens on you will need to edit /usr/local/psa/admin/conf/httpsd.conf file and change the following directives to list the port you want Plesk to listen on: Listen 8443 Port 8443 <VirtualHost *:8443> 2.) You will need to restart Plesk afterwards and update the hardware object in the SoftLayer portal with the new port (Hardware > [...]

Read more...
repair-mail-server-configuration-on-plesk-server

How to repair mail server configuration on plesk server ?

Use mchk utility to repair/rebuild mail server configuration and restore settings for all mailboxes created in Parallels Plesk Panel. /usr/local/psa/admin/sbin/mchk --help Restore settings for all mailboxes. Usage: /usr/local/psa/admin/sbin/mchk [OPTION] OPTIONS: --without-spam restore all settings except for SpamAssassin configuration --with-spam restore all settings --spam-only restore only SpamAssassin settings Usage example: /usr/local/psa/admin/sbin/mchk --with-spam If you have any problems or looking for support, please send your emails at :: admin@24×7servermanagement.net

Read more...
MySQL-root-password-on-plesk-server

What is the MySQL root password on plesk server?

What is The root password for MySQL on plesk server? On server with Parallels Plesk Panel versions 8.x, 9.x and above admin password is stored in file /etc/psa/.psa.shadow. Use the following command to get the password: cat /etc/psa/.psa.shadow Since version 10 admin password stored in file /etc/psa/.psa.shadow is encrypted. Use the following command to get admin password in plain text: /usr/local/psa/bin/admin --show-password Despite version of Parallels Plesk Panel you may use the following command to login to mysql with root privileges: mysql -uadmin -p`cat /etc/psa/.psa.shadow`  

Read more...
Install-two-php-version-on-plesk

How to Install two php version on plesk

1. SSH to your Parallels Plesk Panel (PP) server as root, download the PHP source, unpack it, and configure it # cd /usr/local/src # mkdir php540 # cd php540 # wget http://www.php.net/get/php-5.4.0.tar.gz/from/at2.php.net/mirror # tar xzvf php-5.4.0.tar.gz # cd php-5.4.0 Note: You HAVE TO USE THE PREFIX SWITCH in order for your new PHP to be installed inside a single directory. For example: # ./configure '--with-libdir=lib64' '--cache-file=../config.cache' '--prefix=/usr/local/php540-cgi' '--with-config-file-path=/usr/local/php540-cgi/etc' '--disable-debug' '--with-pic' '--disable-rpath' '--enable-fastcgi' '--with-bz2' '--with-curl' '--with-freetype-dir=/usr/local/php540-cgi' '--with-png-dir=/usr/local/php540-cgi' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr/local/php540-cgi' '--with-openssl' '--with-pspell' '--with-pcre-regex' '--with-zlib' '--enable-exif' [...]

Read more...
your-server-is-under-DDOS-Attack

How to find your server is under DDOS Attack

Here is a command line to run on your server if you think your server is under DDOS attack.  The commands given below prints out list of open connections on your server and sorts them by connection amount. RedHat: netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n BSD: netstat -na |awk ‘{print $5}’ |cut -d “.” -f1,2,3,4 |sort |uniq -c |sort -n You can also check for connections by running the following command. netstat -plan [...]

Read more...
Disable-Reverse-Lookups-In-QMail

Disable Reverse Lookups In QMail

Open /etc/xinetd.d/smtp_psa with your favourite text editor (vi, nano etc) Find the line that starts with server_args and add “-Rt0” after the equals sign like so: BEFORE: server_args = /usr/sbin/rblsmtpd -r sbl-xbl.spamhaus.org /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true AFTER: server_args = -Rt0 /usr/sbin/rblsmtpd -r sbl-xbl.spamhaus.org /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true Then save the file and issue: service xinetd restart; service qmail restart as root to restart qmail and apply the changes. Make sure nothing else is modified apart from this as qmail will start to break horribly. Cheers.

Read more...
How-To-Check-Plesk-mta-qmail-posftfix

How To Check Plesk MTA And How To Switch From QMail To Postfix And Back?

There are two MTA that are supported by Plesk since version 9: – Qmail – Postfix Each time, only one of them is used by Parallels Plesk Panel.The MTA that is currently used by Parallels Plesk Panel is shown on the Services management page at Home -> Services Management: SMTP Server (Postfix) or SMTP Server (QMail) And you can also check the through command line: /usr/local/psa/admin/sbin/mailmng --features | grep SMTP_Server $features[‘SMTP_Server’] = “QMail“; $features[‘SMTP_Server_package’] = “psa-qmail“; OR /usr/local/psa/admin/sbin/mailmng --features | grep SMTP_Server $features[‘SMTP_Server’] = “Postfix“; $features[‘SMTP_Server_package’] = “Postfix“; You can switch the MTA from Qmail [...]

Read more...
How-To-Manage-QMail-Queue-In-Linux-Plesk

How To Manage QMail Queue In Linux Plesk?

Plesk server uses qmail as a mail server. Following are some of the qmail commands for Plesk server. 1) To check the mail queue in plesk from command line, you can use the command : # /var/qmail/bin/qmail-qstat messages in queue: 10 messages in queue but not yet preprocessed: 0 2) You can examine the queue with qmail-qread. # /var/qmail/bin/qmail-qread 3) From the qread command you get the message’s id . In the above example , one of the id is 524514 . Now you can [...]

Read more...
Upgrade-MySQL-On-Plesk-CentOS-Linux

Upgrade MySQL On Plesk CentOS Linux

We had successfully upgraded from MySQL 5.0 to MySQL 5.1.47 along with PHP on one of our Plesk server. Please use this solution if you notice any package conflicts, or other concerns with using 5.1 in your environment. Like PHP, this will be a full change to the newer packages and the 5.0 series will be retired. The procedure is quite simple 1.) wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh 2.)  To upgrade: yum –enablerepo=atomic-testing upgrade MySQL That’s it,  And if you simply [...]

Read more...
ffmpeg-php-Compile-Error

ffmpeg-php Compile Error – Make: *** [ffmpeg_frame.lo] Error 1

If you are getting the following error while compiling the latest release of ffmpeg-php-0.6.0 , This will article will let you know how to get this fix. Error: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function âzim_ffmpeg_frame_toGDImageâ: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: âPIX_FMT_RGBA32â undeclared (first use in this function) /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.) /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function âzim_ffmpeg_frame_ffmpeg_frameâ: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: âPIX_FMT_RGBA32â undeclared (first use in this function) make: *** [ffmpeg_frame.lo] Error 1 Solution:- Under the ffmpeg-php-0.6.0 directory modify the file: ffmpeg_frame.c with nano or vi [...]

Read more...