≡ Menu

service command

Linux / Unix: SysVinit Services Restart vs Reload vs Condrestart

Can you tell me differences between the following sysvinit /sbin/service command:

service httpd restart

service httpd condrestart

service httpd reload

[click to continue…]

Linux Deleting Firewall Rules

When I try to restart my BIND 9 server under Ubuntu Linux using service bind9 restart or service bind9 start command, I get the following error:
resolvconf: Error: /etc/resolv.conf must be a symlink

How do I fix this problem?
[click to continue…]

WordPress Install Memcached Object Cache Plugin To Speed Up Blog

How do I install memcached cache plugin under UNIX / Linux to speed up my dynamic database-driven wordpress blog by caching data and objects in RAM to reduce the number of times an external data source must be read?
[click to continue…]

Linux Syslogd: Nothing Gets Logged Using /dev/log And /jail/apache/dev/log

I‘ve configured my Apache in chrooted jail at /jail/apache directory. However, my syslogd is not working and nothing gets logged using /dev/log and /jail/apache/dev/log. How do I fix this problem under CentOS 5.x AMD64 with SELinux?
[click to continue…]

Linux incrond inotify: Monitor Directories For Changes And Take Action

I want to copy (rsync to remote server) a directory tree whenever file uploaded or deleted in /var/www/html/upload/ directory under Linux operating systems for backup purpose and/or load balancing purpose without getting into complex file sharing setup such as NFS or GFS iscsi storage. How do I monitor /var/www/html/upload/ and its subdirectory for new files and executes rsync command to make copy back to www2.example.com:/var/www/html/upload/?
[click to continue…]

Verify: Keepalived IP Failover Working Or Not With tcpdump Command

I‘ve installed keepalived IP failover software as described here. But how do I verify it is working or not?
[click to continue…]

mod_setenv: Lighttpd Send Custom Headers

How do I add a header to the HTTP request that was received from the client under Lighttpd web server?
[click to continue…]

Start / Stop / Restart Apache Web Server Via SSH

How do I start / stop or restart Apache web sever via SSH (secure shell) under Linux or UNIX operating systems?
[click to continue…]