• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Upgrade application(Wordpress) that is already installed into a subdomain to latest V

RobertNic

New Pleskian
Hello,

I am trying to create a bash script that will upgrade to the latest version an existing installed wordpress application from a subdomain /var/www/vhosts/domain.com/sub.domain.com/wordpress/
Does anyone know if this can be done via command line ( SSH ) ?

Also , I want to point out that I`ve looked at the documentation page regarding the command /usr/local/psa/bin/aps , if someone knows how to install an application to a subdomain (/var/www/vhosts/domain.com/sub.domain.com/wordpress/ ) usingg this command or something similar I would really appreciate an example on how to use that command to achieve my needs

Basically what i`m trying to do with this BASH script is to scan all hosted domains if they are using wordpress and if yes , install a fresh wordpress on my development subdomain with the name of that domain ex : /var/www/vhosts/mydomain.com/dev.mydomain.com/domainwithwordpress1.com , /var/www/vhosts/mydomain.com/dev.domain.com/domainwithwordpress2.com and then copy the wp-content/ folder from the hosted domainwithwordpress1.com and domainwithwordpress2.com to my development subdomain fresh installed wordpress and then clone the databases for each one of them .

All I need to do to my Bash script is to find a away to create a fresh install wordpress application to my development subdomain from the command line as I would do it from the web interface .

If anyone could help me with an exaple or what command exactly should I use in my bash script to install a "fresh" application to a subdomain I would appreciate it
 
Last edited:
Back
Top