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...
logical-volume-management1

How to Increase the Size of the Logical Volume ?

Follow the steps below to increase the size of the logical volume and allocate additional space on one of your partitions. Once logged in, type df -h at the command prompt and hit ENTER. The partition and logical volume sizes will be listed including the used disk space. In the image below, the var logical volume is 4GB. Assume that ~9GB of web content will be uploaded to the /var folder. The disk space needs to be increased before there [...]

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` If [...]

Read more...
Linux-server-services

Understanding Linux server services

Some common web related services running on a Linux server are, but not limited to, include: httpd (Apache), mysqld (MySQL), vsftpd (Very Secure FTP), named (BIND), iptables (packet filtering ruleset), sshd (Secure Shell), network (network related services) and various others. Usually these services are started at boot time. To check what services are installed on the server, you can use the chkconfig tool. For example: [root@server ~]# chkconfig –list sshd                  0:off    1:off    2:on    3:on    4:on    5:on    6:off webmin           [...]

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...
Install-SSL-On-Parallels-Plesk-Panel-10-And-Plesk-11

Install SSL On Parallels Plesk Panel 10 And Plesk 11

Log in to Parallels Plesk Panel as admin. If necessary, switch to Service Provider view From the Hosting Services menu, click Domains. Next to the domain name you want to use, click Open in Control Panel. Go to the Websites & Domains tab, and then click Secure Your Site with SSL Certificates. Under Certificate name, click the certificate you want to use. Next to the Certificate field, click Browse. Locate your signed CRT file, e.g., 24x7servermanagement.com.crt, and then click Open. Next to the CA certificate field, click [...]

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...