• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Resolved Allow enabling nginx cache on all existing domains on the Plesk server ?

mahmut ozdemir

Basic Pleskian
Hello

I suggest adding a feature that allows you to do the equivalent of what can be done in Plesk Obsidian 18.0.21 in Domains > example.com > Apache & Nginx settings > "Enable nginx caching" but for all the existing domains that are on the Plesk server at once.

Essentially, the feature suggestion is to "Enable nginx caching" but for all the domains on the server.

How to activate nginx FastCGI cache for all domains?

???
 
Just use command like:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription -u $i -nginx-cache-enabled true; done
 
Just use command like:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription -u $i -nginx-cache-enabled true; done



unfortunately not


[root@static ~]# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription -u $i -nginx-cache-enabled true; done
SUCCESS: Update of domain 'aureole.clothiesly.com' completed.
SUCCESS: Update of domain 'baile.clothiesly.com' completed.
SUCCESS: Update of domain 'baliegh.clothiesly.com' completed.
SUCCESS: Update of domain 'barbee.clothiesly.com' completed.
SUCCESS: Update of domain 'basbadi.com' completed.
SUCCESS: Update of domain 'boles.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'carmen.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'clot.clothiesly.com' completed.
SUCCESS: Update of domain 'clothiesly.com' completed.
SUCCESS: Update of domain 'daniela.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'dedec.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'dhors.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'downey.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'dozier.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'ellston.clothiesly.com' completed.
SUCCESS: Update of domain 'elric.clothiesly.com' completed.
SUCCESS: Update of domain 'elston.clothiesly.com' completed.
SUCCESS: Update of domain 'elsvorth.clothiesly.com' completed.
SUCCESS: Update of domain 'elvin.clothiesly.com' completed.
SUCCESS: Update of domain 'elvyn.clothiesly.com' completed.
SUCCESS: Update of domain 'emmanual.clothiesly.com' completed.
SUCCESS: Update of domain 'getz.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'jacki.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'jeren.clothiesly.com' completed.
SUCCESS: Update of domain 'laveta.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'malika.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'masmar.clothiesly.com' completed.
SUCCESS: Update of domain 'mast.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'mayola.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'mchel.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'petra.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'reanna.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'rebecca.clothiesly.com' completed.
SUCCESS: Update of domain 'redfun.clothiesly.com' completed.
SUCCESS: Update of domain 'ronni.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'stern.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'stylishdekoration.com' completed.
SUCCESS: Update of domain 'waller.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'wesley.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'yourstylishclothing.com' completed.
[root@static ~]#

Enable nginx caching promlem :(


777.PNG
 
Sorry, my mistake. Command should be

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription --update-web-server-settings
$i -nginx-cache-enabled true; done
 
Sorry, my mistake. Command should be

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription --update-web-server-settings
$i -nginx-cache-enabled true; done

Süper thansk :)
 
Back
Top