The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Possible to create a custom php default file?

Discussion in 'General Discussion' started by kmeier, Aug 21, 2015.

  1. kmeier

    kmeier Registered

    Joined:
    Aug 21, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    9215
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a reseller account. I am wondering if it's possible to create a php file that is always inside the web directory whenever i create a new account.

    Right now I create about 3-4 new accounts for my customers per day. Each time I have to login to every new account and upload a site-installer.php file for my customers which I created myself for my customers so they can quickly install my websites.

    Basically, I have a custom php script, that I would like to be added to each new web directory when I create a new account, just like the default.html file, but instead my own customer php script.
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    you add site-installer.php /home/reseller_username/cpanel3-skel/ for your reseller account and it will add it every time you create a new account.
     
    kmeier likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    669
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page