Apache settings in WHM

Discussion in 'Apache' started by carl gale, Apr 16, 2010.

  1. #1
    Not sure if the right place for this but i'll give it a go and see what happens :)

    I have a php script running which I am trying to include content from another script on (I know it works as I have had it working in the past). However at the moment instead of outputting the content of the 2nd script into the page of the first it is showing me an error message of Fatal error: Call to undefined function virtual() in The reason this is not working is related to the php/whm/apache settings and although I have had it working in the past, I cannot for the life of me remember the settings I used.

    Anyone care to take a guess please?

    Thanks
     
    carl gale, Apr 16, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Is the second script located within the same directory? If not, it sounds like you may have php's open base directory option enabled, which binds users to their own home directory.
     
    RHS-Chris, Apr 16, 2010 IP
  3. FavouritesBlog

    FavouritesBlog Peon

    Messages:
    846
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    open base directory option has nothing to do with this error:

    Fatal error: Call to undefined function virtual()

    Virtual - google - virtual function apache mod - results: http://php.net/manual/en/function.virtual.php
     
    FavouritesBlog, Apr 16, 2010 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    RHS-Chris, Apr 16, 2010 IP