Posts: 26
Threads: 8
Joined: Mar 2016
Reputation:
0
Sex: Undisclosed
Thanks: 4
Given 0 thank(s) in 0 post(s)
RE: subdomain for users
03-05-2016, 08:08 AM
I will be really greatfull! I'm thinking also about another solution. Just create one main domain: hosting.we.po.opole.pl and then only make folders for students, for example: hosting.we.po.opole.pl/student1, hosting.we.po.opole.pl/student2 etc. but I have no idea if there will be some problems with php/phpmyadmin or MySQL (I think I will need to create by myself MySQL databases and users).
Best regards.
Posts: 3 ,663
Threads: 241
Joined: May 2014
Reputation:
85
Sex: Male
Thanks: 408
Given 599 thank(s) in 464 post(s)
RE: subdomain for users
03-05-2016, 08:58 AM
I was going to suggest that same idea! LOL
It's still 1000x easier.
Just make /user1 ... /user300
And for database, you can assign them accounts and name them to match their user ID. So they would end up being something like zadmin_user1:password:[somethingrandom] and assign to each user
Make a backup of the hosting_we_po_opole_pl/ folder including subfolders (user1, user2, etc.)
This way, when the class ends and you start a new class, you just restore your backup 'refreshing' the folders and reassign new passwords for the databases
-TGates - Project Council
SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE
Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Posts: 165
Threads: 13
Joined: Oct 2014
Reputation:
2
Sex: Male
Thanks: 17
Given 29 thank(s) in 22 post(s)
RE: subdomain for users
03-05-2016, 05:27 PM
You can bypass it by enter the many dots domain manualy in database with phpmyadmin .that wat you bypass the sentora gui check. Did test it do, just a tought.
My being on this forum is all personal and all is done here by me has nothing to with the company Web Improved I work for
Posts: 26
Threads: 8
Joined: Mar 2016
Reputation:
0
Sex: Undisclosed
Thanks: 4
Given 0 thank(s) in 0 post(s)
RE: subdomain for users
03-05-2016, 07:31 PM
(03-05-2016, 08:58 AM)TGates Wrote: Just make /user1 ... /user300
And for database, you can assign them accounts and name them to match their user ID. So they would end up being something like zadmin_user1:password:[somethingrandom] and assign to each user I have to do those folders manually, right? Without sentora's panel. I will give a try a bit later
(03-05-2016, 05:27 PM)bbspike Wrote: You can bypass it by enter the many dots domain manualy in database with phpmyadmin .that wat you bypass the sentora gui check. Did test it do, just a tought. So what do you suggest? Set shared domain in my case: hostingpoopole, and give a try with createing domains user1.hosting.we.po.opole.pl and then in PHPMyAdmin add those dots?
Thanks again, you are great guys!
Posts: 165
Threads: 13
Joined: Oct 2014
Reputation:
2
Sex: Male
Thanks: 17
Given 29 thank(s) in 22 post(s)
RE: subdomain for users
03-05-2016, 07:55 PM
(This post was last modified: 03-05-2016, 08:01 PM by bbspike.)
Yes . add manualy shared host in database. Dont use sentora GUI but go to sentora_core/x_settings and add the domain with all the dots. then try create subsdomains for the users in there own account(not fqdn domains). The vhost file sentora generates should be no problemen as servername will be the subdomain directed to the subdomains folder.
My being on this forum is all personal and all is done here by me has nothing to with the company Web Improved I work for
Posts: 26
Threads: 8
Joined: Mar 2016
Reputation:
0
Sex: Undisclosed
Thanks: 4
Given 0 thank(s) in 0 post(s)
RE: subdomain for users
03-05-2016, 08:19 PM
It wouldn't work in my case, because I have to create accounts for normal users, so they can't create subdomains without domain.
So that's why I wanted to have one main domain: hosting.we.po.opole.pl and then on normal user account's just create subdomain user1 + domain. However, if I use shared domain, I can't make subdomains, just regular domain, which will look like subdomain user1.hosting.we.po.opole.pl in my case.
To create subdomains I need to create main domain on each account first, am I thinking right? And if I create main domain on one account hosting.we.po.opole.pl and then create subdomain, I couldn't do the process on another user account, beacuse main domain will exist.
Posts: 165
Threads: 13
Joined: Oct 2014
Reputation:
2
Sex: Male
Thanks: 17
Given 29 thank(s) in 22 post(s)
RE: subdomain for users
03-05-2016, 08:23 PM
(This post was last modified: 03-05-2016, 08:25 PM by bbspike.)
(03-05-2016, 08:19 PM)kai91 Wrote: It wouldn't work in my case, because I have to create accounts for normal users, so they can't create subdomains without domain.
So that's why I wanted to have one main domain: hosting.we.po.opole.pl and then on normal user account's just create subdomain user1 + domain. However, if I use shared domain, I can't make subdomains, just regular domain, which will look like subdomain user1.hosting.we.po.opole.pl in my case.
To create subdomains I need to create main domain on each account first, am I thinking right? And if I create main domain on one account hosting.we.po.opole.pl and then create subdomain, I couldn't do the process on another user account, beacuse main domain will exist.
No it will work theoraticly. Thats where the shared domain is for. People with there own accoutns dont need to fill in a domain, just the need subdomain wich is part of the shared domain.
For example,
You setup a shared domain test.com (or test.test.com whatever)
Every account in sentora is now able to ad subdomain within the shared domain so user1.test.com, user2.test.com (or user1.test.test.com and so on)
Hope i am a little clear. Its bassicly whre the shared domain option is for. The only problem you have now is that sentora GUI doesn´t allow you to add domain with more then one dot. So add it manualy in database, bypass the GUI check.
My being on this forum is all personal and all is done here by me has nothing to with the company Web Improved I work for
Posts: 26
Threads: 8
Joined: Mar 2016
Reputation:
0
Sex: Undisclosed
Thanks: 4
Given 0 thank(s) in 0 post(s)
RE: subdomain for users
03-05-2016, 08:29 PM
Oh! I thought if I'm creating subdomain I have to write that well, let's name that "alias" - that part before main domain, and the select from that white box needed domain. I will certainly give a try!
Posts: 165
Threads: 13
Joined: Oct 2014
Reputation:
2
Sex: Male
Thanks: 17
Given 29 thank(s) in 22 post(s)
RE: subdomain for users
03-05-2016, 09:17 PM
Let us know if it works or if there is a problemen
My being on this forum is all personal and all is done here by me has nothing to with the company Web Improved I work for
Posts: 26
Threads: 8
Joined: Mar 2016
Reputation:
0
Sex: Undisclosed
Thanks: 4
Given 0 thank(s) in 0 post(s)
RE: subdomain for users
03-05-2016, 09:55 PM
One last question, to clarify everything.
I have to change in every single user in phpmyadmin that dots, or just overall in sentora_core/x_settings ?
I mean, if I add not in GUI, but in that file that shared domain hosting.we.po.opole.pl I will be able to create subdomains user1.hosting.we.po.opole.pl or I have to create subdomains like user1hostingwepo.opole.pl and then in phpmyadmin for every single user add those dots?
|