πŸ“˜ Oempro Upgrade (v4.10.0+, Docker)

If you are going to upgrade your Oempro v4.10.0+ Docker version to the most recent version, please follow these instructions:

  1. First, upload the latest Oempro version zip file to your server. (/opt/oempro/)
  2. Backup your MySQL database
  3. Backup your Oempro directory (/opt/oempro/)
  4. Change current directory into Oempro:
     cd /opt/oempro/
    
  5. Stop Docker containers:
    docker-compose kill
    
  6. Take a backup of _dockerfiles directory. Especially, haproxy.cfg file as it may include modified SSL certificate directives.
    cp /opt/oempro/_dockerfiles/haproxy.cfg /opt/oempro/_dockerfiles/haproxy.cfg.bck
    
  7. Unzip the Oempro zip package. ZIP may ask you what to do for existing files. Choose β€œReplace All” option.
  8. Revert the backup HAProxy config file:
    cp /opt/oempro/_dockerfiles/haproxy.cfg.bck /opt/oempro/_dockerfiles/haproxy.cfg
    
  9. Pull latest Docker updates:
    docker-compose pull
    
  10. Build Docker containers:
    docker-compose build
    
  11. Start the Docker compose:
    docker-compose up -d
    
  12. Open your web browser and go to the upgrade utility to perform the last upgrade task. The upgrade tool can be executed via the following URL:
    https://app.yourdomain.com/install/upgrade.php
    
  13. This step should be done if Oempro is already installed. Skip this step if there’s no update on the .env file. SSH into oempro_system container to perform a pre-upgrade process:
    docker exec -ti oempro_system bash
    cd /var/www/html/install/
    php phing.phar -f install.xml
    
  14. Exit to the host machine
  15. Restart supervisor processes in containers:
    docker exec -ti oempro_app supervisorctl restart all
    docker exec -ti oempro_system supervisorctl restart all
    docker exec -ti oempro_bounce supervisorctl restart all
    
  16. Set file permissions just to be sure:
    chmod -R 0777 /opt/oempro/data/
    chmod -R 0777 /opt/oempro/system/storage/
    chmod -R 0777 /opt/oempro/system/bootstrap/cache/
    

If you need help or stuck, feel free to contact us via support@octeth.com

  • The article was helpful
  • The article was not helpful

0 voters