2/28/2007
Find Number of Running HTTPD Processes
All HTTPD processes:
Only HTTPD processes currently connected to a remote client:
Popularity: 9%
All HTTPD processes:
Only HTTPD processes currently connected to a remote client:
Popularity: 9%
I look at a lot of servers throughout the day. When taking a first look at a server it’s always helpful to know what versions of Apache, PHP and MySQL installed. I use Versions.sh to get the low down on one screen.
Redhat Version:
Red Hat Enterprise Linux ES release 3 (Taroon Update 4)
Apache:
Server version: Apache/2.0.46
Server built: Jul 8 2005 14:05:56
PHP 4.4.0 (cgi) (built: Jul 12 2005 02:09:00)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
MySQL:
mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)
Security:
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0×0090701f
OpenSSL 0.9.7a Feb 19 2003
I usually check out ifconfig too for IP information. Any other information, just add at the bottom of the script.
Popularity: 16%
Parse error: syntax error, unexpected $end in ... on line ...
Don't you love it when the line number indicated for an error message is the last line in the file which obviously has no error? I spent twenty minutes on this one last night.
Check for unmatched braces, brackets, parentheses or PHP tags. Nope.
Try echoing line numbers to see where execution stops. In this case no output was generated even with an echo on line #1.
Create a new file and pasted the code as Unix ASCII. Still no change.
Check PHP settings. short_open_tag is disabled by default.
Create .htaccess file:
Page loads with no errors.
Do a search for short open PHP tags in the source and replace with default tags.
Find
Replace
Turn short_open_tag back off in .htacess:
Page still loads with no errors.
Popularity: 35%
Qmhandle is a Perl tool to aid in the management of the Qmail mailer daemon and queue. I sometimes use it to flush the queue, restart Qmail (or Apache, MySQL and several other major server daemons) with my mobile phone and MidpSSH.
When clearing the queue, Qmhandle lists information for each message as it processes the queue. Over my mobile internet connection this can be a pain for several thousand messages. I added an option '-short' to disable listing the status of each message.
Popularity: 15%
A couple of summers ago, I was lucky enough to travel through Venezuela and Argentina for a few months. I took a lot of interesting photographs of the landscape, wildlife and people.
I was recently contacted by Miles, a fellow freelancer to use one of my photos for a project of his at TangoBliss.com. I think the photo turned into a very nice banner for his about page. Cheers Miles.
Popularity: 14%