This WHM thingy is driving me crackers! And my host isn't providing much help either!!.
I want to run a script that uses the createacc-> routine to set up a sub domain, (which my host insists can only be done via cPanel)
$domain="sticky-scripts.com";
$sub domain="xyz";
I have used "$subdomain\.$domain" , (the \. to avoid joining two variables) and I got the following back
WWWAcct 8.0 by J. Nick Koston +===================================+ | New Account Info | +===================================+ | Domain: xyz.sticky-scripts.com | Ip: 64.91.236.194 (n) | HasCgi: y | UserName: xyzabcd | PassWord: xyzabd | CpanelMod: default | HomeRoot: /home | Quota: 15 Meg | NameServer1: ns39.dnsprotect.com | NameServer2: ns40.dnsprotect.com | NameServer3: | NameServer4: | Contact Email: +===================================+ User xyzabcd added Changing password for xyzabcd Password for xyzabcd has been changed Removing Shell Access (n) Changing shell for xyzabcd. Shell changed. Copying skel files from /home/stickys/cpanel3-skel/ to /home/xyzabcd/ Using redhat 7.1/mdk 8.0 Using new quota support (uid 330 15360 15360 ): Filesystem blocks soft hard inodes soft hard /dev/md1 0 15360 15360 0 0 0 /dev/md0 8 15360 15360 2 0 0 /dev/md4 0 15360 15360 0 0 0 /dev/md2 0 15360 15360 1 0 0 Name Virtual Host already exists Added Entries to httpd.conf (noip) Added Named Entry Added Named File Bind reloading on saturn using rndc Restarting apache skip CONTACTAIM (2) [3] send to CONTACTEMAIL (3) [3] wwwacct creation finished
Account Creation Complete!!!
Ftp Password Files synced Vhost Passwords synced The account has been set up
but check via ftp, and "/home/sticky/xyz" and it's not there!! What am I doing wrong??
Also, the skel within home/sticky/cpanel3->skel SHOULD copy files to the new account. It doesn't. (The above shows them going to home/xyzabcd, but not within the stickys directory, but the one above)
Am I getting is all wonky - or is my host also adding to mayhem? Your comments welcome poste haste before I go completely loopy!!
I want to run a script that uses the createacc-> routine to set up a sub domain, (which my host insists can only be done via cPanel)
$domain="sticky-scripts.com";
$sub domain="xyz";
I have used "$subdomain\.$domain" , (the \. to avoid joining two variables) and I got the following back
WWWAcct 8.0 by J. Nick Koston +===================================+ | New Account Info | +===================================+ | Domain: xyz.sticky-scripts.com | Ip: 64.91.236.194 (n) | HasCgi: y | UserName: xyzabcd | PassWord: xyzabd | CpanelMod: default | HomeRoot: /home | Quota: 15 Meg | NameServer1: ns39.dnsprotect.com | NameServer2: ns40.dnsprotect.com | NameServer3: | NameServer4: | Contact Email: +===================================+ User xyzabcd added Changing password for xyzabcd Password for xyzabcd has been changed Removing Shell Access (n) Changing shell for xyzabcd. Shell changed. Copying skel files from /home/stickys/cpanel3-skel/ to /home/xyzabcd/ Using redhat 7.1/mdk 8.0 Using new quota support (uid 330 15360 15360 ): Filesystem blocks soft hard inodes soft hard /dev/md1 0 15360 15360 0 0 0 /dev/md0 8 15360 15360 2 0 0 /dev/md4 0 15360 15360 0 0 0 /dev/md2 0 15360 15360 1 0 0 Name Virtual Host already exists Added Entries to httpd.conf (noip) Added Named Entry Added Named File Bind reloading on saturn using rndc Restarting apache skip CONTACTAIM (2) [3] send to CONTACTEMAIL (3) [3] wwwacct creation finished
Account Creation Complete!!!
Ftp Password Files synced Vhost Passwords synced The account has been set up
but check via ftp, and "/home/sticky/xyz" and it's not there!! What am I doing wrong??
Also, the skel within home/sticky/cpanel3->skel SHOULD copy files to the new account. It doesn't. (The above shows them going to home/xyzabcd, but not within the stickys directory, but the one above)
Am I getting is all wonky - or is my host also adding to mayhem? Your comments welcome poste haste before I go completely loopy!!
Comment