have vps server with whm cpanel and for my sites also cpanel i have issue i cant make folder/dir with php code
mkdir('mydir', 0777); like this and also cant make subdoamins with coding i have script there people can make therir own wap sites and i use this coding
$name=$_POST['name'];
mkdir (strtolower("$name"));
@ chmod(strtolower("$name",0755));
mkdir(strtolower("$name/files"));
@ chmod(strtolower("$name/files",0755));
mkdir(strtolower("$name/pics"));
@ chmod(strtolower("$name/pics",0755));
and for make their subdoamin i use
$cpanel_user = "username";
$cpanel_password = "password";
$cpanel_host = "mysite.com";
file("http://.$cpanel_user.":".$cpanel_password."@".$cpanel_host:2082/frontend/x2/subdomain/doadddomain.html?domain=$name&rootdomain=mysite.com'");
and it was worked at my normal site but now at vps it wont work users data dum in data base but there no folder /dir make like if user name is test it should be http://test.mysite.com
but nor subdoamin and others folder creat in user dir/folder
is it shell_exec issue if yes then how can i solve it ?
hope you understand my issue and help me thanks
mkdir('mydir', 0777); like this and also cant make subdoamins with coding i have script there people can make therir own wap sites and i use this coding
$name=$_POST['name'];
mkdir (strtolower("$name"));
@ chmod(strtolower("$name",0755));
mkdir(strtolower("$name/files"));
@ chmod(strtolower("$name/files",0755));
mkdir(strtolower("$name/pics"));
@ chmod(strtolower("$name/pics",0755));
and for make their subdoamin i use
$cpanel_user = "username";
$cpanel_password = "password";
$cpanel_host = "mysite.com";
file("http://.$cpanel_user.":".$cpanel_password."@".$cpanel_host:2082/frontend/x2/subdomain/doadddomain.html?domain=$name&rootdomain=mysite.com'");
and it was worked at my normal site but now at vps it wont work users data dum in data base but there no folder /dir make like if user name is test it should be http://test.mysite.com
but nor subdoamin and others folder creat in user dir/folder
is it shell_exec issue if yes then how can i solve it ?
hope you understand my issue and help me thanks