BASH   86
upgrade php 5.6
Guest on 29th April 2022 05:17:28 AM


  1. ############# Upgrade Debian 8 PHP 5.6
  2. cat /etc/php5/apache2/php.ini
  3.  
  4. cd /etc/php5/apache2
  5. mv php.ini php.ini-old
  6. wget appservhosting.com/tmp/up56/php.ini
  7. ### Change ns opcode
  8. pico /etc/php5/apache2/php.ini
  9.  
  10. cd /etc/apt
  11. rm sources.list
  12. wget appservhosting.com/tmp/up56/sources.list
  13. apt-get update
  14. apt-get dist-upgrade -d
  15.  
  16. cd /etc/
  17. mv script-adm stop-script-adm
  18. killall -9 /usr/bin/php
  19. apt-get dist-upgrade
  20.  
  21.  
  22. apt-get autoremove
  23.  
  24.  
  25. ####### Complete & Loading New Config
  26. cd /etc/php5/cli
  27. mv php.ini php.ini-old
  28. wget appservhosting.com/tmp/up56/php.ini-cli
  29. mv php.ini-cli php.ini
  30. cd /etc/courier/
  31. mv authdaemonrc authdaemonrc.old
  32. wget appservhosting.com/tmp/up56/authdaemonrc
  33. cd /etc/proftpd/
  34. mv modules.conf modules.conf.old
  35. wget appservhosting.com/tmp/up56/modules.conf
  36. cd /etc/apache2
  37. rm apache2.conf
  38. wget appservhosting.com/tmp/up56/apache2.conf
  39. cd /etc/apache2/mods-available
  40. rm mpm_prefork.conf
  41. wget appservhosting.com/tmp/up56/mpm_prefork.conf
  42. cd /etc/apache2/mods-available
  43. rm status.conf
  44. wget appservhosting.com/tmp/up56/status.conf
  45.  
  46.  
  47. cd /etc/
  48. mv stop-script-adm/ script-adm
  49. cd /etc/cron.d
  50. mv php5.dpkg* php5
  51. cd /etc/cron.daily
  52. rm mlocate*
  53. cd /etc/logrotate.d
  54. mv  apache2.dpkg-dist  apache2
  55. cd  /etc/fail2ban
  56. rm jail.conf
  57. wget appservhosting.com/tmp/jail.conf
  58. /etc/init.d/fail2ban restart
  59.  
  60. cd /etc/init.d
  61. rm apache2
  62. wget appservhosting.com/tmp/up56/init-apache2
  63. mv init-apache2 apache2
  64. chmod 755 apache2
  65. /etc/init.d/apache2 restart
  66. /etc/init.d/bind9 restart
  67. apt-get install sysvinit-core systemd-shim systemd
  68.  
  69. #### VHCS Fix FTP Password Crypt Function
  70. cd /home/www/vhcs2/gui/include
  71. rm calc-functions.php
  72. wget appservhosting.com/tmp/calc-functions.txt
  73. mv calc-functions.txt calc-functions.php
  74.  
  75.  
  76. #############
  77. ### Check CodeIgniter
  78. cd /home/www/virtual/
  79. ls -al */htdocs/system/core/Common.php
  80. ls -al */*/htdocs/system/core/Common.php
  81.  
  82.  
  83.  
  84. ## Line 257
  85. return $_config[0] =& $config;
  86. Change to :
  87.                 $_config[0] =& $config;
  88.                 return $_config[0];
  89.  
  90.  
  91. Apache SSL Error
  92. ให้โหลด .crt ในส่วนของ :443 แรกสุด
  93.  
  94.  
  95.  
  96. PHP 5.6 ปิดไม่ให้ใช้ TLS
  97. $mail->SMTPAutoTLS = false;
  98.  
  99. หากใช้ TLS
  100.                 $mailGroup1->SMTPSecure = 'tls';
  101.                 $mailGroup1->Port = '587';
  102.  
  103.                 $mailGroup1->SMTPOptions = array(
  104.                     'verify_peer_name'                  'verify_peer' => false,
  105.                     'verify_peer_name' => false,
  106.                     'allow_self_signed' => true
  107.                     )
  108.                 );
  109.  
  110.  
  111. UPDATE  `apphost`.`server` SET  `server_os` =  'Debian GNU/Linux 8.4',`p### ECShop
  112. '5.6.20',`mysql_ver` =  '5.5.49' WHERE  `server`.`server_id` !=4;
  113.  
  114.  
  115.  
  116. ### ECShop
  117. บรรทัดที่ 300 แทนที่ด้วย
  118. return preg_replace_callback ( "/{([^\}\{\n]*)}/", function ($r) { return $this-> select($r[1]);}, $source);
  119.  
  120. บรรทั

Raw Paste

Login or Register to edit or fork this paste. It's free.