Category: Plesk Toggle Comment Threads | Keyboard Shortcuts

I love Plesk – it’s a work of art that makes my life easier. Rather than a “programme” as such, it’s a web interface that takes control of several thousand services on a web server and makes administering domains and hosting a breeze.

Since 2012 I’ve been a certified Parallels Plesk Automation Technician.

  • Jay Versluis 9:24 am on May 24, 2018 Permalink | Reply
    Tags:   

    Categories: Linux ( 101 ), Plesk   

    How to switch off emails from Anacron in Plesk Onyx 

    In 2011 I wrote an article about how to avoid emails from Dr. Web. In it I was discussing how to switch off these notifications, which are generated when the Dr. Web service updates itself.

    Here’s an example:

    /etc/cron.daily/drweb-update:
    
    Dr.Web update details:
    Update server: http://update.msk5.drweb.com/plesk/700/unix
    Update has begun at Fri May 18 03:53:47 2018
    Update has finished at Fri May 18 03:53:54 2018
    
    Following files have been updated:
     /var/drweb/bases/drwdaily.vdb
     /var/drweb/bases/drwtoday.vdb
     /var/drweb/bases/dwmtoday.vdb
     /var/drweb/bases/dwntoday.vdb
     /var/drweb/bases/dwrtoday.vdb
     /var/drweb/bases/timestamp
     /var/drweb/updates/timestamp

    Sadly, as of 2018, there is still no way to switch these emails off via a tick box from inside Plesk. It was relatively simple though to redirect the output to /dev/null in Linux, thereby avoiding yet another email in our already overflowing inbox.

    In the latest version of Plesk, the earlier approach is no longer working.

    Instead, we can tweak the Dr. Web configuration file at /etc/drweb/drweb32.ini. In the Updater section, find the following block of code:

    # CronSummary = {Boolean}
    # Enables output of update session log to stdout.
    CronSummary = yes

    Now change the CronSummary value to no and restart the Dr. Web service. On CentOS it’s called drwebd:

    systemctl restart drwebd

    This will ask Dr. Web to not send us an email when he updates himself. The great thing about this solution is that we can still get command line output if we want to run the service manually.

    However, if the service is updated in the future, those emails may re-appear because it’s likely that our configuration file may be overwritten. Only time will tell I guess!





     
  • Jay Versluis 9:56 am on May 16, 2018 Permalink | Reply  
    Categories: Plesk   

    How to hide the Promo Box in Plesk Customer View 

    There’s a small Promo Box on the right hand side in Plesk’s Customer View. This box can be a little confusion for users – especially when it shows products and extensions with highly cryptic names. Here’s an example:

    Lucky for us, there’s an easy way to remove it. All we need to do is create a vile called /usr/local/psa/admin/conf/panel.ini and add the following content to it:

    [promos]
    ; Disable other products promotions
    
    enabled = off

     

    This file is read by Plesk every time the panel loads, telling Plesk what to display in the admin interface. With the above command, the Promo Box is suppressed.

    There’s no need to restart anything, simply reload the page in your web browser and the box will be gone.





     
  • Jay Versluis 9:54 am on May 13, 2018 Permalink | Reply
    Tags: ,   

    Categories: Plesk   

    How to hide the social links at the bottom of Plesk 

    By default, Plesk displays several links in its footer. Two of them are links to Plesk’s Facebook and Twitter pages.

    Sometimes less is more, and thankfully there’s an easy way to suppress those links if we don’t want to see them anymore.

    Simply create a file called /usr/local/psa/admin/conf/panel.ini and add the following content to it:

    ; Hide Like link
    
    showLikeLink = off
    
    [twitter]
    ; Hide the Follow Us link
    
    showFollowLink = off

    Plesk reads this file every time the admin interface is displayed, and if it finds the above instructions, those links won’t be printed.

    There’s no need to restart anything, simply refresh your Plesk page in the browser and those links are gone.

    For more configuration options, take a look at the included /usr/local/psa/admin/conf/panel.ini.sample file.





     
  • Jay Versluis 9:14 am on May 12, 2018 Permalink | Reply  
    Categories: Plesk   

    Testing Incremental Backups in Plesk Onyx 

    From time to time I get crazy ideas, and last week that crazy ideas was to test how well incremental backups can be restored in the latest version of Plesk. Specifically I wanted to know how Plesk would react in times of a crisis, which usually happens at the worst of times.

    Up until recently I’ve always done full backups – but incremental backups are a lot more space saving on the target device, plus it reduces the load on the server and data traffic significantly. Let’s see what these incremental backups are all about.

    Wikipedia suggests that after a full backup, each increment needs to be available to make a restore.  This would indicate that deleting one backup in the middle (simulating a failed backup) would mean the restore would fail.

    But how does Plesk work, and how would it react if we’d take away an increment in the middle? Would it indeed need all incremental parts to rebuild a backup? Or would it always refer to the full backup and write its increments accordingly? Let’s find out!

    I’m using a test system on a CentOS 7.5 server, with Plesk Onyx 17.8 installed. I have a test domain with a default WordPress instance, but it’s not doing much at the moment and could probably do with a quick facelift if anything.  (More …)





     
  • Jay Versluis 5:29 pm on May 4, 2018 Permalink | Reply  
    Categories: Plesk   

    How to remove the Promo Box in Plesk Service Provider View 

    A few years ago, when Plesk started supporting Extensions, I gave a talk together with Any Kugaevskiy from at Parallels Summit in New Orleans. My part was about how to get started with Plesk Extensions in general.

    As a demo project, I removed the big blue promo box in Plesk Service Provider View – and only last week I remember that I’ve never made that project public. It’s about time I thought, and quickly created a GitHub repo to share it with the world.

    But then I thought, I best make a video to show people how to use this thing – so here it is. In the above screencast I’ll show you how to install the extension in Plesk Onyx 17.2 and how it looks with and without it. You can download the Extension here:

    All you need is the ZIP file that’s part of the repo. Upload it to your Plesk Server (under Extensions – My Extensions), then enable it and enjoy an promo free home screen experience.

    If you want to try your hand at writing your own Plesk extension, have a look at my article from 2014 (as mentioned in the video):

    The presentation Andy and I gave at Parallels Summit that year can be found here:

    Enjoy!





     
  • Jay Versluis 10:25 am on May 3, 2018 Permalink | Reply  
    Categories: Plesk   

    How to unlock subscriptions in Plesk Onyx 

    When parameters for a subscription in Plesk have been modified, Plesk may lock them. This means that when a change is made to the service plan itself, locked subscriptions are not updated by default.

    To unlock subscriptions and re-integrate them into the service plan, head over to the subscription in question (from the Subscriptions list in Service Provider View), then on the right hand side find the widget that reads Account.

    At the bottom, there’s an “unlock and sync” option. Click that and the subscription will be unlocked and synced with the service plan it was once part of.

    Why are subscriptions locked in the first place?

    Good question! One example is this: imagine you had a specific version of PHP as the default on your service plan. Say PHP 7.2. But then, some subscriptions use content that’s not compatible with that version of PHP and instead require version 5.6. No trouble, you’ll just change it in that particular subscription and all is well.

    Until you decide that some other parameter needs to be changed on that service plan – say the amount of webspace or the number of databases. If you were to sync all subscriptions on that plan with the new default parameters, then the default version of PHP would also be synced and set to 7.2 – which would break the subscription’s content and make one of your customers unhappy.

    Locking a subscription means this subscription is “exempt” from syncing, which means all other subscriptions can get the new parameter, leaving you to deal with the locked subscription individually (and – more importantly – without breaking it).





     
  • Jay Versluis 9:15 am on March 21, 2017 Permalink | Reply  
    Categories: Linux ( 101 ), Plesk   

    How to reset the admin password in Plesk Onyx 

    It’s not pretty when it happens, but it happens to the best of us: you forget the admin password for your Plesk Onyx installation.

    In previous versions there was an option to retrieve this password via the command line, but that special command has been removed in Onyx for security reasons.

    So what can we do? Well luckily it’s relatively easy to reset the password to something else, or gain temporary access to the server quickly. Let me show you how. (More …)





     
  • Jay Versluis 6:33 pm on December 7, 2016 Permalink | Reply
    Tags: Plesk Onyx   

    Categories: Plesk   

    How to manage Git Repositories in Plesk Onyx 

    In this video I’ll show you how to manage Git repositories from Plesk Onyx, using the new Git Extension.

    We’ll setup a new repo in Plesk, check it out via the command line and make subsequent commits using the Github for Desktop client.

    Enjoy!





     
  • Jay Versluis 9:53 am on December 3, 2016 Permalink | Reply
    Tags:   

    Categories: Plesk, Screencast ( 87 ), WordPress ( 144 )   

    How to install a free SSL Certificate in Plesk Onyx 

    In this video I’ll explain how to add a free SSL Certificate for web traffic in Plesk Onyx.

    First we’ll enable the Let’s Encrypt extension in Plesk, then we’ll create the certificate and prepare our subscription for SSL traffic. And finally, we’ll tweak two values in the WordPress database so that all requests will be directed to https rather than http.

    Note that Let’s Encrypt SSL Certificates can only be used to encrypt web traffic between your server and a client’s browser. They cannot currently be used to secure email or Plesk itself (but who knows what the future holds).

    Enjoy!





     
    • Brad M 1:44 pm on February 21, 2017 Permalink | Reply

      Thank you! Had a hiccup on the WP portion. Appreciate it 🙂

  • Jay Versluis 12:57 pm on March 27, 2016 Permalink | Reply
    Tags: ,   

    Categories: Linux ( 101 ), Plesk   

    How to fix “MLSD unable to build data connection” in ProFTP 

    Filezilla IconI’ve come across an odd problem today on a server that’s been working fine for all kinds of FTP traffic for many years. Turns out that today, FileZilla started complaining about explicit TLS connections (when available) and gave the following error message:

    425 MLSD unable to build data connection: operation not permitted

    Clients could still connect, but no directory content was displayed, nor was uploading new files possible. Rats, I thought. This was on a CentOS 6 server with Plesk 12 running without a hitch otherwise.

    Turns out that by default, ProFTP is configured to re-use TLS sessions – but it appears that this behaviour freaks out FileZilla, which in turn doesn’t like it and throws an error instead. This did not affect plain (non-secure) sessions.

    Thankfully, Adam Stohl knows the answer to this problem: tell ProFTP not to re-use TLS sessions. Open /etc/proftp.conf and add the following line to the bottom of the file:

    TLSOptions NoSessionReuseRequired

    The ProFTP service in Plesk is part of xinetd, so for those changes to take effect, simply restart it with this:

    service xinetd restart

    And voila, TLS connections can happen again. Thanks, Adam – you’re a life saver!

     





     
    • flavienb 11:35 am on February 14, 2018 Permalink | Reply

      Thank you very much =)

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel