Subdomain restore missing open_basedir

sparek-3

Well-Known Member
Aug 10, 2002
2,042
230
368
cPanel Access Level
Root Administrator
There appears to be a bug in cPanel account restore function.

If a server has open_basedir protection enabled, then when an account is restored from a backup, the subdomains for that account do not include the open_basedir lines in the VirtualHost entry for the subdomains.

For example, if you have the domain, example.com and it has a subdomain, sub.example.com. And if you have open_basedir protection enabled on the server. If that account is restored from its backup, the VirtualHost for example.com will be correct, it will have the open_basedir protection lines. However, the VirtualHost for sub.example.com will not have the open_basedir protection lines.

I have tested this on Release-16448. The same behavior can be seen whether you use the command line /scripts/restorepkg or if you restore an account from a backup in the WHM.

I have posted this in Bugzilla

http://bugzilla.cpanel.net/show_bug.cgi?id=5781