Jump to content
[MUST READ] Forum Rules ×

einet

Senior Members
  • Posts

    286
  • Joined

  • Last visited

  • Days Won

    14

Posts posted by einet

  1. On 28/6/2018 at 8:01 AM, PCTipsGR said:

    I didn't say that your method is not correct, however to do this someone would need:

    1. A Free cPanel Hosting available anytime
    2. To do the same process every 90 days
    3. A very good friend :D

    Unfortunately, most people don't have free access to free cPanel hosting (as if they had, they wouldn't be here).

    It is still a good tutorial for the time that the certificate works.

    I will make another tutorial with Let's Encrypt installation involving CloudFlare and will also leave it on your profile.

    What is the cloud of clouds? You mean CloudFlare?

    And also what problem does it create exactly??

    I meant that if you have customer websites already created with the extension of the main domain example.mydomain.com you will have problems with cloudflare when it comes to keeping the dns connected, there are disconnections of the sub-domain sites of the clients that already they have an account, now if you have the main website of your hosting separately you do not have problems with cloudflare.

  2. 7 hours ago, PCTipsGR said:

    I left one there, your tutorial will not work in every case because Let's Encrypt always performs a validation check and will revoke the certificate.

    Go and check it if you want, if you really want a Let's Encrypt/SSLForFree Certificate you can use it with CloudFlare by adding a TXT record through Cloudflare DNS.

    It will not work if you have CloudFlare from vPanel, if you have CloudFlare from there you can use the Manua Verification, not the DNS one, and it will work.

     

    I install | certificates in accounts that host someone in this way [without using the cloud of clouds] since the cloud of clouds has problems to disconnect and generate products in the networks of the clients. And so far I have not had any problems greetings maybe someone else will work for that I take an hour and a half of my valuable time to create this tutorial, to try to help them.

  3. 21 hours ago, PlanetCloud said:

    ¿Entonces estás diciendo que el uso de inodos se reiniciará todos los meses? 

    ¿O es Google Translate lo arruinó? 

    if at the same time that the counters of the consumed bandwidth are restarted, I explain if it was consumed or frame more than what it really possesses when resetting itself auntomatically it shows the real quantity that it has but this is reset every 30 days

  4. 9 hours ago, Tamil said:

    Cómo reducir el almacenamiento detelo todo el archivo de la carpeta mysite y la base de datos, pero no disminuye.

    the inodes are restarted every 30 days when the server reboots the monthly fee you can delete the files you think are unnecessary on your website and wait for the next reboot that is each end of the month your website can work as long as it is not suspended

  5. QUyxqx1.png

    https://i.imgur.com/QUyxqx1.png

    Here I leave a clearer example to verify a domain with a form and the function plus the working library I remind you that the file should go next to the index since it requires the library that you spent last remember to add the user and pass of your reseller panel to the file that happened to them

    I apologize if I wrote with spelling errors and if my English is not understood ice a quick example

    THE FILE >> CHECK DOMAIN FILE

  6. 17 hours ago, PlanetCloud said:

    De acuerdo, ¿cómo agregar el parámetro sobre qué dominio verificar?

    to verify a domain you can do it from a search form or by POST or GET method in the example that I add to verify the domain was by get in the url when ending like this? domaim = the examplenameofexample.com and in this case use the function $ client-> availability ($ domain); showing answer of 1 if the domain is available and 0 or nothing if it is already registered I will make a simpler example to make it easier

  7. 12 hours ago, CrazyMAzeY said:

    Is anyone in this forum directly linked to iFast (MOFH) ?

    I setup a few reseller domains for testing and a couple of websites in the reseller panel. But i've looked everywhere and cannot delete them.

    also been trying to setup the main hosting site where clients sign up and does not seem to work with SSL so I came here as suggested and have been trying out the newly created login/signup module but still not sure if that is created by iFast ??

    If I create test domains, go to the cpanel of the account where you created them and proceed to remove domain by domain from the domains area in your cpanel once deleted all go to your reseller panel and deactivate the accounts created after 30 days the server will automatically remove them from the system

  8. 14 hours ago, PlanetCloud said:
    
    <?php
    include 'vendor/autoload.php';
    // In [API username and API password] go the data of your reseller account that the data gives you here https://panel.myownfreehost.net/panel/index2.php?option=api
    
    $client = new \HansAdema\MofhClient\Client('ZbzVk5V3JxXnFK50tmB8reIBSSCir9UrdMwi', 'SFZb6XH4VW2Ii9SyIKQFq0bi0');
    //example 1 domain exist?
    $domain = $_GET['domain'];
    
    // We check if the sub-domain is available
    echo $client->availability($domain);
    
    //  Create a user account ('User8charactersmax', 'password','email','Domainorsub-domain','planName')
    //echo $client->createAccount('username8charmax', 'password', 'email', 'domainexample.com', 'plan_one');
    
    // Suspend user account must be the same as example registry name ('username8charmax', 'Suspension message')
    //echo $client->suspend('username8charmax', 'Towards a test with a script in php');
    
    // Change account password example('username8charmax', 'newpassword')
    //echo $client->password('username8charmax', '123456as');
    
    // Reactivate account suspended Need only the example user name (username8charmax)
    //echo $client->unsuspend('username8charmax');
    
    // One example live in create account
    //echo $client->createAccount('x3bugger', '123456asxl', '[email protected]', 'x3bugger.domain.com', 'standar');

    That is my code (Of course I changed the Password and Username!.

    Do I need to modify anything??

    if you have placed the user and password of your reseller api mas IP in the panel of the api reseller does not need to do anything else can perform tests with functions that are disabled with //

    for example:
    // echo $ client-> availability ($ domain);
    // echo $ client-> createAccount ('');
    // echo $ client-> suspend ('');
    // echo $ client-> password ('');
    // echo $ client-> unsuspend ('');
    // echo $ client-> createAccount ('');
    are the only ones you can use with the script uncheck the line you want to use since it is currently active is echo $ client-> availability ($ domain); to verify if a domain name exists in your reseller

  9. 10 minutes ago, einet said:

    if you are going to carry out local tests from your pc, you must indicate the ip of your computer, the one indicated by https://www.cualesmiip.com/ if you are going to execute the script from your web server, you must indicate the ip of your web server in the api reseller

    can also activate the error log in alter php config to see with more details the errors shown by the php when the ip is incorrectly configured shows the address from where the script is running on your hosting

  10. 1 minute ago, PlanetCloud said:

    PHP 7.0 still the same.

    How to check my server IP?

     

    Is it correct to Google "What Is My IP" for my computer?
    And is it correct to use Google Dig Tool to search "www.planetcloudhosting.cf" IP?

    if you are going to carry out local tests from your pc, you must indicate the ip of your computer, the one indicated by https://www.cualesmiip.com/ if you are going to execute the script from your web server, you must indicate the ip of your web server in the api reseller

  11. 10 minutes ago, Hostingaj said:

    Thanks, got the email.

     

    16 minutes ago, einet said:

    oquei you placed your username and password of your client reseller in
    $ client = new \ HansAdema \ MofhClient \ Client ('API Username', 'API Password');
    and you added the ip of the team where you are executing the script inside the folder there are some images and a txt with instructions

    E0e3YfQsSmGWfKf8J5i8xw.jpg

    Local test with the script working. In this case, testing if the google.com domain exists in my reseller server.
    Showing 1 indicates that the domain is available in my reseller server logically is to verify if a domain or sub domain of your reseller hosting exists or not a basic example. If you were able to perform this test without any error, indicate that the usename and password are well added remember to add the ip from where you are doing tests

  12. 3 minutes ago, PlanetCloud said:

    Hi, I've tested your code and it gave me this error :

    t4U2Y3.PNG

    oquei you placed your username and password of your client reseller in
    $ client = new \ HansAdema \ MofhClient \ Client ('API Username', 'API Password');
    and you added the ip of the team where you are executing the script inside the folder there are some images and a txt with instructions

  13. 1 hour ago, PlanetCloud said:

    Hi, I keep getting this error : Parse error: syntax error, unexpected '-', expecting ',' or ';' in C:\wamp64\www\other-project\mofh-api\index.php on line 5

    Can somebody help me out?
     

    My code :

    
    <?php
    
    require_once(vendor\autoload.php);
    
    use vendor\hansadema\mofh-client\src\Client.php;
    
    // Create a new API client with your API credentials.
    $client = Client::create([
        'apiUsername' => 'your_api_username',
        'apiPassword' => 'your_api_password',
        'plan' => 'my_plan', // Optional, you can define it here or define it with the createAccount call.
    ]);
    
    // Create a request object to create the request.
    $request = $client->createAccount([
        'username' => 'abcdefgh', // A unique, 8 character identifier of the account.
        'password' => 'password123', // A password to login to the control panel, FTP and databases.
        'domain' => 'userdomain.example.com', // Can be a subdomain or a custom domain.
        'email' => '[email protected]', // The email address of the user.
        'plan' => 'my_plan', // Optional, you can submit a hosting plan here or with the Client instantiation.
    ]);
    
    // Send the API request and keep the response.
    $response = $request->send();
    
    // Check whether the request was successful.
    if ($response->isSuccessful()) {
       echo 'You can login as: ' . $response->getVpUsername();
    } else {
       echo 'Failed to create account: ' . $response->getMessage();
    }
    
    ?>

    try to use the one that I just sent to the email remember to read the instructions and that the php version of your localhost is 5.4 or higher

  14. 15 hours ago, mike said:

    I believe documentation already exist for what einet sent you.

    @mike is right there is already a project created in GitHub only that the one that exists there does not include the complete script (composer) and its libraries and I would like to participate in such a project but I do not have free time

×
×
  • Create New...