Results 1 to 4 of 4
I tried to restart my httpd service. somehow it returned this error:
Code:
# /etc/init.d/httpd restart
/etc/rc.d/init.d/functions: line 330: /bin/rm: cannot execute binary file
/etc/init.d/httpd: line 75: /bin/rm: cannot execute ...
- 11-03-2010 #1Just Joined!
- Join Date
- Nov 2010
- Location
- Indonesia
- Posts
- 3
restart httpd
I tried to restart my httpd service. somehow it returned this error:
seems like the HTTPD wasnt stopped while it should be stopped. it skipped the 'stop' and just right away jump into 'start' command. my case is i just changed some php.ini configuration, and to have it changed i need to restart after changes.Code:# /etc/init.d/httpd restart /etc/rc.d/init.d/functions: line 330: /bin/rm: cannot execute binary file /etc/init.d/httpd: line 75: /bin/rm: cannot execute binary file Starting httpd: [ OK ] /etc/init.d/httpd: line 62: /bin/touch: cannot execute binary file
am i correct if i say my '/bin/rm' and '/bin/touch' files are corrupted?
i tried some simple rm command (to remove files) and it just wont run as usual, returning this error
Any help appreciated. thanks.Code:$ rm -r files.txt -bash: /bin/rm: cannot execute binary file
- 11-03-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Have you tried rebooting the system? Have you updated the OS or installed some new packages recently? Often this sort of problem is because the binaries of the executables are for the wrong platform, which unless you manually installed packages for the wrong platform, should not be happening.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 11-04-2010 #3Just Joined!
- Join Date
- Nov 2010
- Location
- Indonesia
- Posts
- 3
i have tried to reboot but still /bin/rm still corrupted
any idea?Code:# file /bin/rm /bin/rm: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), corrupted program header size, corrupted section header size
perhaps where can i get the binary files that i need to replace all these corrupted file?
thanks
- 11-04-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Something has stepped on these programs. I assume you are running a 64-bit operating system? Since these are system utilities, you need to get copies either from a running system of the same type/vintage, or from the installation CD/DVD. Also, you really need to determine how this happened. Perhaps you have been pwnd by a trojan or virus?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote