ADDING RESELLERS - "The Guide"
ONE TIME CHANGES TO ACCOMODATE RESELLERS - BEGIN
IMPORTANT NOTE: Please read the entire direction to the last item before attempting these procedures.
In the event httpd.conf is overwritten or there is a move to a new server, the sitebuilder conf file is kept separate. This will also make it easier to update the conf file with new resellers and diagnose any errors.
1. Remove all entries about sitebuilder from:
/usr/local/apache/conf/httpd.conf
2. Add one entry in httpd.conf for sitebuilder:
Include /usr/local/apache/conf/sitebuilder.conf
3. Create sitebuilder.conf in the folder as noted directly above. In this case it would be in /usr/local/apache/conf and called sitebuilder.conf
4. Any sitebuilder entries you removed from httpd.conf, place them in the newly created sitebuilder.conf file.
5. Restart apache
httpd restart
Test your sitebuilder as up to this point, we really have only made a simple change and your sitebuilder should still be in full working order.
ONE TIME CHANGES TO ACCOMODATE RESELLERS - END
Now a reseller comes along and you need to set them up. Here we go...
The sitebuilder.conf file will contain all of your manually added resellers. That's why it's important to create a separate file to maintain all of this information.
MANUALLY ADD RESELLER - STEP 1
The beginning of the sitebuilder.conf file has my main configuration for my hosting site.
#
# SiteBuilder configuration file
#
########################## BEGIN MAIN SITEBUILDER
#NameVirtualHost sitebuilder
<VirtualHost ##.##.##.##:80>
Alias /admin/ /usr/local/sitebuilder/htdocs/admin/
ServerAlias *sitebuilder.*
DocumentRoot /usr/local/sitebuilder/htdocs
ServerName *sitebuilder.*
ErrorLog logs/sitebuilder-error_log
CustomLog logs/sitebuilder-access_log common
DirectoryIndex index.php
AddDefaultCharset UTF-8
<Directory /usr/local/sitebuilder/htdocs>
AllowOverride All
</Directory>
php_admin_flag max_execution_time 0
php_admin_value memory_limit 32M
<Directory /usr/local/sitebuilder/htdocs/install>
AllowOverride none
</Directory>
<Directory /usr/local/sitebuilder/htdocs/users>
AllowOverride none
</Directory>
<Directory /usr/local/sitebuilder/htdocs/repository>
AllowOverride none
</Directory>
<Directory /usr/local/sitebuilder/htdocs/install.bkp>
AllowOverride none
Order deny,allow
Deny from All
</Directory>
</VirtualHost>
########################## END MAIN SITEBUILDER
After it, I add resellers such as:
########################## BEGIN RESELLER SITEBUILDER
<VirtualHost ##.##.##.##:80>
Alias /admin/ /usr/local/sitebuilder/htdocs/admin
ServerAlias *sitebuilder.yourreseller.com
DocumentRoot /usr/local/sitebuilder/htdocs
ServerName *sitebuilder.yourreseller.com
ErrorLog logs/sitebuilder-error_log
CustomLog logs/sitebuilder-access_log common
DirectoryIndex index.php
AddDefaultCharset UTF-8
<Directory /usr/local/sitebuilder/htdocs>
AllowOverride All
</Directory>
<Directory /usr/local/sitebuilder/install>
AllowOverride none
</Directory>
<Directory /usr/local/sitebuilder/htdocs/users>
AllowOverride none
</Directory>
<Directory /usr/local/sitebuilder/htdocs/repository>
AllowOverride none
</Directory>
<Directory /usr/local/sitebuilder/install.bkp>
AllowOverride none
Order deny,allow
Deny from All
</Directory>
</VirtualHost>
##################################
For each new reseller, just copy and paste and change two lines (ServerAlias and ServerName).
Restart apache so it will see the newly added reseller.
MANUALLY ADD RESELLER - STEP 2
Okay, so we've added the reseller to the sitebuilder.conf file. The next step is...
Log in to WHM
DNS Functions >> Edit DNS Zone >> Select the reseller's domain to modify and add the following two lines...
sitebuilder.yourreseller.com. 14400 A ##.##.##.##
*.sitebuilder.yourreseller.com. 14400 A ##.##.##.##
The above bolded item was added on April 5, 2006. Without it, the temporary trail accounts won't work since it can't recognize trial accounts without it.
MANUALLY ADD RESELLER - STEP 3
Now you need to setup a reseller within sitebuilder itself.
1. Login to sitebuilder admin
http://sitebuilder.yourdomain.com/admin_login.php
2. Resellers Management Icon
3. Add Reseller Button
4. IMPORTANT: The Domain will be sitebuilder.yourreseller.com (make sure to put sitebuilder. at the beginning or it won't work - trust me!)
5. The rest of the information is setup like a normal sitebuilder plan.
6. NOTE: When you setup a reseller, you or the reseller will need to visit their (as in the resellers) admin and adjust the plan to include the host and modules and templates. If this isnt done, visitors to the resellers trial sitebuilder site wont work (cant show any templates, modules, etc.).
7. You also need to tell resellers about their links such as:
Send your trial visitors here:
http://sitebuilder.yourreseller.com
Send your paying visitors here:
http://sitebuilder.yourreseller.com/sitelogin.php
Your Admin:
http://sitebuilder.yourreseller.com/admin_login.php
Enjoy!