Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
Pada droplets Digital Ocean bisanyaa tidak menyediakan Swap Memory. Jadi memory yang didapat dari Digital Ocean adalah memory murni dari Ram yang disediakan oleh Digital Ocean. Untuk memiliki Droplet di Digital Ocen, daftar disini Swap berfungsi sebagai memory tambahan pada droplet atau VPS yang dimiliki. Virtual memory atau swap memberikan system atau vps anda additional Ram atau memory tambahan pada VPS. Jadi Swap menambah memory yang ada di vps. Untuk mengecek apakah VPS anda memiliki Swap jalankan perintah berikut free -m: [root@sin ~]# free -m total used free shared buffers cached Mem: 498 445 53 0 28 361 -/+ buffers/cache: 55 443 Swap: 2047 0 2047 [root@sin ~]# Biasanya pada Swap di digital ocean atau vps yang tidak menyediakan swap memory adalah 0. [root@sin ~]# free total used free shared buffers cached Mem: 361996 360392 1604 0 2320 54444 -/+ buffers/cache: 303628 58368 Swap: 0 0 0 [root@sin ~]# Berikut car menambah Swap pada VPS yang Swap unabled atau disable secara default dari provider. [root@sin ~]# cd /var [root@sin ~]# touch swap.img [root@sin ~]# chmod 600 swap.img [root@sin ~]# _ Lalu dibuat besarnya file yang akan digunakan untuk swap. Disini default.id akan membuat 1000MB Swap [root@sin ~]# dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 1000+0 records in 1000+0 records out 1048576000 bytes (0.999 GB) copied, 8.0868896 s, 253 MB/s [root@sin ~]# _ Setelah itu persiapkan image atau file yang sudah dibuat untuk swap. b[root@sin ~]# mkswap /var/swap.img Setting up swapspace version 1, size = 1000 GiB no label, UUID=72761533-8xbe-436l-b07e-c0sabe9cedf3 [root@sin ~]# _ Enable fitur swap di vps [root@sin ~]# swapon /var/swap.img [root@sin ~]# free total used free shared buffers cached Mem: 503596 478928 24668 0 38832 102384 -/+ buffers/cache: 337712 165884 Swap: 1048572 1780 1046792 [root@sin ~]# _ Lalu enable swap di fstab agar berjalan otomatis pada saat booting. [root@sin ~]# echo "/var/swap.img none swap sw 0 0" >> /etc/fstab [root@sin ~]# _ Ok file swap sudah berhasil di buat. http://default.id/cara-membuat-memory-swap-di-digital-ocean.html