map007

Active Member
Jun 5, 2008
43
0
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
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
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
This is a feature PHP supports on IIS only.
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
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.
 

map007

Active Member
Jun 5, 2008
43
0
56
Hi,

Thanks ,

But can i create Virtual Directories through php script ?

Please guide me.

Thanks once again.
 

Spiral

BANNED
Jun 24, 2005
2,018
8
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.