• DevOps
    Case Study

    How we helped a development company rebuild DevOps for efficiency and scale.

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How a US hosting leader scaled with us!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    Enabling financial grade platforms through strategic cloud modernisation.

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Managed Services Overview
  • Kubernetes Consulting
  • DevOps as a Service
  • Infrastructure Monitoring
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Services
  • Managed Services

aws partneraws advanced partner
LinkedInFacebookXInstagramYouTube
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy

WordPress Upgrade or Reinstall using SSH

Author Profile
Felix
  • 4 min read
WordPress Upgrade or Reinstall using SSH

Generating audio, please wait...

Automated WordPress upgrade may not work always. In such cases, we may need to do WordPress upgrade manually or reinstall the existing installation and perform it as a step by step process.

Sometimes a failed upgrade or file corruption may occur in your current installation. You can follow the below steps for resolving such issues also.

Here I am trying to explain the steps involved with manual WordPress upgrade without affecting the websites contents.

Before proceeding take necessary precautions to avoid a data loss.

Take a backup of the website including its files and database before proceeding.

 

Legend

WordPress Domain’s document root :  /home/felix/public_html/mydomain/

Extracted WordPress directory from WordPress package ‘ latest.zip ‘ :

/home/felix/public_html/mydomain/wordpress

Requirements

SSH access to your website’s document root.

 

Steps to be followed

1. Download the latest WordPress package ‘ latest.zip ‘ in the Domain’s document root.

In this example its ‘ /home/felix/public_html/mydomain/ ‘ .

root@training1 [/home/felix/public_html/mydomain]
# wget --no-check-certificate http://wordpress.org/latest.zip
100%[============================================================================================>;] 6,586,773 1.86M/s in 3.5s
2014-12-16 20:48:18 (1.78 MB/s) - “latest.zip” saved [6586773/6586773]

Extracted directory would be in the name ‘wordpress/’ .

root@training1 [/home/felix/public_html/mydomain]# unzip latest.zip

root@training1 [/home/felix/public_html/mydomain]# ll -d wordpress
drwxr-xr-x 5 root root 4096 Dec 16 20:55 wordpress/

2. Rename the wp-content Folder in the extracted directory ‘ wordpress/ ‘ so that the current one doesn’t get replaced.

 
root@training1 [/home/felix/public_html/mydomain]# cd mywordpress/ 
root@training1 [/home/felix/public_html/mydomain/mywordpress]
# mv wp-content/ wp-content.default 

3. Take a backup of your db. You can use PhpMyAdmin or mysqldump for the process


#mysqldump dbname > dbname.sql;

4. Copy Files/Folders from new ( wordpress/ ) to old WP installation ( mydomain/ ) .

root@training1 [/home/felix/public_html/]
# /bin/cp -Rv mydomain/wordpress/* mydomain/ 

Using the command ‘ /bin/cp ‘ will forcefully copy without asking for confirmation so be cautious

5.  Finally you can execute the following command to ensure all the Files/Folders are in the right ownership. ( Note that felix is the user in this example )

 
root@training1 [/home/felix/public_html]
# chown -R felix.felix mydomain/* 

7. If you had an older WordPress version in the domain, you can see the following page when accessing the website or when logging into WordPress Admin since it has been upgraded.

wordpress

6. Just click the update button and you will see the below confirmation page.

wordpress2

You have re-installed WordPress successfully 🙂

 

Theme/Plugin Issues

7. You can see  two ‘ wp-content ‘ folders in your document root.

root@training1 [/home/felix/public_html/mydomain]# ll
wp-content/
wp-content.default/ 

Here wp-content.default is the default one which we downloaded earlier. Sometimes you may experience issues with the current theme or plugins.

If the existing installation is configured with default themes/plugins which throws errors, you may replace theme/plugin folders with the corresponding folders present in the wp-content.default/ folder.

root@training1 [/home/felix/public_html/mydomain]
# /bin/cp -Rv wp-content.default/* wp-content/

If you are having issues in Custom Themes, you may have to re-upload them. Note that when re-installing theme/plugin, custom settings may get lost.

Get Dedicated Webhosting Support Team

  • Linux
  • WordPress

Conversion of string from lower to upper cases

Conversion of string from lower to upper cases
  • Howtos
  • Linux
  • Troubleshooting
logo

cPanel: Account restore fails – cpmod: CleanPanel

cPanel: Account restore fails – cpmod: CleanPanel
  • cPanel
  • Linux
logo

cPanel: Licence Verification

cPanel: Licence Verification
  • cPanel
  • Linux
  • Troubleshooting
logo

Direct Admin login failure: “Consider disabling the Folder Usage Count”

Direct Admin login failure: “Consider disabling the Folder Usage Count”
  • Howtos
  • Troubleshooting
logo
WordPress Upgrade or Reinstall using SSH

Posts by Felix

Firaz has been in the Web Hosting industry since 2012. He is always fascinated in resolving complicated DNS, cPanel and other Web hosting issues. He loves to help newbies to climb the hill from a fresher to an experienced System admin. Movies and songs are his favourite passtime.