httpd Reactivation error, help!!

Posted on 2006-05-19
Last Modified: 2010-03-04
Hello!   Everyone, my personal Server at home for development of PHP and CGI programs downed.   I don't know how to reactivate.   It used to get back by the following two commands, but this time they don't work.   How can I fix it?   Help me!

[mkido@icho mkido]$ su - root
[root@icho root]# /etc/rc.d/init.d/httpd stop
Stopping httpd:                                            [FAILED]
[root@icho root]# /etc/rc.d/init.d/httpd start
Starting httpd:                                            [FAILED]
[root@icho root]#

Question by:mkido
    LVL 51

    Expert Comment

    please have a look at your error_log
    you find the path and the name to this file in your httpd.conf (ServerRoot and ErrorLog directive)

    Author Comment

    Thank you, ahoffmann!   I will look at.

    Author Comment

    I looked at,


    It was huge.   I noticed the error happens during running a .php file which access a big external file for analysis.   It swelled up to,

       2147483647  bytes = 2.1 GB

    I couldn't scroll it by "more" nor other editors.   All error_log are the same,

       Use of uninitialized value in pattern match (m/ /) at /var/www/cgi-bin/TEST/

    Anyway, I tried to refresh the WEB-server packages by Add/Remove packages.   Unfortunately, even after reloading of WEB-server packages, httpd doesn't function.   So, I will reload the entire OS, and I think that is easy.   What do you think?   It's my personal setting, so it's O.K. to do that.

    LVL 51

    Accepted Solution

    > I couldn't scroll ..
    sounds like your kernel and filesystem ist 2GB-aware but not your tools
    You have to install 2GB-aware tools

    > Use of uninitialized value in pattern match (m/ /) at /var/www/cgi-bin/TEST/
    this sounds more like a perl program where you did not check proper your variables before using them
    I recommend to use -w in hashbang line and/or
      use strict;
    to identify such problems

    Author Comment

    After re-loading the Linux OS, it gets back to work.    httpd and Web browser.   OS loading takes about only 1 hour, this way worked conveniently.  

    Now, I run (.pl) and .php files at the command lines, so that I can avoid big mistakes while I am looking at the response in the screen.   Then I convert them to the final CGI or PHP files for WEB interaction.    
       $ php   script.php


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    728 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

    17 Experts available now in Live!

    Get 1:1 Help Now