Yii 1.1: subdomain

Create subdomain (cPanel)

Subdomain is extensions to create subdomain but not using cpanel interface. You can customize it


requirements of using this extension (e.g. Yii 1.1 or above)...


  1. Extract the downloaded file to your application extensions directory
  2. Just place the following code inside your controller file:
$sb = new Subdomain('sopwer.net'); //youdomain
$sb->setCpanelInfo('user_cpanel','pass_cpanel'); //user & pass cpanel
$sb->setCpanelSkin('x3'); //skin
$sb->setSubdomain('ramdani'); //subdomain name


Don't hesitate to contact me if there are any errors.

Total 3 comments

#16734 report it
Ashish Gupta at 2014/03/23 03:44pm
Cpanel extension

I am getting exception when i am try to include MPCpanel file into component array( 'class'=>'MPCpanel', 'username'=>'yourUsername',//required 'url'=>'http://mydomain.com:2086/',// by default 'auth_type'=>'basic',//accepted = basic or whm //basic by default 'api_type'=>'json',//accepted = json or xml //json by default 'password'=>'myPassword',//required for basic type of authentication 'access_key'=>'myBiggggggggggKey',//required for whm type of authentication ),

I am also try to import file which is available in extensions folder

'import'=>array( 'application.models.', 'application.components.', 'application.extensions.MPCpanel', ),

I am getting the error message CException Property "CWebUser.cpanel" is not defined. Please help me I am new in Yii Thank in advance

#8998 report it
ramdani at 2012/07/12 12:16am

Don't hesitate to contact me. if you get something wrong about the extensions

#8988 report it
robregonm at 2012/07/11 12:06pm
Interesting extension

Hm... Looks very interesting and promising... Taking a loot at it :)

Leave a comment

Please to leave your comment.

Create extension