WordPress.org

Forums

How to update the plugin/software of the local wordpress site. (19 posts)

  1. satimis
    Member
    Posted 1 year ago #

    Hi all,

    I have Live wordpress sites download to local server. They are running locally similar to the former. However I couldn't figure out how to update/upgrade the plugin/software upon request. On running one/two local site(s) a big red-mark displayed requesting to update the plugin. On clicking the mark the "Update Plugins" window popup.

    Hostname
    FTP Username
    FTP Password
    Connection Type - FTPS / FTPS(SSL)

    Please shed me some light how to complete the details there? Thanks

    Rgds
    satimis

  2. esmi
    Forum Moderator
    Posted 1 year ago #

  3. satimis
    Member
    Posted 1 year ago #

    Hi,

    Thanks for your link.

    I went through the tutorial;
    WordPress Tutorial: Using SSH to Install/Upgrade
    http://wpforce.com/wordpress-tutorial-ssh-install-upgrade/

    But I could not find SSH on the "Connection Information", only FTP and FTPS(SSL) there.

    Where can I find their tutorials. Thanks

    Rgds
    satimis

  4. Jesin A
    Member
    Posted 1 year ago #

    If you are running these sites on a Linux server I would suggest changing the ownership of the document root to the web server user (www-data, apache or nobody) so that you don't have to enter any FTP or SSH details.

  5. ClaytonJames
    Member
    Posted 1 year ago #

    @satimis

    If you are still using Debian, what happens if you just do this:

    apt-get install php-pear openssh-server libssh2-php

    service apcahe2 restart

    See if that turns on the SSH2 option in the connection options.

  6. satimis
    Member
    Posted 1 year ago #

    Jesin A,

    Thanks for your advice.

    This local site was download on the Live site hosted on Godaddy. It works similar to the Live site. But I'm not prepared to make it "live". After having completed the test I'll prepare making it as mirror of the Live site. I'm still searching for documentation of the setup.

    satimis

  7. satimis
    Member
    Posted 1 year ago #

    Hi ClaytonJames,

    Thanks for your advice.

    I'm running Linux Mint 16 here which is based on Debian.

    $ apt-cache policy php-pear openssh-server libssh2-php

    php-pear:
      Installed: 5.5.3+dfsg-1ubuntu2.1
      Candidate: 5.5.3+dfsg-1ubuntu2.1
      Version table:
     *** 5.5.3+dfsg-1ubuntu2.1 0
            500 http://archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
            500 http://security.ubuntu.com/ubuntu/ saucy-security/main amd64 Packages
            100 /var/lib/dpkg/status
         5.5.3+dfsg-1ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
    
    openssh-server:
      Installed: 1:6.2p2-6ubuntu0.1
      Candidate: 1:6.2p2-6ubuntu0.1
      Version table:
     *** 1:6.2p2-6ubuntu0.1 0
            500 http://archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
            500 http://security.ubuntu.com/ubuntu/ saucy-security/main amd64 Packages
            100 /var/lib/dpkg/status
         1:6.2p2-6 0
            500 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
    
    libssh2-php:
      Installed: 0.11.3-0.1build2
      Candidate: 0.11.3-0.1build2
      Version table:
     *** 0.11.3-0.1build2 0
            500 http://archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
            100 /var/lib/dpkg/status

    $ service apache2 restart
    * Restarting web server apache2 [fail]

    Apaches is still running. On browser;
    /localhost/wordpress
    displaying the local site.

    Edit
    ====
    After re-boot on browser;
    http://localhost/wordpress
    still displays the site download.

    $ sudo service apache2 restart

    * Restarting web server apache2                                            AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
                                                                         [ OK ]

    satimims

  8. Jesin A
    Member
    Posted 1 year ago #

    Execute the following command to grant ownership on your document root

    chown -R www-data:www-data /var/www

    Now you won't be prompted for FTP/SSH credentials when updating WordPress.

  9. satimis
    Member
    Posted 1 year ago #

    Hi Jesin A,

    Thanks for your advice.

    Performed following steps;
    $ sudo chown -R www-data:www-data /var/www
    [sudo] password for satimis:

    On browser;
    http://localhost/wordpress
    starts the webpage -> login

    Update Plugins:-
    Contact Form 7
    Jetpack by WordPress.com
    mb.miniAudioPlayer

    -> Return to Plugins pages

    I got it done. Thanks.

    Have you had any idea converting the local site as mirror of the Live Site hosted on Godaddy?. Pointer would be appreciated.

    Rgds
    satimis

  10. Jesin A
    Member
    Posted 1 year ago #

    Upload the local site to GoDaddy via FTP, export your local DB and import it to GoDaddy, edit the DB details in the wp-config.php file and you are done. And change your WordPress & Site URL (Settings > General) locally before uploading.

    Read more here - http://codex.wordpress.org/Moving_WordPress

  11. satimis
    Member
    Posted 1 year ago #

    Hi Jesin A,

    I already have a Live site running on Godaddy. The local site was cloned on the Live site. I expect running the local site on local server working as mirror of the Live site.

    I found following article;
    How to Set Up a Mirror WordPress Site
    http://www.ehow.com/how_7421377_set-up-mirror-wordpress.html

    It needs the mirror site running on subdomain of the Live. But the Live is already running on subdomain. I can't figure out creating a subdomain on another subdomian?

    Rgds
    satimis

  12. Jesin A
    Member
    Posted 1 year ago #

    That link merely explains creating another copy of WordPress on your live hosting server. What is the purpose of mirroring the site locally? Do you want to sync the local site periodically with the live one?

  13. satimis
    Member
    Posted 1 year ago #

    Do you want to sync the local site periodically with the live one?

    Yes sync instantly

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    You do realise that you cannot sync WordPress sites like this, don't you?

  15. satimis
    Member
    Posted 1 year ago #

    Hi esmi,

    I know this is a local site. But I can reinstall it as a Live site. I'm subscribing Static (Fixed) IP with 6M/6M up_n_down speed. I'm now searching for document. Are following document be relevant for my use?

    How to Sync A Local & Remote WordPress Blog Using Version Control
    http://wp.tutsplus.com/tutorials/how-to-sync-a-local-remote-wordpress-blog-using-version-control/

    How to: WordPress Sync Blog Between Two Sites
    http://www.ehow.com/how_8456655_wordpress-blog-between-two-sites.html

    Thanks

    satimis

  16. Jesin A
    Member
    Posted 1 year ago #

    I know this is a local site. But I can reinstall it as a Live site. I'm subscribing Static (Fixed) IP with 6M/6M up_n_down speed.

    Are you planning to migrate your site from GoDaddy to your own server?

    What hosting solution are you using on GoDaddy? Shared, VPS or Dedicated? If it is VPS/dedicated you can use Tuts plus's solution.

    From the Tuts plus article

    The version control tool must be installed in both your local and remote machines.

    You cannot do this on a shared hosting package.

    ehow's solution makes use of the WP-O-Matic plugin, this plugin uses RSS which means it will only sync pages & posts. Theme changes, plugin installation/uninstallation, file uploads will NOT be synchronized.

  17. satimis
    Member
    Posted 1 year ago #

    Hi Jesin A,

    Are you planning to migrate your site from GoDaddy to your own server?

    No. At least for the time being. I already paid one year subscription in advance.

    What hosting solution are you using on GoDaddy?

    Share hosting.

    From the Tuts plus article

    The version control tool must be installed in both your local and remote machines.

    You cannot do this on a shared hosting package.

    Can I run 2 VMs for this test? I perform all tests on VM. In case of failure I just delete the VM and clone another new VM to continue the test.

    In another thought I only have ONE static IP. Is it possible to conduct this test? Several years ago I succeeded making one Static IP serving several email/web servers running on VM. IIRC I made use of Perdition. I have to dig the info from my database.

    My ultimate interest is to setup a mirror on local server for my Live site hosted on Godaddy.

    Thanks

    satimis

  18. Jesin A
    Member
    Posted 1 year ago #

    Can I run 2 VMs for this test?

    I assume you want to setup a WordPress site load balanced across two VMs in a test environment. Instead of using version control as described in that article, the HyperDB plugin can be used for database replication and configure lsyncd to synchronize uploads.

    In another thought I only have ONE static IP. Is it possible to conduct this test?

    Yes you can, you need to configure the virtualization software to use NAT as the networking method.

  19. satimis
    Member
    Posted 1 year ago #

    Hi Jesin A,

    I assume you want to setup a WordPress site load balanced across two VMs in a test environment. Instead of using version control as described in that article, the HyperDB plugin can be used for database replication and configure lsyncd to synchronize uploads.

    Yes. That is the test planned by me. Thanks for your links. I'll come back after the test.

    Yes you can, you need to configure the virtualization software to use NAT as the networking method.

    My PC is behind router. Several year back I made a test using Perdition distributing mails to respective servers. IIRC, A VM ran MySQL solely for distributing. All servers were using same Static IP connected to outside world. It worked. Is there any alternative way? Pointer would be appreciated.

    By the way is there a simply way converting the local site to Live? Rather than build a Live site on local server and export the local site to it. Thanks

    Rgds
    satimis

Topic Closed

This topic has been closed to new replies.

About this Topic