The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    133
    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:
    133
    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