Auto Install Subdomain & Script

4 replies
Hello

I am launching a invoice business soon and I am looking to automate the whole business. I want visitors to be able to visit the site, buy the product, pay and then have something that would automatically set up a sub-domain for them. On the root of the sub-domain, the invoicing script would then be installed automatically, a user created based on username and password when registered and all those details emailed to the customer.

I shouldn't have to touch the process.

Is there anything out there that would do this at the moment?

This is my job ad on odesk as I cannot seem to find anything that would do this.

This is the process:

1. Customer visits a landing page. Example: http://www.mylanderpages.com/SimplyI...Simply-Invoice

I would like the landing page to look like the above.

2. Customer clicks 'try out our demo' button and then taken to demo page with Buy Now button on the top. The demo account must automatically login with the demo username and password.


This is the buy now process I would like to happen when the customer is ready to buy now:

1. Customer clicks buy now and is taken to Paypal payment page to subscribe monthly

2. Once the customer makes payment, I would like the following to happen:

- Get's taken back to payment confirmation page stating payment has been confirmed and setting up your account with loading circles.
- While that is happening, in the back-end there should be a set up process happening.

The set up:

- A sub-domain needs to be automatically created based on the customers business name.
- Once the sub-domain is created, script: https://invoiceplane.com/ needs to be automatically installed on the root of the sub-domain.
- A user account then needs to be automatically set up so users can logon to the script and start using it.

Once the setup process is completed above the buy now process would continue to the following:

- A welcome email then get's sent to the customer automatically stating the link they need to visit in order to login as well as there login details.
#auto #install #script #subdomain
  • Profile picture of the author David Beroff
    Could you simply have all subdomains (i.e., *) point to the same server (and script), and then the server could detect which subdomain was requested? So a.yourdomain.com would respond as A's site and b.yourdomain.com would respond as B's site
    Signature
    Put MY voice on YOUR video: AwesomeAmericanAudio.com
    {{ DiscussionBoard.errors[10022782].message }}
  • Profile picture of the author FreedMarketing
    Originally Posted by rikkib51 View Post

    Hello

    I am launching a invoice business soon and I am looking to automate the whole business. I want visitors to be able to visit the site, buy the product, pay and then have something that would automatically set up a sub-domain for them. On the root of the sub-domain, the invoicing script would then be installed automatically, a user created based on username and password when registered and all those details emailed to the customer.

    I shouldn't have to touch the process.

    Is there anything out there that would do this at the moment?
    Don't know if there is anything out of the box, but it sounds like you could just use a wordpress membership plugin or something like that to handle the account setup. That would probably be your easiest solution. The whole account setup could be a WordPress membership setup.

    Then when the person buys you have a script run in php that creates directory and installs the script files. This is pretty easy and you can probably figure it out by just looking up php create directory, php copy files to directory. Stuff like that. But if you post that job alone you probably won't have a problem getting someone.

    The tricky part may be having the user only have access to that subdomain when logging into the membership site. I think it could be done. There are probably plugins that are meant more for accounts then membership sites. Also when you write the directory you could use a variable from when they sign up to name it. For example there username. So you would know the url they need to go to is www.yoursite.com/username. You could somehow integrate that into the user account I am sure.

    Anyway maybe that helps with how to get it done or explain it a different way to someone. It sounds like one of those setups your going to have to get creative. lol
    {{ DiscussionBoard.errors[10022957].message }}
  • Profile picture of the author Aravind Murthy
    There could be numerous ways to achieve this . One could be using mod_rewrite in combination with parameterization of the script. Should be easy but I don't have complete details of the script itself, may be I can help if I could get more details.
    {{ DiscussionBoard.errors[10025339].message }}
    • Profile picture of the author FreedMarketing
      This may help you also. It is part of a script I wrote a while back. What this part of the script is doing is checking to see if a folder exists in the name of a variable called id. If it doesn't exist it creates the folder. Then adds a folder called notes to that folder. Then creates a file notes.txt in that folder.

      The last part you would just change to copying the files you want to the folder you created instead. Or create the files in the folder and copy the contents from another file to the ones you created. Don't know exactly what is best, but some googling would tell you. This code should get you well on your way though.

      Note: All the $ in variables are being striped out when I post it in here.


      PHP Code:
      //Checks If #ID Folder Exists-If Not Creates One//
      if (!file_exists('../offers/'.id.'')) {
          
      mkdir('../offers/'.id.''0755true);
      }
      //Checks If #ID Folder Exists-If Not Creates One//

      //Checks If #ID Notes Folder Exists-If Not Creates One//
      if (!file_exists('../offers/'.id.'/notes')) {
          
      mkdir('../offers/'.id.'/notes'0755true);
      }
      //Checks If #ID Notes Folder Exists-If Not Creates One//

      //Creates Notes File In the #ID Notes Folder//
      dir_path "../";
      filename 'notes.txt';
      filehandle fopen("../offers/id/notes/" .filename'w') or die("can't open file");
      filecontent ''.notes.'';
      if (
      fwrite(filehandlefilecontent) === FALSE) {
          echo 
      "Cannot write to file ()";
          exit;
      }
      //Creates Notes File In the #ID Notes Folder// 
      {{ DiscussionBoard.errors[10025605].message }}

Trending Topics