Advertisement
Guest User

FunnelFlux - 1.6x Upgrade Instructions

a guest
Aug 9th, 2017
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. 1) To do a backup you need to obtain the database name for your FunnelFlux installation. You need to check ../includes/appConfig.php file under your installation directory to get your database name.
  2.  
  3. You need 50% disk space free after you perform the backup. You can first decide if you have enough disk space by checking your FunnelFlux database size (run in SSH prompt):
  4.  
  5. du -h /var/lib/mysql/DB_NAME
  6.  
  7. # where DB_NAME is the name of your FunnelFlux database. You can obtain your DB_NAME from "../includes/appConfig.php"
  8.  
  9. Another method is to run the following query on your FunnelFlux database and compute the size yourself:
  10.  
  11. SELECT
  12. table_schema as `Database`,
  13. sum( round(((data_length + index_length) / 1024 / 1024 / 1024), 2) ) `Size in GB`
  14. FROM information_schema.TABLES
  15. GROUP BY `Database`
  16. ORDER BY `Size in GB` DESC;
  17.  
  18. 2) In the SSH terminal perform the following for the database backup (where DB_NAME is the name of the database from appConfig.php from previous step) , then archiving and deleting the dump file (you can use other directory than /root).
  19.  
  20. cd /root
  21. mysqldump --routines DB_NAME > funnelflux_database_backup.sql
  22. tar cvzf funnelflux_database_backup.tgz funnelflux_database_backup.sql
  23. rm -rf funnelflux_database_backup.sql
  24.  
  25. 3) In the FunnelFlux installation directory (under your web server directory) you need to backup your installation files also. You can use a directory of your preference to move the backup archive. It's moved in /root in this directive (begin in the SSH prompt below):
  26.  
  27. tar cvzf funnelflux_installation_files_backup.tgz *
  28. mv funnelflux_installation_files_backup.tgz /root
  29.  
  30. 4) Done with the backup. Both backup archives reside in /root directory but you can modify this per your preference.
  31.  
  32. 5) Proceed with the upgrade below:
  33.  
  34. 6) Make sure you are running FunnelFlux version 1.5193 (you can check in the footer of your Admin dashboard) and the server has at least 50% disk space available after you performed full backups on database and installation files.
  35.  
  36. To check disk space you can run (in the SSH prompt):
  37.  
  38. df -h
  39.  
  40. 7) Check the IonCube to be at least 6.0.9 and perform an upgrade (run in SSH prompt):
  41.  
  42. php -v
  43.  
  44. example guide: https://www.rosehosting.com/blog/install-ioncube-loader-on-centos-7/
  45.  
  46. 8) You need to check that there's no reset / cost update / conversion update background job not completed yet before replacing the files! Check under FunnelFlux admin dashboard to make sure all background jobs completed!
  47.  
  48. 9) Download the latest version.Go to your FunnelFlux original installation directory (under your web server directory):
  49.  
  50. wget http://www.funnelflux.com/1.6.zip
  51.  
  52. 10) Make a note of what are the original file/folder ownership under your FunnelFlux installation directory (will be used below for ORIGINAL_USER:ORIGINAL_GROUP to be restored):
  53.  
  54. ls -la
  55.  
  56. 11) Unzip and overwrite the original FunnelFlux files with the new archive:
  57.  
  58. unzip 1.6.zip
  59.  
  60. 12) Make sure file permissions/ownership are restored for the whole new overwritten files (under your FunnelFlux installation directory):
  61.  
  62. chown ORIGINAL_USER:ORIGINAL_GROUP * -R
  63.  
  64. 13) Under your FunnelFlux installation directory , go to "admin/tools/" folder and run:
  65.  
  66. php upgrade1600.php
  67.  
  68. 14) Run file folder permission fix again after the installation (step 12)
  69.  
  70. 15) After the upgrade is successfull, run query on your FunnelFlux database(in the SSH prompt):
  71.  
  72. mysql YOUR_DB_NAME
  73. ==> delete from meta where meta_key = 'latest-maxmindisp-download';
  74.  
  75. 16) Check your new upgraded Admin dashboard to see if your installation went successful. Please allow sufficient time for the background jobs to complete re-caching for stats to start to appear.
  76.  
  77. 17) If you need to restore the files from the backups you need to replace-overwrite the files in your FunnelFlux installation folder (with the backup archive made from first steps) and then import the decompressed database dump into a new database (or you can reuse your existing database by first clearing it).
  78.  
  79. If you are using a new database for the restore - you need to update "../includes/appConfig.php" file with the new database access credentials.
  80.  
  81. That's it!
  82.  
  83. If you have any questions please reach out to our support@funnelflux.com who can assist with any upgrade and checking your server requirements.
  84.  
  85. Our tech support are more than willing to help other tech admins with the upgrade process and with any relevant questions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement