How do I use wget for URLs with ampersands?

I just spent two hours trying to figure this out: Why wget was not retrieving URL with variable correctly. I have a php script that need to be run with crontab through the control panel. Those requires variables on the url. Example of cron.php:
http://www.mydomain.com/cron.php?cron=do&day=15
This cron works fine from the browser. However, when I use this [...]

locate can not open /var/lib/mlocate/mlocate.db’ no such file or directory

If you are using ‘locate’ command in Linux and get an error message: locate: can not open /var/lib/mlocate/mlocate.db’ no such file or directory, don’t worry because this normally happen when you run ‘locate’ for the first time.
To fix this, you need to create or update mlocate database, a database used by locate. Simply execute updatedb [...]

Installing Webmin on CentOS

Webmin is a web-based interface for system administration for Unix/Linux. By using any modern web browser, you can setup user accounts, Apache, DNS, emails and so on without needed to manually edit Unix configuration files like /etc/passwd.
Below are instructions on how to install webmin control panels on your VPS or Dedicated Server:
1) Connect SSH to [...]

How to Create Nameserver with Kloxo

In kloxo it’s very easy to setup DNS. Before you create your own nameserver, first you will have to decide what nameservers you want to set on your VPS or dedicated server. This guide will show you how to register a new nameservers on a VPS or dedicated server using the Kloxo control panel.
1) Login [...]

Yum Error: Cannot find a valid baseurl for repo

I Just installed CentOS and tried to run the yum tool to install MySQL Server:
# yum install mysql-server
But I keep getting the same error, here is the result:
# yum install mysql-server
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
I figured out that my [...]

How to install MySQL on CentOS

Before installing MySQL Server, you need to determine if MySQL has been installed on your Linux server. Use the following command:
# rpm -qa | grep mysql
Check the output list:
mysqlclient10-3.23.58-4.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
mysql-4.1.20-1.RHEL4.1
mysql-devel-4.1.20-1.RHEL4.1
If mysql-server* package is not on the list, means you haven’t installed the mysql-server package.
To start install MySQL Server, do the following command (Yum must be installed):
# [...]

Aktifkan IP Forwarding dalam Linux

Kebiasaannya, dalam mana-mana distribusi Linux, IP Forwarding akan dinyahaktif secara default. IP Forwarding sangat berguna dalam persekitaran router/gateway atau untuk menjadikan Linux box sebagai pelayan VPN.
Untuk memeriksa IP Forwading, gunakan arahan:
# sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 0
Atau:
# echo 1 > /proc/sys/net/ipv4/ip_forward
Untuk mengaktif IP forwarding, sunting /etc/sysctl.conf dan tambah:
net.ipv4.ip_forward = 1

Tukar hostname dalam Linux

Untuk tukar hostname dalam Linux, boleh gunakan arahan hostname
Untuk mengetahui hostname semasa taipkan arahan:
# hostname
Untuk mengetahui FQDN dalam sistem, gunakan arahan:
# hostname –fqd
Untuk menukar hostname, guna arahan:
# hostname NAMA_BARU

Install sudo dalam Debian

Untuk install sudo dalam Debian:
# aptitude install sudo
Fail configuration terletak di /etc/sudoers

Install Fantastico dalam CPanel/WHM

SSH ke server, dan lepaskan arahan berikut:
# cd /usr/local/cpanel/whostmgr/docroot/cgi
# wget http://www.netenberg.com/files/free/fantastico_whm_admin.tgz
# tar -xzpf fantastico_whm_admin.tgz
# rm -rf fantastico_whm_admin.tgz
Log masuk ke panel WHM sebagai root dan klik Add-Ons -> Fantastico De Luxe WHM Admin