Cmd_account_user

dm_NL

Verified User
Joined
May 30, 2008
Messages
6
By default directAdmin put these files in an user-account:

/public_html/cgi-bin
/public_html/index.html
/public_html/logo.jpg
/public_html/400.shtml
/public_html/401.shtml
/public_html/403.shtml
/public_html/404.shtml
/public_html/500.shtml

Is there a way to put my own files in "public_html" instead ?
Oohh.. and how do you do that ?

:confused:
 
If you want to put your own files in public_html

just drag the files you want into your ftp, and make sure, if you want to upload a index.php, make sure you delete index.html first
 
I know you can do that with FTP. But thats not what I mean. I mean, how can I do that automaticly with DA ??
 
Last edited:
Ok... let me be more specific here :D

I'm using Hadar Porat DirectAdmin class. To create an useraccount I do this:

PHP:
$da->createUserAccount($username, $email, $password, $package, $ip)

It works great... BUT I want my own files in public_html instead of the default ones.
 
Last edited:
I get what you mean, why not just access the users account, then delete them??
 
Because I want to do it all in one script. But I guess there is no solution for this other than to do it manualy... :(
 
Go here and edit the files to your liking:
Code:
/usr/local/directadmin/data/templates/default/
 
Last edited:
I have tried that already but it didn't work.:(

Please.... does anyone has the right solution....??
 
The path you are looking for is /home/admin/domains/default/

Put any files in there that you want automatically placed in a new accounts public_html directory
 
Back
Top