Monday, August 22, 2011

Http Server Error Message Exception KeyError Unable To Change Directory

After I configure http service.While I restart the service.
I got the following error message.
[root@rhel6 ~]# /etc/init.d/httpd start
Starting httpd:                            [FAILED]
1)read the log file
2)#cat /var/log/httpd/error_log | grep error
) in ignored
[Thu Feb 24 12:20:19 2011] [error] Exception KeyError: KeyError(140472509999072,) in ignored
[Thu Feb 24 12:20:19 2011] [error] Exception KeyError: KeyError(140472509999072,) in ignored
PROBLEM
Unable to find the python script
SOLUTION
1)create the Soft link for the python script
#ln -s /usr/local/lib/libpython2.6.so.1.0 /usr/lib64/libpython2.6.so.1.0
#ln -s /usr/local/bin/python2.6 /usr/bin/python2.6
Then try it, if you still face the error message.
Read the log message


2)#cat /var/log/httpd/error_log | grep error
ERROR MESSAGE
[Thu Feb 24 12:20:20 2011] [error] Unable to change directory to /root
SOLUTION
In these case /root is Present Working Directory PWD.
change the present working directory then try it.
Depend upon the log message we need to clear the problem.

0 comments:

Flag counter

free counters