GNU/LINUX System Administration notes

21Jul apache startup fail

You may sometimes encounter the following problem while starting apache server
====
[root@epsilon root]# /etc/init.d/httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
[FAILED]
====
To fix this run the following commands
fuser -k -n tcp 443

19Jul Apache mod_proxy

Imagine your domain has ROR ( Ruby On Rails ) installed and it connects on port 1200
eg :- http://gnusys.net:1200 and you want to change the way it appears on the address bar as simply http://gnusys.net. Normally Apache won’t allow this as it is configured to work on port 80 as you all know. But [...]

18Jul Semaphore Arrays

Semaphore, it is a lot like a locking mechanism. In any server there is an order of precedence in which tasks must be accomplished. The semaphore is used to maintain that precedence order; more to the point, the precedence order is maintained by the semaphores. A succeeding task may not start until it has received [...]

14Jun Troubleshooting common Apache HTTPD problems

Check your error_log
* The first place to look
* Increase the LogLevel if needed
* Make sure to turn it back down (but not off) in production
Check System Health
* vmstat, systat, iostat, mpstat, lockstat, etc…
* Check interrupt load
o NIC might be overloaded
* Are you swapping memory?
o A web server should never swap
* Check system logs
o /var/log/message, /var/log/syslog, [...]

22May apache2 mod_suphp php-cgi

A slight change in the setup and now i can see the user who is executing the scripts in my website
Before when apache intrepets a php script it calls fastcgi which inturn calls the php cgi binary.But still the php binary is executed as the calling user which in our case is the user [...]

22May apache mod_fcgid internal server error

Today gnusys.net had a little downtime as i was trying to change my apache-php interface into FastCGI.
The installation of php-cgi and mod_fcgid went pretty simple in my Debian Etch;so was the configuration
The tricky part was that the wordpress blog was giving Internal Server Error in the index page.
====
[Thu May 22 04:15:41 2008] [notice] mod_fcgid: call [...]