Hello all,

I'm currently trying to setup a personal web hosting service for my friends where they get an area of web space, etc, for them to use. Basically, a free web hosting service, etc with PHP, and all possible.

Does anyone know how I could go about setting this service up? ( If I were to get a HostGator/webspace account, etc)

Thank in advance.

Dani AI

Generated

Helpful, practical next steps that turn the earlier suggestions from , and into an implementable plan focused on safety, isolation and low maintenance.

Start by picking the deployment model that matches the maintenance appetite. For a handful of friends, a single low-cost host that supports multiple sites or a small VPS with a free panel (Virtualmin/ISPConfig) gives control without heavy licensing. For stronger isolation and easier scaling, choose a VPS/reseller with a control panel (WHM/cPanel or Plesk) or run containerized sites (one container per account). Add per-account isolation (PHP-FPM pools or CloudLinux/CageFS) so one compromised site cannot affect others.

A simple, repeatable provisioning checklist that keeps operations sane:

  • Create the OS user and home directory; enforce secure permissions and SFTP-only access.
  • Create the virtual host and map DNS (or provide one shared domain plus subdomains).
  • Apply disk and inode quotas and per-user process limits (cgroups/ulimits).
  • Put each site on its own PHP-FPM pool or use suEXEC-style handlers; disable risky PHP fnctions.
  • Issue TLS certificates automatically (Let’s Encrypt).
  • Decide mail: either run a tightly controlled Postfix+Dovecot stack (rate-limit outbound SMTP, monitor abuse) or offload mail to a reputable relay to avoid blocklisting.
  • Configure daily backups and test restores.

Operational and security notes: enable automatic OS/software updates where possible, run fail2ban and a host firewall, monitor outbound mail and web resource usage, log account activity, and keep a clear Acceptable Use Policy so abuse can be handled quickly. Automate repetitive steps with simple scripts or Ansible once more than a few accounts are added. These tradeoffs keep hosting affordable while reducing the most common risks when offering sites for others.

Recommended Answers

All 3 Replies

There are any number of ways to do it:
1. Set up your own server at home, you probably have a dynamic IP address so you'll need to use a service like dyndns.org.
2. Get a reseller hosting account with another web host.
3. Get a virtual private server and configure it
4. Some hosting plans will let you host multiple domains, if you really just want t host for a few friends sign up for a web hosting service that allows you several domains and set them up for the different websites.

Hello all,

I'm currently trying to setup a personal web hosting service for my friends where they get an area of web space, etc, for them to use. Basically, a free web hosting service, etc with PHP, and all possible.

Does anyone know how I could go about setting this service up? ( If I were to get a HostGator/webspace account, etc)

Thank in advance.

Hostgator is not a free web host , no free web host will allow you to setup web hosting service.

I think, and could be wrong, that what he had in mind was a free or nearly free hosting service for his friends with minimal expense to him. I do something very similar to this, I host several free websites for my friends on my hosting service, the only cost to me is the extra $2/month I pay for their Domain and domain hosting (and most of them chip in a few bucks for their own domain). Right now I have less than 10 of these sites and consider that to be a perfectly acceptable gift.

If you set up a $10-15/month hosting plan with a few spare domains and let a friends use them it will work fine.

Now if he's looking to set up a paid-service for people he knows that's a different story, but he hasn't gotten back after I asked

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.