In some cases, when you normally use /etc/hosts to check if a new created website is working as expected, it can be useful to disable the browser dns records caching (yes, on the client side), especially when you are about to move a site and you cannot afford to stay offline.
Thus you will be able to check the fresh uploaded website against a new IP address. Continue reading “Web developers should turn off Firefox DNS Caching”
Shineisp is an italian open sourceWHM (Web Hosing Management) and we are going to give it a try. I recall i alredy installed it last year, but the machine had a poor hardware and shineisp is a greedy MVCphp–mysql program. For this “instalfiguration” we assume we are on Debian Squeeze and we will cover the steps needed to get shineisp up and running in 10 minutes.
Sometimes you can find the following line appearing in your webserver error logs:
[Tue Mar 13 10:48:03 2012] [error] [client 220.127.116.11] ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker '23.xx.25.190', file '/var/www/xxxxx/xxxxxx/xxxxxx/web/wp-admin/admin.php', line 109), referer: http://website.com/wp-admin/edit.php
There is a quick solution and it can be found in a file called:
[20121223 – UPDATED]: Please, see the Andreas comment below.
It seems to be better to move the “define(‘WP_MAX_MEMORY_LIMIT’, ’64M’);” in wp-config.php rather than default-constants.php. Anyway this stopped after the wordpress update
Thank you Andreas!
you can easily change (around line 96) the var value from 256 megs to the memory size that best suits your server needs.
Helo there! In these last days one client of mine asked me how to prevent non-italian visitors from seeing national ADS when they visit one or more websites.
The solution comes alog with builtin geoip functions in the php5-geoip package to be installed as usual using apt-get
After installed this package typing: apt-get install php5-geoip
Now, what you have is a countries database, and if you want to be much more precise (as me for example) you can download a detailed Cities database typing the following set of commands: