Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Feb 2002
    Location
    Bucuresti
    Posts
    129

    Default php include problem

    Hello!
    Few times/day I receive this error:
    Warning: main(http://www.domain.com/include/textad.php) [function.main]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/evrika/public_html/anunturi/cauta.php on line 185

    Warning: main() [function.include]: Failed opening 'http://www.domain.cominclude/textad.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/evrika/public_html/anunturi/cauta.php on line 185

    After Apache restart all works fine but after few hours again the same error.

    Any ideea?
    Thank you very much!

  2. #2
    Member
    Join Date
    Aug 2004
    Posts
    472

    Default

    apache may need a recompilation. try it.

  3. #3
    Member
    Join Date
    Feb 2002
    Location
    Bucuresti
    Posts
    129

    Default

    I try few times.... Other solutions?

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Actually that looks more like too many simultaneous server connections

    I would do a "netstat" in SSH when you see that problem occur and also
    view your "Apache Status" in WHM.

    That should give you a much better idea what is really happening.

  5. #5
    Member
    Join Date
    Sep 2003
    Posts
    16

    Default

    I am having this exact same problem.

    If it is as Spiral says (and I think it is) ...Too Many Connections... how can this be fixed? My server has a very light load on it, and I only have about 15 low-traffic domains on it, so I'm wondering if there's just a bad setting in WHM somewhere?

    Here's a perfect example of the issue... I've installed a program that crawls the site and creates a Google sitemap. When I run the program I get the same error as above. So I kill that program, and restart Apache, and the problem disappears.

    Cannot speak for the original poster, but I'm running CentOS 4.2, PHP 5.1.6, and WHM 10.8. Dual processor, 1GB.

  6. #6
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Looks like both of you are on the same slate.

    what is your connection limit in apache?
    MaxClients
    /usr/local/apache/conf/httpd.conf

    You may need to increase the connection limit and perhaps lower the timeout times and TTL accordingly.

    for total unique users:
    netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | wc -l

    for connections by each user:
    netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

  7. #7
    Member
    Join Date
    Sep 2003
    Posts
    16

    Default

    Thank you Jayh38. Good info there. I will check those netstats next time the problem arises.

    As for TTL... is that the same as the "Domain Time To Live" setting on the WHM page:
    Server Configuration >> Basic cPanel/WHM Setup

    If so, my setting is 14400.

    My "Nameserver Time To Live" is 86400 though. Do those sound like decent settings? What else might you recommend?

    As for max users... can that be accessed through WHM too? Or only through SSH?

    Thanks!

Similar Threads & Tags
Similar threads

  1. PHP or include
    By msh100 in forum Themes and Branding
    Replies: 2
    Last Post: 06-29-2008, 05:32 PM
  2. PHP 5.25 Include Problem
    By BrandMan211 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 12-19-2007, 03:25 PM
  3. php include path
    By KarterJK in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-19-2004, 12:38 PM
  4. CGI/PHP include?
    By andy7t in forum Themes and Branding
    Replies: 1
    Last Post: 03-15-2004, 01:52 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube