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!

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:
    56
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,569
    Likes Received:
    45
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    This is a feature PHP supports on IIS only.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. map007

    map007 Active Member

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

    Thanks ,

    But can i create Virtual Directories through php script ?

    Please guide me.

    Thanks once again.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    8
    Trophy Points:
    193
    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:
    56
    Hi,

    Thank you to all.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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