Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Location
    Indonesia
    Posts
    3

    restart httpd

    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 binary file
    Starting httpd:                                            [  OK  ]
    /etc/init.d/httpd: line 62: /bin/touch: cannot execute binary file
    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.


    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
    Code:
    $ rm -r files.txt
    -bash: /bin/rm: cannot execute binary file
    Any help appreciated. thanks.

  2. #2
    Linux Guru Rubberman's Avatar
    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!

  3. #3
    Just Joined!
    Join Date
    Nov 2010
    Location
    Indonesia
    Posts
    3
    i have tried to reboot but still /bin/rm still corrupted
    Code:
    # file /bin/rm
    /bin/rm: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), corrupted program header size, corrupted section header size
    any idea?
    perhaps where can i get the binary files that i need to replace all these corrupted file?
    thanks

  4. #4
    Linux Guru Rubberman's Avatar
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...