• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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