====== Hosted Accounts Information ====== ^Provider^Service^ |http://cc.earthlink.net|www.pontech.com| |http://www.ocssolutions.com/|Wiki| |GoDaddy|Domains| |Enom|Domains| ===== subtrac.com / subtrac.org ===== ==== TODO ==== * apache2 is needed for subversion, by default is set to start on boot, but apache may win and there for attach to port 80 preventing apache2 from starting ==== Useful Commands ==== * adduser (add a new user to the system) * scp (ssh copy eg: scp localfile.whatever root@remoteserver.com:/directory/) ==== subversion ==== === create a repository === * # mkdir /var/svn-repos/project-name/ * # svnadmin create - -fs-type fsfs /var/svn-repos/project_zen ( two hyphens needed with no space in front of fs-type ) * # svnadmin create - -fs-type fsfs /var/svn-repos/project_wombat * ... * # chown -R www-data:subversion /var/svn-repos/* (only needed if the directory didn't pick up parent directory permissions * # chmod -R 770 /var/svn-repos/* * Add the project to the /etc/apache2/mods-available/dav_svn.conf file * Restart apache2: /etc/init.d/apache2 restart === add a user to the subversion group === * # groupadd subversion (only needed to create the group in the firstplace * # addgroup john subversion * # addgroup bert subversion * # addgroup you subversion ===== OCS Solutions Web Pages ===== * http://www.ocssolutions.com/ -> wiki / subversion * http://www.globedrop.com/cpanel/ * https://pegasus.ocssolutions.com:10000/ -> webmin for svn / trac server at * http://76.191.252.210 Virtual hosted PC (subtrac.com / subtrac.org) ==== How to set up a new wiki OCS SVN Server (not dora) ==== * log on with putty to (globdrop.com not trac.globedrop.com) * cd public_html * cp -R wiki/ new_wiki/ * change .htaccess file in wiki root * Change the rewrite directory name * delete attic/ cache/ locks/ media/ meta/ and pages/ directories in the data directory (and recreate with 777 access) * cd new_wiki/conf and edit local.php * rename the wiki and change support e-mail address * chmod all files to 666, except local.php, make it 644 (don't know why) ==== How to set up a subversion repository on OCS SVN Server (dora) ==== * Add repository through webmin->servers->apache admin https://dora.ocssolutions.com:10000 * Go to servers tab and click on "SubVersion Repositories" * Select the subversion name * can be renamed through putty (to add ., - and ect.) === To set up a subversion repository on OCS SVN Server (dora) using command line (not working) === * Subversion repositories are stored in the ~/svn directory * Log on to server using putty * svnadmin create /path/to/repository === How to give a user access to the Subversion / Trac project === * Add users to the repository through webmin->servers->apache admin https://dora.ocssolutions.com:10000 * Go to servers tab and click on "Virtualmin Virtual Servers" * Click on the (Users...) list * Add permissions to every user that needs access to the repository * Click on user name * Highlight new svn project that user will gain access to === How to add a user to the Subversion / Trac on OCS SVN Server (dora) === * Go Servers -> Virtualmin Virtual Servers -> Users -> Lists... on https://dora.ocssolutions.com:10000 * Click "Add a user to this server" * Add e-mail address, real name, enable subversion = yes, select subversion projects * Click "Create" ==== How to set up a Trac on OCS SVN Server (dora) ==== * SSH in to SVN/Trac server http://trac.globedrop.com * cd trac-environments * cp -R trac/ **new_trac**/ * cd new_trac * chmod -R 777 db * Set up apache env's through webmin->servers->apache admin https://dora.ocssolutions.com:10000 * Go to the servers tab and click on Apache Webserver * Create Per-Directory, Files or Location Options * Type: Location * Path: /trac/**new_trac** * Regexp: Exact Match * Click "Create" button * Create Per-Directory, Files or Location Options * Type: Location * Path: /trac/**new_trac**/login * Regexp: Match regex * Click "Create" button * Click "Alias and Redirects" button in the "Virtual Server Details" section * Add Alias from: /trac/**new_trac**/chrome/common to: /usr/share/trac/htdocs * Click the "Save" button * Click "Servers" -> "Apache Webservers" -> "Show Directives" button in the "Virtual Server Options" section * Select "ScriptAlias" from the drop down at the bottom of the page * Click "Edit Apache directive" to the left of drop down * Add CGI directory aliases ScriptAlias from: /trac/**new_trac** to: /var/www/localhost/cgi-bin/trac.cgi * Click "Save" button at bottom of page * Click "Servers" -> "Apache Webservers" -> "Show Directives" button in the "Virtual Server Options" section * Click on the link * Click "Show Directives" button in the "Per-Directory Options" section * Select "SetEnv" from the drop down at the bottom of the page * Click "Edit Apache directive:" button to the left of the drop down * Environment variables for CGI scripts Add: TRAC_ENV set to /home/pontech/trac-environments/**new_trac** * Click "Save" button at bottom of page * Click "Servers" -> "Apache Webservers" -> "Show Directives" button in the "Virtual Server Options" section * Click on the link * Click "Show Directives" button in the "Per-Directory Options" section * Select "AuthName" from the drop down at the bottom of the page * Click "Edit Apache directive:" button to the left of the drop down * Set Authentication realm name: Trac * Set Authentication type: Basic * Set Restrict access by login: All valid users * Set Text file authentication -> User text file: /home/pontech/etc/svn.basic.passwd * Click "Save" button at bottom of page * In SSH session, Edit the .../**new_trac**/conf/trac.ini file * Change the project name * Change the repository_dir * Change other things ====== Potential Subversion/Trac Hosts ====== [[http://apisnetworks.com/]]