Search results

  1. Z

    Using the linux screen command with php

    Hey guys! 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...
  2. Z

    Restoring cpanel full backup using PHP

    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...
  3. Z

    Restoring cpanel full backup using PHP

    Hey guys i have this code that works greate to create a full backup $xmlapi = new xmlapi($_CONFIG['server']['ip']); $xmlapi->password_auth($_CONFIG['server']['account'],$_CONFIG['server']['pass']); $xmlapi->set_port('2083'); $api_args = array( 'ftp', $_CONFIG['server']['ip']...
  4. Z

    Need help in retreving account stats

    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...
  5. Z

    Need help in retreving account stats

    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...
  6. Z

    Need help in retreving account stats

    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'); $xmlapi =...
  7. Z

    Need help in retreving account stats

    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 ;-)
  8. Z

    Need help in retreving account stats

    Hmm i get an error ... $ip = getenv('**.**.**.**'); $root_pass = getenv('***'); $account = "***"; $xmlapi = new xmlapi($ip); $xmlapi->password_auth($account,$root_pass); $xmlapi->set_debug(1); $args = array('display' => 'ftpaccounts|perlversion|hostname|operatingsystem'); print...
  9. Z

    Need help in retreving account stats

    How do you transform https://example.com:2083/json-api/cpanel?cpanel_jsonapi_module=StatsBar&cpanel_jsonapi_func=stat&cpanel_jsonapi_version=2&display=ftpaccounts|perlversion|hostname|operatingsystem into an api 2 call? And do i really need to provide my root password? Is there an other way i...
  10. Z

    Need help in retreving account stats

    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...
  11. Z

    mod_dav_svn dependencie check fail

    What can i do to get pass this error Error: Package: mod_dav_svn-1.6.11-9.el6_4.x86_64 (updates) Requires: httpd-mmn = 20051115
  12. Z

    mod_dav_svn dependencie check fail

    Thx for the guide Veeble-Adam but thats not helping my problem at all. All you say is "2. Install mod_dav_svn " Thats exacly what I tryed
  13. Z

    mod_dav_svn dependencie check fail

    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!" I double...
  14. Z

    PHP disabled functions

    Yes i use suPHP and no i do not have an other php.ini for that account.
  15. Z

    PHP disabled functions

    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...