Archive for September, 2007

Squid : Ports Restrictions

Add this to squid.conf
#Port Lists
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 [...]

Upgrading php and mysql (cPanel using WHM)

Upgrading cPanel is a lot easy than upgrading Plesk, especially if we use WHM (Web Hosting Manager).
1. Log into WHM
2. Go to Apache Update in Software Category
3. Click Load Previous Config, uncheck previous php version and check the new php version. Same with mysql
4. Press Start Build
Note : some components also provided, such as xml-rpc, [...]

Turn On and Update Plesk Stat

Stat in one of servers is turn off and doesn’t updating for two days.
Check ‘root’ user crontab
crontab -l
output : 7 4 * * * /usr/local/psa/admin/sbin/statistics >/dev/null 2>&1
Check cron logs for records about the statistic utility executions
vi /var/log/cron
Check apache logs size. Make sure no bigger than 2GB.
Check database directories (mysql : /var/lib/mysql) have read/write permissions to [...]

Art : Brilliant and Amazing Bus Ads

Art can be everywhere.
Inventor Spot shows some of great, brilliant and amazing Bus Ads.

After reboot, squid -k can not send stop signal again

If reboot and squid -k says it can not send stop signal again, means that squid.pid is missing
Check squid.pid in the system and if missing, here is what i can suggest :
Look into a previous post in this website, then shutdown squid
squid -k shutdown
Create squid.pid (usually squid.pid located in the same directory with log files)
touch [...]

Squid -k problem : can not send stop signal

The squid.pid file is missing or unreadable makes squid -k command don’t work (says it can not send stop signal). We kill Squid manually by finding the process ID with ps.
ps ax | grep squid
If there are more than one Squid process, be sure to kill the one that shows up as (squid).
example
500 [...]

4 things about Squid Swap Directories

A few things you need to know about Squid Swap Directories
1. Do not erase or delete using linux delete command. It can cause Swap Directories DIRTY.
2. You do not need to erase or delete Squid Swap Directories if you have no_cache deny (an instruction in squid for no-cache proxy) in squid.conf. Squid need that Swap [...]

VI command (essential)

I think this commands essential, because with this (only eight) commands you can create and edit various files with VI
i Insert new text, before the cursor.
escape/ESC
Once you’ve entered input mode using the one of the a, i, O or o commands, use escape or ESC to quit [...]