March 2006

You need to add ScriptAlias directive to your httpd.conf file. By default Apache server try to locate file from /var/www/cgi-bin (RedHat/Fedora Linux) or /usr/lib/cgi-bin (Debian Linux). Add following line to your domain configuration (vhost): ScriptAlias /cgi-bin/ “/home/httpd/cyberciti.biz/httpdocs/cgi-bin/” See also: Apache give each user their own cgi-bin directory

{ 0 comments }

MySQL startup script under BSD/Linux

by nixcraft on March 30, 2006 · 0 comments

You can start the MySQL server directly as described here. But most Linux distribution comes to special start and stop script. First, you must login as the root user. Use su – command to login as the root user. If you are using Red Hat Linux / Fedora Linux: Start MySQL # service mysql start [...]

{ 0 comments }

You need to use chmod command which is use to change file access permissions as well as to setup an executable permission on file. General syntax: chmod +x file-name For example to setup executable permission on a file called foo.sh (shell script): $ chmod +x foo.sh To execute file: $ ./foo.sh To setup executable permission [...]

{ 0 comments }

A watermark is a recognizable image or pattern in paper that appears lighter when viewed by transmitted light (or darker when viewed by reflected light, atop a dark background). Under Linux you can use ImageMagick software to impose digital watermark (it is a technique which allows an individual to add hidden copyright notices or other [...]

{ 1 comment }

How do I block an IP address or subnet under Linux operating system?

{ 36 comments }

MTU (Maximum Transmission Unit) is related to TCP/IP networking in Linux/BSD/UNIX oses. It refers to the size (in bytes) of the largest datagram that a given layer of a communications protocol can pass at a time. You can see current MTU setting with ifconfig command under Linux: # /sbin/ifconfig Output: eth0 Link encap:Ethernet HWaddr 00:0F:EA:91:04:07 [...]

{ 1 comment }

Redhat network interface configuration

by nixcraft on March 29, 2006 · 5 comments

Redhat Linux network interface names start with ethX. First Ethernet network interface name is eth0, second is eth1 and so on. Login as a root user, use su – command: $ su – To list or display more information about network interface type command: # ifconfig | less To assign an IP address type following [...]

{ 5 comments }