In Linux, the crontab command is used to schedule execution of commands at certain time intervals whether it be hourly, daily, monthly or every x amount of minutes. This article is designed to show you the simple way of understanding crontab.
Understanding the fields:
# (Use to post in the top of your crontab)
# ------------- minute (0 - 59)
# | ----------- hour (0 - 23)
# | | --------- day of month (1 - 31)
# | | | ------- month (1 ...
January 8th, 2012 | Posted in How to, Linux system | No Comments
It's the example to configure virtual hostings.
Following example is done as domain name[topupdeals.com (root directory[/var/www/html])],
Virtual domain name[marketing.dvtrust.com (root directory[/home/www/public_html])].
Before doing it, it's necessarry to add new doman name in your DNS first.
[1] Configure httpd for Virtual Hostings
[root@www ~]# vi /etc/httpd/conf/httpd.conf
# line 972: uncomment
NameVirtualHost *:80
# at the last lines: ( for original domain )
DocumentRoot /var/www/html
ServerName www.topupdeals.com
# at the last lines: ( for virtual domain )
DocumentRoot /home/www/public_html/marketing
ServerName marketing.dvtrust.com
ServerAdmin webmaster@dvtrust.com
ErrorLog logs/virtual.host-error_log
CustomLog ...
January 5th, 2012 | Posted in Apache server, CentOS 5 | No Comments
Here is simple, easy to use Online Password decoder for Internet Download Manager (IDM). IDM is popular downloader software that simplifies and automates downloading from many shareware and premium download sites such as Rapidshare.com, Megaupload etc. Now you can easily recover those premium account passwords using this online password decoder without installing any software.
To use it, simply copy the encoded IDM ...
January 3rd, 2012 | Posted in Daily Software | No Comments
If you are planning to use CURL library on PHP then you may encounter an error like below.
Fatal error: Call to undefined function curl_init() in F:\proj\orkutfeeds\trunk\index.php on line 15
Curl is by default not enabled on PHP on Windows although it is there. So to enable this go through following steps…
Locate php.ini file. Its under directory where you installed PHP. On my machine its path is: C:\wamp\bin\php\php5.2.5\php.ini
Once you find that ...
December 29th, 2011 | Posted in Apache server | No Comments
I am having great difficulty getting my SMTP set up... this is probably more a apache/php problem more than anything but I assume people have solved this problem on this site.
I know that in my php.inf file I need to alter the following lines:
[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 465
; For Win32 only.
sendmail_from = someone@gmail.com
I also have port forwarding on my router open for the machine that apache is running on at port 465.
I ...
December 29th, 2011 | Posted in Apache server | No Comments
Someone would ask: "Why would I need IE on Linux cause I got the newest and best browser ever called Firefox already installed?"
Sometimes the IE is necessary for web designers working on Linux to test their pages, or to browse sites that don't open in any browser except the IE.
Here I will explain how to install IE7 on Ubuntu box. Actually only the IE7 rendering engine will be installed on IE6 interface. I did this ...
December 8th, 2011 | Posted in How to, Knowledge | No Comments
Check the OpenDNS webpage for more information of its services. Here, I'll just explain how to configure your network and switch over to the OpenDNS servers.
nano /etc/resolv.conf
Use your favorite text editor and open the /etc/resolv.conf file as root and change the nameserver lines to:
nameserver 208.67.222.222
nameserver 208.67.220.220
Now it is needed to flush any cached addresses on the computer. Type this command:
sudo /etc/init.d/networking restart
That will also restart all the networking services.
Check this website to check that you switched. If ...
December 8th, 2011 | Posted in How to, How to DNS | No Comments