Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    123

    Default pre-install application for new accounts

    Hello,

    I wish to pre-install a full mySQL driven, pre-configured website for new accounts on a server. Can I do this automatically when the account is created?

    I realise the mySQL database will need to be created separately and the config file for the application modified accordingly; I am looking at creating a script to do that.

    Thanks.

  2. #2
    Member
    Join Date
    Jun 2004
    Posts
    78

    Default

    I think you can place the core files into /root/cpanel3-skel/public_html and it will copy them all to the newly created accounts as they are made.

    I have only done this with a single index page but imagine it will copy multiple files if they are in there.

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    123

    Default

    Quote Originally Posted by S-Combs View Post
    I think you can place the core files into /root/cpanel3-skel/public_html and it will copy them all to the newly created accounts as they are made.

    I have only done this with a single index page but imagine it will copy multiple files if they are in there.
    Thanks; that would be ideal. Can anyone confirm this would work with multiple files and directories? It isn't something I can test on a production server.

  4. #4
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Yes, that will work and yes you can test it. Shove something in there and create a new account.

  5. #5
    Member
    Join Date
    Oct 2004
    Posts
    123

    Default

    Quote Originally Posted by jayh38 View Post
    Yes, that will work and yes you can test it. Shove something in there and create a new account.
    Thanks very much for the information.

    I can't really test it on this server because I have alot of resellers on the server constantly creating accounts.

  6. #6
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,172
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Quote Originally Posted by S-Combs View Post
    I think you can place the core files into /root/cpanel3-skel/public_html and it will copy them all to the newly created accounts as they are made.

    I have only done this with a single index page but imagine it will copy multiple files if they are in there.

    Sure it will. In fact we add more than just an index.html. You can/should also add 400, 401, 403, 404, 500.shtml error pages, a default favicon and robots.txt. That'll help get a user started and the account won't generate errors to logs for missing files when the bots get there to look around.
    (you might also add a file explaining what those files are all for like a readme.txt)

  7. #7
    Member
    Join Date
    May 2004
    Posts
    24

    Default

    Quote Originally Posted by Infopro View Post
    Sure it will. In fact we add more than just an index.html. You can/should also add 400, 401, 403, 404, 500.shtml error pages, a default favicon and robots.txt. That'll help get a user started and the account won't generate errors to logs for missing files when the bots get there to look around.
    (you might also add a file explaining what those files are all for like a readme.txt)
    I'm going to do this on my new server but is there a way to add the error pages to all the already created accounts?

Similar Threads & Tags
Similar threads

  1. Newbie Application Install Ques.
    By wedmonds in forum New User Questions
    Replies: 1
    Last Post: 07-09-2009, 06:38 AM
  2. [ How To ] install pre-latest release ?
    By Z U E in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-12-2009, 04:45 PM
  3. How to install an application like Gallery?
    By ted_mooney_nj in forum New User Questions
    Replies: 3
    Last Post: 05-02-2007, 10:45 AM
  4. How to remove boxtrapper form pre-configured accounts
    By XPerties in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-22-2005, 05:25 AM
  5. How to pre-install CPanel behind a NAT
    By chall in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-14-2005, 11:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube