Webhosting from the inside

Started by RoyJones, Nov 15, 2022, 12:59 AM

Previous topic - Next topic

RoyJonesTopic starter

To gain more experience in administration, I plan to create a localhost hosting platform. While my knowledge is currently limited to setting up nginx + php-fpm, I hope to deploy a fully functional enterprise on the same localhost for personal use. However, I recognize that my current setup - which involves running one nginx, php-fpm, and virtual users managing files through vsftpd - poses significant security risks.

After reading up on hosting options, I realized I need a more secure solution with resource limits (e.g. memory, processor, site volume), domain restrictions, and capabilities for future additions like mail accounts and databases. I want to create all of this myself without relying on virtualization or ISP managers - everything will be done manually through the console. Ideally, I'd be able to automate the creation of new domains and users through custom scripts.

Although there are plenty of resources available on configuring individual daemons, I haven't been able to find much on creating a cohesive hosting platform. Additionally, many users use workarounds like mount --bind to link hamsters to their sites through nginx. I believe that paths should be naturally indicated instead.

As I develop my own hosting platform, I plan to document my progress and write an article about it on the LOR Wiki. While my goal isn't to monetize home hosting, I hope that my project will help other users create a secure and functional enterprise-level hosting solution tailored to their needs.
  •  

blueangelhost

In my opinion, a significant portion (about 80%) of hosting relies on pre-packaged solutions such as virtualization tools, billing software (e.g. Billmanager), and control panels (e.g. ISPmanager, cPanel, DirectAdmin, etc.). These software packages are often bundled together for convenience, with billing software being more commonly self-written than the control panel due to its relative simplicity.

Fully self-written hosting solutions are rare and only attempted by a select few companies due in part to the intellectual property involved. Thus, it's difficult to find articles or resources on creating a unique hosting architecture.

In the current landscape, it's more practical for individuals or companies looking to set up hosting to use pre-configured virtual machines that can be installed on a physical server. This eliminates the need for individual component configurations and simplifies the process significantly.

If I were to start a hosting company today, I would opt for a pre-configured virtual machine solution to save time on setup and focus on building the business itself.
  •  

xiaolanzhuji

When it comes to setting up a hosting organization, it's important to focus on security and high performance by thoroughly reading manuals for all the products you plan to use. This includes the chosen Linux distribution, web server software, and programming languages (e.g. PHP, Perl, Python) as well as SQL, SSH, and FTP protocols. Additional considerations like SELinux, firewall, and NAT setup should also be taken into account.

Billing and control panel software, on the other hand, are typically either purchased or self-written. The specific solution used will depend on factors like the virtualization type (Windows vs. *nix) and the desired resource allocation system. In general, using pre-packaged solutions like ISPmanager or Plesk can save time and effort in creating a functional control panel.
  •  

cbinstrument

At my current company, we offer server rental services to clients. However, some providers may use confusing language to market their services, such as claiming to have a RAID when in reality they only have gmirror.

Personally, I prioritize building web servers on hardware RAID setups to avoid any software-related issues. While there are certainly differences in the level of technology available in different parts of the world, it's important to focus on creating a self-sufficient and reliable structure.

Ultimately, creating a successful hosting organization involves considering both the technical aspects (like RAID configurations and software choices) and the philosophical approach to independent business operations. By prioritizing both, we can create a better, more secure hosting environment for our clients.
  •  

celldragiaxArbida

Your current expertise in setting up nginx + php-fpm is a solid foundation, and your aspiration to deploy a fully functional enterprise on the same localhost for personal use showcases your dedication to hands-on learning and practical application.
The recognition of potential security risks in your current setup, particularly in relation to running nginx, php-fpm, and virtual users managing files through vsftpd, reflects your conscientious approach to system integrity. It's clear that you appreciate the importance of robust security measures when it comes to hosting platforms, and your quest for a more secure solution with resource limits, domain restrictions, and scalability for future enhancements such as mail accounts and databases further demonstrates your comprehensive understanding of hosting requirements.

Your decision to eschew virtualization or ISP managers in favor of manual management through the console signifies your commitment to gaining an in-depth understanding of the intricacies involved in hosting platforms. Moreover, your goal to automate the creation of new domains and users through custom scripts emphasizes your forward-thinking mindset and desire for efficiency in system administration.

The challenges you've encountered in finding comprehensive resources on creating a cohesive hosting platform underscore the unique nature of your project. By venturing into uncharted territory and seeking to bridge this informational gap, you are positioning yourself as a trailblazer in the hosting community. Your intention to document your progress and share insights on the LOR Wiki is a commendable gesture that will undoubtedly benefit aspiring administrators and hosting enthusiasts.
Your altruistic approach, coupled with your aspirations to contribute to the collective knowledge base without seeking monetary gain, embodies the spirit of collaboration and knowledge-sharing within the hosting community. Your project has the potential to empower others to create secure and functional hosting solutions tailored to their specific needs, thereby fostering a supportive environment for mutual growth and learning within the hosting ecosystem.
  •