Tag Archives: tips n trick

Tips mengatasi Fatal error: Allowed memory size of

Seringkali kita menemukan error seperti ini ketika menginstall plugins wordpress.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes)

Berikut ini cara mudah untuk mengatasinya.

1. Login ke cPanel

2. Klik menu File Manager,  masuk ke folder installasi wordpress anda dan edit file wp-config.php kemudian tambahkan line berikut

Mencari file inject di webserver

scanning

OK langsung saja, command berikut adalah yang biasa saya pakai untuk scanning php file inject di webserver FreeBSD. Saya catat di sini biar gak lupa. :D
1. Scanning php files dalam path si username dan mencari 1 kata / strings dalam files php sesuai dengan kata yang kita cari:

server2# find /home/username/ -name "*".php -type f -print0| xargs -0 grep "powered by rapidleech" | uniq -c | sort -u | cut -d":" -f1 | awk '{print "Warning - please check this files " $2}' | uniq

2. Scanning php files dalam path si username dan beberapa kata / strings dalam files php:

server2# find /home/username/ -name "*".php -type f -print0| xargs -0 egrep "rapidleech|c99|r57" | uniq -c | sort -u | cut -d":" -f1 | awk '{print "Warning - please check this files " $2}' | uniq

Tambahan…