Western Mass Hosting's centos Articles

Home / centos

Cookie Notice

This site utilizes cookies to improve your browsing experience, analyze the type of traffic we receive, and serve up proper content for you. If you wish to continue browsing, you must agree to allow us to set these cookies. If not, please visit another website.

Setup SVN With Attached Drives on CentOS

These are the step that I took to create a SVN server using CentOS 7, while attaching drives as repositories instead of creating a monstrous system drive and importing everything there.

If you follow to a “T”, you too can have the play-ground I have =)

I will lay out my exact steps, including creating the virtual machine I used for this.  If you are currently using a VM or dedicated machine then you can skip those steps.  I imagine this would work on CentOS 5 and up, but don’t quote me on that.

  1. Create VirtualBox Virtual Machine
    1. Have a CentOS ISO ready
      1. I chose v7 as the latest
    2. Setup with 20G hard disk, Bridged Networking, 4G Ram, 2 Processors, 3 – 1GB test disks, no sound, minimal video memory
    3. Install CentOS as Basic Web Server, no GUI
      1. Include PHP, Perl, Python, NFS during initial install
      2. No need for CPanel
    4. Reboot
    5. Run yum update
    6. Run systemctl start httpd.service
    7. Run systemctl enable httpd.service
    8. Run the following 3 to allow ports 80 and 443 through the firewall
      1. firewall-cmd –permanent –zone=public –add-service=http
      2. firewall-cmd –permanent –zone=public –add-service=https
  • firewall-cmd –reload
  1. Now change SELinux to disabled in /etc/selinux/config, change SELINUX=enforcing to SELINUX=disabled
  2. Run yum install subversion mod_dav_svn
  3. Run the following
    1. mkdir /svn
    2. mkdir /var/www/svn
  • chown –R apache:apache /svn
  1. chown –R apache:apache /var/www/svn
  1. Now we need to configure SVN
    1. Run nano /etc/httpd/conf.modules.d/10-subversion.conf
    2. Add In:
      Alias /svn /var/www/svn
      <Location /svn>
      DAV svn
      SVNParentPath /svn/
      AuthType Basic
      AuthName “Emagine Repositories”
      AuthUserFile /etc/svn-auth-users
      Require valid-user
      </Location>
  2. The save the file by hitting CTRL-O, then CTRL-X to exit nano
  1. Now we need to setup user access
    1. Only the first user created needs the –c flag, all the rest need only the –m flag
    2. Run htpasswd –cm /etc/svn-auth-users kpirnie
      1. For some reason, I had to run this command twice
      2. Type in the new password twice
    3. And now the fun begins… I made 3 1GB dummy disks before, when setting up the VM, now we need to partition, format, mount them
      1. Run the following commands on each disk (NOTE: You can skip this step if simply attaching storage, run fdisk –l to see what’s attached for disks)
        1. fdisk /dev/sdb
        2. n
  • default the next 4 to create a primary partition using all space
  1. w
  2. mkfs.ext4 /dev/sdb1 (sdc1, sdd1 as well)
  1. Mount the disks
    1. mkdir /mnt/Disk1 (also for Disk2 and Disk3)
    2. nano /etc/fstab
  • add in a line for each disk, and make sure there is an empty line at the end of the file
  1. /dev/sdb1 /mnt/Disk1         ext4       defaults               0              0
  2. Repeat as necessary for each disk attached
  3. Remount everything with mount –a
  1. You can use step b above to mount any disk you have attached to the server
  2. Now we add the proper permissions
    1. Run the following for each disk added (replace Disk* for your mount point)
      1. chown -R apache:apache /mnt/Disk1
      2. chcon -h system_u:object_r:httpd_sys_content_t /mnt/Disk1
      3. chcon -h apache:object_r:httpd_sys_content_t /mnt/Disk1
    2. Now create & import the repos (replace Disk* with each disk you mounted, or whatever you want to name it)
      1. mkdir –p /mnt/Disk1/{trunk,branches,tags}
        1. Copy all content from the disk to the ‘trunk’ directory we just created
      2. svnadmin create /svn/Disk1
  • svn import –m “Initial Import” /mnt/Disk1 file:///svn/Disk1

Our Privacy Policy

Last Updated: June 18th, 2025

Introduction

Western Mass Hosting (“we,” “our,” or “us”) respects the privacy of all individuals and organizations that interact with our services. This Privacy Policy establishes our practices regarding the collection, use, disclosure, and protection of personal information for visitors to our website and clients utilizing our managed hosting and WordPress services. By accessing our website or engaging our services, you acknowledge that you have read and understood this policy in its entirety.

Scope and Applicability

This Privacy Policy governs our handling of information collected through our corporate website and in the course of providing managed hosting, WordPress maintenance, and development services. In accordance with global privacy regulations, we serve as a Data Controller for information related to our business operations and client relationships. When processing data on behalf of our clients through hosted services, we act as a Data Processor under applicable data protection laws.

Information We Collect

We collect various categories of information necessary to provide and improve our services. This includes personal contact and payment details provided during account registration, technical information such as IP addresses and device characteristics for security purposes, and records of communications through support channels. For clients utilizing our hosting services, we may process end-user data stored within client websites, though we do not control or monitor the collection practices of such data.

Purpose and Legal Basis for Processing

We process personal information only when we have proper justification under applicable laws. The primary legal bases for our processing activities include the necessity to fulfill contractual obligations to our clients, our legitimate business interests in maintaining and improving our services, and in limited cases, explicit consent for specific marketing communications. We maintain detailed records of processing activities to demonstrate compliance with legal requirements.

Use of Collected Information

The information we collect serves multiple business purposes. Primarily, we use this data to deliver and maintain reliable hosting services, including server provisioning, performance monitoring, and technical support. We also utilize information for business operations such as billing, customer relationship management, and service improvement initiatives. Security represents another critical use case, where we analyze data to detect and prevent fraudulent activity or unauthorized access to our systems.

Data Sharing and Third-Party Disclosures

We engage with carefully selected third-party service providers to support our operations, including cloud infrastructure providers, payment processors, and customer support platforms. These relationships are governed by strict contractual agreements that mandate appropriate data protection measures. We may disclose information when legally required to comply with court orders, government requests, or to protect our legal rights and the security of our services.

International Data Transfers

As a global service provider, we may transfer and process data in various locations worldwide. When transferring personal data originating from the European Economic Area or other regulated jurisdictions, we implement appropriate safeguards such as Standard Contractual Clauses and rely on adequacy decisions where applicable. Our subprocessors, including AWS Lightsail, maintain robust compliance certifications to ensure the protection of transferred data.

Data Retention Practices

We retain personal information only for as long as necessary to fulfill the purposes outlined in this policy. Client account information is typically maintained for five years following service termination to comply with legal and financial reporting obligations. Backup data associated with hosting services is automatically purged after thirty days, as specified in our Terms of Service. For data processed on behalf of clients, retention periods are determined by the respective client’s policies and instructions.

Security Measures

We implement comprehensive technical and organizational security measures to protect personal information against unauthorized access, alteration, or destruction. Our security program includes network encryption protocols, regular vulnerability assessments, strict access controls, and employee training on data protection best practices. We maintain incident response procedures to address potential security breaches and will notify affected parties where required by law.

Individual Rights

Individuals whose personal data we process may exercise certain rights under applicable privacy laws. These rights may include requesting access to their information, seeking correction of inaccurate data, requesting deletion under specific circumstances, and objecting to particular processing activities. We have established procedures to handle such requests in accordance with legal requirements, typically responding within thirty days of receipt. Requests should be submitted to our designated Data Protection Officer through the contact information provided in this policy.

Cookies and Tracking Technologies

Our website employs various technologies to enhance user experience and analyze site performance. Essential cookies are used for basic functionality and security purposes, while analytics cookies help us understand how visitors interact with our site. Marketing cookies are only deployed with explicit user consent. Visitors can manage cookie preferences through their browser settings or our cookie consent tool.

Policy Updates and Notifications

We periodically review and update this Privacy Policy to reflect changes in our practices or legal obligations. Material changes will be communicated to affected clients through email notifications at least thirty days prior to implementation. Continued use of our services following such notifications constitutes acceptance of the revised policy.

Contact Information

For questions or concerns regarding this Privacy Policy or our privacy practices, please contact our Data Protection Officer at info@westernmasshosting.com or by mail at:

Western Mass Hosting
22 Orlando. St.,
Feeding Hills, MA 01030.

We take all privacy-related inquiries seriously and will respond promptly to legitimate requests. For clients with specific data processing agreements, please reference your contract for any additional terms that may apply to our handling of your data.