Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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,696
    Likes Received:
    71
    Trophy Points:
    203
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    kmeier likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,335
    Likes Received:
    1,851
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, as mentioned, you can utilize the skeleton directory feature that's documented at:

    cPanel - Skeleton Directory

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice