Bogdan Ciocoiu - Tech Blog

HTML Multiple Select

<form action="<?=$_SERVER['PHP_SELF']?>" method="post"> <select name="test[]" multiple="multiple"> <option value="one">one</option> <option value="two">two</option> <option value="three">three</option> <option value="four">four</option> <option

WHM, CPanel logs

cPanel cPanel/WHM Initial Installation Errors: /var/log/cpanel*install* – These log files contain verbose logs of the

Apache, mod evasive

Login to web server via SSH. For Apache 2.0.x, execute the following command:up2date -i httpd-devel

Linux, change timezone

Setting your time zone In /etc the file, localtime, is a link to or copy of a

Linux set timezone

ln -sf /usr/share/zoneinfo/GMT /etc/localtime Other way is to directly copy the proper timezone file and

SSH with no password

a@A:~> ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save

Set date on Linux

For example, set new data to 2 Oct 2006 18:00:00, type the following command as

stdin: is not a tty

Example: ssh -tq server2 uptimme Now it should work!

Configure Linux date

Logged in as root, check which timezone your machine is currently using by executing `date`.

Date: cannot set date: Operation not permitted

VPS Date issue: # vzctl stop <veid> # vzctl set <veid> –save –capability sys_time:on #