Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Apache time out on PHP include() through HTTP

Discussion in 'EasyApache' started by InteractM, Apr 8, 2013.

  1. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I have a page with following code

    PHP:
            $protocol strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE 'http' 'https';
            
    $host $_SERVER['HTTP_HOST'];
            
            include(
    $protocol '://' $host '/index.php/includes/header'); 
    which returns time out for that part of the code. Direct access to http://www.mydomain.com/index.php/includes/header renders header properly.

    Does Apache has something missing to execute properly PHP include() through HTTP?

    Thanks for any tips.
     
  2. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    135
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Is there any other way to run this under WHM?

    or can I enable SELinux for a while and then disable it back?

    Thanks
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice