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.

Virtual Directory Support ?

Discussion in 'General Discussion' started by map007, Sep 28, 2009.

  1. map007

    map007 Active Member

    Joined:
    Jun 5, 2008
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    How can i enable Virtual Directory Support in php ?

    When i open phpinfo page it shows :-

    Server API Apache 2.0 Handler
    Virtual Directory Support disabled

    please guide me .

    Thank you :D
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    This is a feature PHP supports on IIS only.
     
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You can enable it from php.ini (main php configuration) file. For the exact path of php.ini file check "Loaded Configuration File path" in phpinfo() page.
     
  4. map007

    map007 Active Member

    Joined:
    Jun 5, 2008
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Thanks ,

    But can i create Virtual Directories through php script ?

    Please guide me.

    Thanks once again.
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    As cpanelkenneth told you in not so many words, virtual directory support with PHP is really a feature designed for MS Windows based platforms.

    You can get limited functionality under Apache over Linux but only if your PHP is setup as a DSO (Apache Module) and even then it won't be the full virtual directory functionality subset.

    Really your best bet would be to use a set of creative mod_rewrite commands in your .htaccess file to manipulate URLs as that can give you essentially the same functionality but by different means.
     
  6. map007

    map007 Active Member

    Joined:
    Jun 5, 2008
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    Thank you to all.
     
Loading...

Share This Page