hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : HELP ME PLESE I AM NEW HERE
Reply

VPS Hosting Virtual private server discussion and vps hosting solutions. Review VPS hosting providers and offer advice on virtual web hosting solutions. If your service is unavailable, please click here.
Forum Jump

HELP ME PLESE I AM NEW HERE

Reply Post New Thread In VPS Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-31-2008, 09:25 AM
gillboss gillboss is offline
Junior Guru Wannabe
 
Join Date: May 2008
Location: Australia
Posts: 84
Arrow

HELP ME PLESE I AM NEW HERE


i have vps server with WHM 11.23.0 cPanel 11.23.1-R24909
CENTOS Enterprise 5 i686 on virtuozzo - WHM X v3.1.0 cpanel and for my sites also cpanel with x/x2/xmail/xmail3 etc theme 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

Reply With Quote


Sponsored Links
  #2  
Old 06-02-2008, 05:22 PM
cPanelDavidG cPanelDavidG is offline
Web Hosting Master
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 563
I highly recommend you modify your code to call the cPanel APIs directly rather than calling elements of the GUI, which are subject to change without notice.

The x2 theme has since received an update to fix this bug. However, code designed for x2 under cPanel 10 will not make use of this fix unless they modify their code accordingly.

This is not an issue if you simply call the APIs directly.

__________________
David Grega
cPanel Technical Product Specialist

Reply With Quote
  #3  
Old 06-02-2008, 07:14 PM
JohnSH JohnSH is offline
Web Hosting Evangelist
 
Join Date: Aug 2003
Location: Phoenix AZ
Posts: 499
Quote:
Originally Posted by cPanelDavidG View Post
I highly recommend you modify your code to call the cPanel APIs directly rather than calling elements of the GUI, which are subject to change without notice.

The x2 theme has since received an update to fix this bug. However, code designed for x2 under cPanel 10 will not make use of this fix unless they modify their code accordingly.

This is not an issue if you simply call the APIs directly.
I would listen to this guy, he comes direct from CPanel.

__________________
John B | ServerHub® Customer Support | ServerHub - Dedicated, VPS, Reseller, and Cloud solutions.
ServerHub WHT Liason | http://www.serverhub.com

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?