Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

First of all, I'm sorry for my bad English. I'll try to explain my aim as much as possible.

I'm using a 2 Core and 2 GB memory VPS with 1 dedicated IP address from Digital Ocean for my project. I'm using nginx as a web server, MySQL as a database server and bind as a DNS server.

My project is a free hosting platform for educational purposes. I'll be teaching PHP and MySQL to students from my neighborhood and I want them to practice on their own subdomain with a PHP and MySQL support.

For example, my main domain name is : example.com I'll also setup a wildcard SSL for my domain.

For example, student subdomain should be like this : student1.example.com

Students will be able to activate their web space with the subdomain they choose automatically using my setup script which is written in PHP (a simple page).

  • How can I achieve this setup without using any control panel like cPanel or `zPanel?
  • How can any subdomain which is chosen by a student resolve my main domain?
  • Can students use their own TLD domain on a setup like this?

Do you have any suggestions for this kind of setup?

share|improve this question

closed as off-topic by Luis Alvarado Jul 25 at 1:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Luis Alvarado
If this question can be reworded to fit the rules in the help center, please edit the question.

    
this question might be more appropriate for serverfault.com –  amc May 24 at 0:45
    
Can you clarify your question. nginx configuration, including sub domains is here - help.ubuntu.com/community/Nginx . If you are having a problem with nginx configuration, post the config file. The second part of your question, student1.example.com , has to do with DNS. $configure $your_dns_server :p Please update your question to describe your problem so we can help. –  bodhi.zazen May 24 at 0:50

1 Answer 1

You can try EasyEngine Command-line control panel for Nginx Server to manage WordPress sites running on Nginx, PHP, MySQL

Quick Start

curl -sL rt.cx/ee | sudo bash         # install easyengine
ee system install                     # install nginx, php, mysql, postfix 
ee site create sub.example.com --wp   # create sub.example.com and install wordpress on it
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.