Tips Unix testing evironment

The 'man' command can display a manual page fo...Image via Wikipedia

Last week I had new project that included development of testing bulletproof environment using multiprocess programming.
Using a lots of on-line tutorials as reference, my rusty multiprocessor knowledge stated to unwind. Principle of forking, piping are same for every programming language. When I reached defining exit status mapping into user friendly messages for debugging, I know that project is slowly taking its shape.

New to come , was test itself.
I used keyboard as standard input for testing samples. I order to finish testing I had to enter end of file (EOF) from keyboard. And then got stuck!
I forgot essential little thing like entering EOF from keyboard and it took me additional 30 minutes of free time, searching web.
So, this post is tribute to EOF from keyboard:
CTRL-D (^D)

You little prick ...

Also you can see my similar troubles with Apache Server 403 message by-pass.


Apache Server Tips: 403 Forbidden

Web - ServerImage by hekman2007 via Flickr

Here is
If you have been working with Apache Tomcat Servers recently and had problem accessing page on your server. Probably, you have inherited somebody's configuration and when you tried to access page got this message:


Forbidden

You don't have permission to access /babic/ on this server.
Apache/1.3.33 Server at ******* Port ###

All you have to do is to change permissions for your public directory, which this command:

$> chmod o+x ~

and !voilĂ !


Possible reason of this behavior:

You have a .htaccess file that does not have adequate unix file permissions. The file needs to be world-readable.
Solution: Chmod the .htaccess file to give it the required permissions:

chmod o+r ~/public_html/.htaccess ~/.htaccess
Or more completely:

chmod o+r `find ~ -name .htaccess -print`
Possible reason: The index file for your web pages, "index.html", does not exist.
Solution: Create your main index.html file, and give it the required permissions:

touch ~/public_html/index.html
chmod o+r ~/public_html/index.html