Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, I am working on Apache2, and am up to the 'test' phase of the process. Anyway I accidental sent the apachectl file to acapche2 instead of apache2: [rootlocalhost sbin]# ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    4

    Arrow Apachectl help

    Hello,

    I am working on Apache2, and am up to the 'test' phase of the process.

    Anyway

    I accidental sent the apachectl file to acapche2 instead of apache2:

    [rootlocalhost sbin]# mv apachectl /acpache2

    I should have done: mv apachectl /usr/local/apache2/bin

    That didn't happen..

    I echoed ; echo ./apachectl
    ./apachectl

    Sooo, I know its alive, just have no idea where, help? I need to get this file back to start the HTTP Sever.

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    Quote Originally Posted by infinitetrekker View Post
    Hello,

    I am working on Apache2, and am up to the 'test' phase of the process.

    Anyway

    I accidental sent the apachectl file to acapche2 instead of apache2:

    [rootlocalhost sbin]# mv apachectl /acpache2

    I should have done: mv apachectl /usr/local/apache2/bin

    That didn't happen..

    I echoed ; echo ./apachectl
    ./apachectl

    Sooo, I know its alive, just have no idea where, help? I need to get this file back to start the HTTP Sever.
    how did you install apache? what distro and version are you using?

    typing
    Code:
    echo ./apachectl
    just tells the computer to print out the characters ./apachectl, it doesn't look for them. try

    Code:
    ls ./apachectl
    to see if the file is there.

    if you did
    Code:
    mv apachectl /acpache2
    you should be able to do
    Code:
    mv /acpache2 apachectl
    to undo it.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    4
    Thanks for your reply, I used Fedora Red Hat. I installed using source. I found the file and mv it to the correct directory. I am now stuck with the starting the program.. help?

  4. #4
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    you shouldn't move around binaries after an application is built. If you want the files to be executable without the absolute path, you can either symlink them somewhere else, or add the new directory to your $PATH

    I would suggest you remove all the files, and rebuild it in the location you want. You can change where it installes with the --prefix option durring the ./configure step.

    Code:
     ./configure --prefix=/usr/local/apache2/
    you can run ./configure --help to see all available options, but it is quite long, and can be overwhelming.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  5. #5
    Just Joined!
    Join Date
    Jan 2011
    Posts
    8
    can you post the exact error message while starting apache!

Posting Permissions

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