I have a world of warcraft private server hosted on my server and i use the linux screen command to stop/start/restart the server. I would like to make a php module on my website that would allow me to do it from there with out having to use SSH. This way, my game staff will also have...
Thanks for you help. I am doing this for a client that asked to have control on his backups from his administration panel. I got the directory secured with htaccess and i know i can trust the client.
I took a look at the fonction you gave but it's not usable for what i want to do. Theres only...
Hey guys i have this code that works greate to create a full backup
$xmlapi = new xmlapi($_CONFIG['server']['ip']);
$api_args = array( 'ftp', $_CONFIG['server']['ip']...
It worked. The SSL message i had when trying to log in with root was because the root user does not have a cpanel account. And the access denied i had was because of the port number. Thanks a lot for your help solving this issue. I should have everything i need to query cpanel and put up some...
I just noticed that it works with my root user/password ... is it normal that normal users don't have access to the API?
When i tryed with the root info i got an other error:
Fatal error: Uncaught exception 'Exception' with message 'curl_exec threw error "SSL read: error:1408F119:SSL...
Your right :-)
no more error ... but nothing is showing ... how can i retrive the stats i requested to the API?
My code looks like this so fare
$ip = '**.**.**.**';
$root_pass = '***';
$account = "***";
$args = array('display' => 'ftpaccounts|perlversion|hostname|operatingsystem');
Yeah thats what i thought but i tryed both ... giving the IP
$ip = getenv('**.**.**.**');
and the var like this:
$ip = getenv($_SERVER['HTTP_HOST']);
both of them return the same error ...
btw, thx for your help koston. It's really apreciated ;-)
How do you transform
into an api 2 call?
And do i really need to provide my root password? Is there an other way i...
Hey guys i would like to retreive the hosting stats for a giving username/password on my server.
The exact info that we have in the cpanel left side would be greate.
Does anybody have a code that generates this kind of info?
Main Domain ***
Home Directory /home/***
Last login from...
Hi i need to install on my cpanel server running redhat a full svn installation (BTW, would be great if this could be included in the easy apache options ...) Anyway, i runned the following command:
yum install subversion
And it worked great. it finised with a nice "Complete!"
Hey guys i am trying to secure my server as much as i can after finding a c99.php shell uploaded by a hacker in one of are hosting accounts. One of the changes we would like to implement is the blocking of some of the most dangerous PHP functions we could think of. To do that, we used the...