redhat hangs on boot due to apachectl error

Posted on 2005-05-08
Last Modified: 2013-12-15
I modified httpd.conf and rebooted, now my rhes hangs at "starting apachectl"

Unfortunately, I had added symbolic links to apachectl for run levels 3,4 and 5 in the appropriate rc directories and neglected to remove them before rebooting, so now the only run levels that work are 1 and 6.

I can mount my home directory to another rhes machine on my lan via nfs, but I haven't exported any other directories.

Is there any way out of this?
Question by:klukac
    LVL 40

    Expert Comment

    Boot into single user mode, remove the symlinks for apachectl in run levels 3-5, and then exit to multi-user mode.

    Author Comment

    Thanks jlevie.  I ssh'd from my other Linux machine and removed the symbolic links before reading this.  Can't believe how responsive this service (and you!) can be!  It's good to know another option, although I don't know how would get to the boot prompt in this case - with a floppy disk or by halting the boot process at some point?  
    LVL 40

    Expert Comment

    After POST you can interrupt the boot process when you see the Grub boot screen and tell it to go to single user mode from there

    Author Comment

    I tried to interrupt the boot process in 2 ways - with Ctl+Alt+F3, which switches to non-GUI and Ctl+Alt+F7 which switches back to GUI.  That didn't work.  I looked up interrupting the boot process in dogpile and found that if you press the Caps lock key after the POST completes you should be able to get to a boot prompt and type in "single" for single-user mode.  That didn't work either. Do I have to reintroduce an error into the rc3.d folder to get this to work?
    LVL 40

    Expert Comment

    What Redhat is this? There was an older version of Redhat needed a Ctrl-X after POST to get to the Lilo prompt or the Grub screen. RHEL 4 WS needs an escape. But in both cases it tells you that before it starts booting the OS.
    LVL 7

    Accepted Solution

    use the following steps to boot into single-user mode:

    Select Red Hat Linux with the version of the kernel that you wish to boot and type e for edit. You will be presented with a list of items in the configuration file for the title you just selected.

    Select the line that starts with kernel and type e to edit the line.

    Go to the end of the line and type single as a separate word (press the [Spacebar] and then type single). Press [Enter] to exit edit mode.

    Back at the GRUB screen, type b to boot into single user mode.
    If you are using LILO, specify one of these options at the LILO boot prompt (if you are using the graphical LILO, you must press [Ctrl]-[x] to exit the graphical screen and go to the boot: prompt):

    boot: linux single
    boot: linux emergency

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now