- ############# Upgrade Debian 8 PHP 5.6
- cat /etc/php5/apache2/php.ini
- cd /etc/php5/apache2
- mv php.ini php.ini-old
- wget appservhosting.com/tmp/up56/php.ini
- ### Change ns opcode
- pico /etc/php5/apache2/php.ini
- cd /etc/apt
- rm sources.list
- wget appservhosting.com/tmp/up56/sources.list
- apt-get update
- apt-get dist-upgrade -d
- cd /etc/
- mv script-adm stop-script-adm
- killall -9 /usr/bin/php
- apt-get dist-upgrade
- apt-get autoremove
- ####### Complete & Loading New Config
- cd /etc/php5/cli
- mv php.ini php.ini-old
- wget appservhosting.com/tmp/up56/php.ini-cli
- mv php.ini-cli php.ini
- cd /etc/courier/
- mv authdaemonrc authdaemonrc.old
- wget appservhosting.com/tmp/up56/authdaemonrc
- cd /etc/proftpd/
- mv modules.conf modules.conf.old
- wget appservhosting.com/tmp/up56/modules.conf
- cd /etc/apache2
- rm apache2.conf
- wget appservhosting.com/tmp/up56/apache2.conf
- cd /etc/apache2/mods-available
- rm mpm_prefork.conf
- wget appservhosting.com/tmp/up56/mpm_prefork.conf
- cd /etc/apache2/mods-available
- rm status.conf
- wget appservhosting.com/tmp/up56/status.conf
- cd /etc/
- mv stop-script-adm/ script-adm
- cd /etc/cron.d
- mv php5.dpkg* php5
- cd /etc/cron.daily
- rm mlocate*
- cd /etc/logrotate.d
- mv apache2.dpkg-dist apache2
- cd /etc/fail2ban
- rm jail.conf
- wget appservhosting.com/tmp/jail.conf
- /etc/init.d/fail2ban restart
- cd /etc/init.d
- rm apache2
- wget appservhosting.com/tmp/up56/init-apache2
- mv init-apache2 apache2
- chmod 755 apache2
- /etc/init.d/apache2 restart
- /etc/init.d/bind9 restart
- apt-get install sysvinit-core systemd-shim systemd
- #### VHCS Fix FTP Password Crypt Function
- cd /home/www/vhcs2/gui/include
- rm calc-functions.php
- wget appservhosting.com/tmp/calc-functions.txt
- mv calc-functions.txt calc-functions.php
- #############
- ### Check CodeIgniter
- cd /home/www/virtual/
- ls -al */htdocs/system/core/Common.php
- ls -al */*/htdocs/system/core/Common.php
- ## Line 257
- return $_config[0] =& $config;
- Change to :
- $_config[0] =& $config;
- return $_config[0];
- Apache SSL Error
- ให้โหลด .crt ในส่วนของ :443 แรกสุด
- PHP 5.6 ปิดไม่ให้ใช้ TLS
- $mail->SMTPAutoTLS = false;
- หากใช้ TLS
- $mailGroup1->SMTPSecure = 'tls';
- $mailGroup1->Port = '587';
- $mailGroup1->SMTPOptions = array(
- 'verify_peer_name' 'verify_peer' => false,
- 'verify_peer_name' => false,
- 'allow_self_signed' => true
- )
- );
- UPDATE `apphost`.`server` SET `server_os` = 'Debian GNU/Linux 8.4',`p### ECShop
- '5.6.20',`mysql_ver` = '5.5.49' WHERE `server`.`server_id` !=4;
- ### ECShop
- บรรทัดที่ 300 แทนที่ด้วย
- return preg_replace_callback ( "/{([^\}\{\n]*)}/", function ($r) { return $this-> select($r[1]);}, $source);
- บรรทั
Raw Paste