• Plesk MTAs – the Qmail and Postfix Mail Transfer Agents / SMTP mail servers

    Plesk usually uses either Postfix (new versions) or Qmail (old ones). To find out which one you’re currently using, run the following command via SSH: # /usr/local/psa/admin/sbin/mailmng –features | grep SMTP_Server A QUICK COMMANDS GUIDE FOR POSTFIX Show the email messages in Queue: # postqueue -p | tail -n 1 | cut -d’ ‘ -f5 List all messages currently in queue: # mailq To see the contents of an email in queue, including headers, use: # postcat -vq messageID *you can see the message ID in the queue To delete the messages in the queue: # postsuper -d ALL # postsuper -d […]

  • The plain HTTP request was sent to HTTPS port nginx

    The plain HTTP request was sent to HTTPS port nginx

    Getting annoyed by the error message displayed each time you forget to use https in your URL when trying to access th Plesk panel? The “400 Bad Request – The plain HTTP request was sent to HTTPS port” error is caused by a bug in the Parallels Plesk panel version 11.5, here is a quick fix for it: create a new file called zzz-myhost.conf  in /etc/sw-cp-server/conf.d/ and add the following line into it: error_page 497 https://panel.provider.com:$server_port$request_uri; (! replace panel.provider.com with your domain/sub-domain or IP address) Then restart sw-cp-server: # /etc/init.d/sw-cp-server restart  That’s it, a quicker way to do this in one line: # echo ‘error_page 497 https://panel.provider.com:$server_port$request_uri;’ […]

  • Quick commands guide for the vi / vim editor

    Vim is a text editor that you can use in Linux environments to create or edit files. There are two working modes in vim. One is the command mode and another is the insert mode. To enter text or edit any line, press the “i” key on your keyboard (the i stands for Insert). Once you’re done editing, you can exist this mode by pressing  the Esc key. Some usefull commands: :? – Search dd – Delete line p – paste below cursor u – Undo last change Exit Commands :wq Write file to disk and quit the editor :q! Quit (no warning) :q […]

  • Setting up the server hostname in Plesk 11.05

    Setting up the server hostname in Plesk 11.05

    Tools & Settings -> Server settings -> Full hostname 1) 2) 3) The hostname that you should choose has to be relevant for your server. If you have more than one domain hosted on your server, then you should choose the most important/defining one.

  • Ubuntu 8.04 alternative repositories – “Failed to fetch” error

    Since Ubuntu 8.04 is no longer supported, the original repositories no longer work. Ubuntu users will get an error like: Err http://mirrors.xx.com hardy/universe mc 1:4.6.1-8ubuntu1 404 Not Found [IP: xx.xx.xx.xx] Failed to fetch http://mirrors.xx.com/ubuntu/pool/universe/m/mc/mc_4.6.1-8ubuntu1_amd64.deb 404 Not Found [IP: xx.xx.xx.xx 80] E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing? Or from Plesk: Failed to fetch http://mirrors.xxx.com//ubuntu/dists/hardy/main/binary-amd64/Packages 404 Not Found [IP: xx… Ubuntu 8.04 users should upgrade to the latest version but in case that for whatever reason, this is not an option for them, they can try these: # Required deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted […]

  • Find out Apache/Mysql/PHP versions via SSH

    Apache: #httpd –v If Ubuntu try: #apache2 -v MySQL: On a server running Plesk: #mysql -uadmin -p`cat /etc/psa/.psa.shadow` >SELECT version(); On a server running WHM/cPanel: #mysql SELECT version(); PHP: #php –v Perl: #perl -v Python: #python -v

  • Move a WordPress based website from Shared to VPS

    Move a WordPress based website from Shared to VPS

    There comes a time when the website you’ve built has grown to big or you’ve added some features to it that a shared type of hosting package simply cannot cope with. The next step in these situations is to have the website moved over to a more powerful platform, in most cases this would be a VPS. We will try to cover in this article all the aspects related to such a task and we will use as example a website hosted by 123-reg on their shared hosting platform which we will be moving to one of their VPSs. Preparation […]

  • Fix WordPress redirect loops in Plesk

    Fix WordPress redirect loops in Plesk

    Have you just moved a WordPress based website onto your VPS running Plesk and can’t get rid of the redirect loop even after changing everything you can think of both in your WordPress settings and .htaccess? Well worry not my friend because this simple solution will most likely fix your website. 1) From your Plesk Panel select “Subscriptions”: 2) Select the domain you’re currently using and click on  “Open in control panel”: 3)Go to  “Hosting settings”: 4) Look for “Preferred domain” and select ‘none’: That should do it, save your settings and reload your website (hit CTRL+R a couple of […]

  • Plesk failed upgrades

    One of the main reasons that can cause upgrades to fail is “named” (the DNS Bind program), having its permissions changed so it cannot run. Check this and correct as below: [root@vps16505916 ~]# ls -la /etc/init.d/named -rwxr-xr-x 1 root root 7478 Jan 7 12:17 /etc/init.d/named [root@vps16505916 ~]# chmod 755 /etc/init.d/named Once done, try and run the update process again. This can be done by selecting ‘Updates and Upgrades’ from the ‘panel’ menu that is on the ‘Server’ tab or the Tools & Settings page if you are logged in as full administrator. Once you select the Upgrade link this will open […]

  • Plesk Panel for Linux – location of services logs and configuration files

    APPLIES TO: Parallels Plesk Panel 11.5 for Linux Services Control Panel Logs Error log: /var/log/sw-cp-server/error_log and /var/log/sw-cp-server/sw-engine.log Access log: /usr/local/psa/admin/logs/httpsd_access_log Panel log: /usr/local/psa/admin/logs/panel.log Services Stop: /etc/init.d/psa stop Start: /etc/init.d/psa start Restart: /etc/init.d/psa restart Configuration PHP config: /usr/local/psa/admin/conf/php.ini Panel config: /usr/local/psa/admin/conf/panel.ini Web server config: /etc/sw-cp-server/conf.d/plesk.conf Web Presence Builder Logs Error log: /usr/local/psa/admin/logs/sitebuilder.log Install/upgrade logs: /usr/local/sb/tmp/ No service control (working via sw-cp-server service) Configuration /usr/local/sb/config /etc/sw-cp-server/conf.d/plesk.conf /usr/local/psa/admin/conf/php.ini SSO Logs Error log: /var/log/sw-cp-server/error_log SSO log: /var/log/sso/sso.log Services No service control (works via sw-cp-server service) Manage settings: /usr/local/psa/bin/sso Configuration /etc/sso/sso_config.ini /etc/sw-cp-server/conf.d/sso.inc Backup Manager Logs Backup logs: /usr/local/psa/PMM/logs/backup-<datetime> Restore log: /usr/local/psa/PMM/logs/restore-<datetime> Functionality is controlled by Plesk control panel service Configuration /etc/psa/psa.conf Migration Manager Logs /usr/local/psa/PMM/logs/migration-<datetime> Functionality is controlled by Plesk control panel service. […]