• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Creating subdomains into plesk 10.2

I want to create subdomains like Plesk 9.5 into Plesk 10

  • nevermind, no poll for me

    Votes: 0 0.0%

  • Total voters
    18
Previous version works well, but new version is better. If you can show me where documentation for previous version suggests "subdomains/myname" as a docroot for subdomain, we will correct this mistake.
 
Sorry it was one of the Parallels forum moderators who described how to create a subdomain and I've just gone back and looked at it and it is referring to how it will be able to be done in 10.4.

However this still doesn't solve my problem, I need to create a subdomain that has all the files and folders including the httpdocs folder in it and I would expect it to be in the subdomains folder inside my default domain. Shouldn't this be correct?

Instead when I create the subdomain it sits in the root of my default domain and it has the following files and folders;
Folders - css, img, test
Files - favicon.ico, index.html
 
Last edited by a moderator:
How can who help me ?
I trying add new subdomain on plesk, but I gived error :
Can not create subdomain: SubDomain::update() failed: Incorrect DNS record values were specified.
help me now :((
Try goole search, but no result :((
 
How can who help me ?
I trying add new subdomain on plesk, but I gived error :

I would recommend you posting here full version of your Plesk and your OS. Without this information it would be impossible to assist.

Regards
 
hi,
thanks for your reply.
My plesk have version 10.3. And I can trying any more times to add subdoamin , but I can't , and I gave error that. Please help me !

best regards!
 
Plesk 10.4.4 even more confused

Just upgrade from 10.3 to 10.4.4 and now it seems like when you create a subdomain Plesk ads a directory in /var/www/vhosts/SUBDOMAIN and another one in /var/www/vhosts/DOMAIN/SUBDOMAIN

Is there a way to have it just create a single directory somewhere within the TLD? Just seems silly to have all these directories scattered throughout.
 
Actually you could find even more folders for domain and subdomain in the system. i.e. there may be a folder with mail settings, etc. It is 100% the same for domains and subdomains. They all are configured by Plesk automatically and normally don't require your attention.

They are out of folder with user content (/var/www/vhosts/DOMAIN/<whatever name you like>) to
1) don't confuse people with multiple system files they don't need
2) prevent system files be incidentally removed/corrupted

Keeping system files in /var/www/vhosts/SUBDOMAIN also
1) makes it easy to get a list of all vhosts in the system (ls /var/www/vhosts/)
2) makes it easy to develop scripts for any custom work over Plesk vhost settings. Whatever setting of a vhost you need it is in /var/www/vhosts/<vhostname>/...
3) keeps settings of all vhosts stored and processed the same way -> more stable and reliable

And what would be your problem of having another directory for settings?

Regards
 
Doubtless I'll find a reason not to later, but I like it!

The only reason to have any subdomain functionality within Plesk is because of limits to the amount of domains you can have on a licence, I always recommend to clients that they configure their subdomains as fully fledged domains within Plesk unless they are nearing their domain limits. Everything is cleaner and more flexible that way.

Now if you could do the same with domain aliases that'd be splendid!

Paul.
 
@Sergey L Thanks for taking the time to reply.

Without editing the config files, is there a way to store the httpdocs within the /vhosts/SUBDOMAIN directory? I understand what you're saying about being easier to see all your vhosts, but I still don't like that the site files are stored separate. I would prefer the subdomain's file structure to be similar to a TLD.

Is there a way to do this?
 
Migration-tool old subdomains to new structure

Actually you could find even more folders for domain and subdomain in the system. i.e. there may be a folder with mail settings, etc. It is 100% the same for domains and subdomains. They all are configured by Plesk automatically and normally don't require your attention.

They are out of folder with user content (/var/www/vhosts/DOMAIN/<whatever name you like>) to
1) don't confuse people with multiple system files they don't need
2) prevent system files be incidentally removed/corrupted

Keeping system files in /var/www/vhosts/SUBDOMAIN also
1) makes it easy to get a list of all vhosts in the system (ls /var/www/vhosts/)
2) makes it easy to develop scripts for any custom work over Plesk vhost settings. Whatever setting of a vhost you need it is in /var/www/vhosts/<vhostname>/...
3) keeps settings of all vhosts stored and processed the same way -> more stable and reliable

And what would be your problem of having another directory for settings?

We have a lot of users that upgrading to newer versions of Plesk. For them all it is very confusing for all new sub-domain structures.

I have a suggestion to create a migration-tool that update the old Plesk sub-domains, DNS & vHosts settings.
Maybe could we also create into the domain.tld folder a symbolic-link for FTP clients.

Symbolic link for FTP:
Code:
/var/www/vhosts/domain.tld/sub.domain.tld/
Root directory of all sub-domains:
Code:
/var/www/vhosts/domain.tld/subdomains/mysubdomain into /var/www/vhosts/sub.domain.tld/
This advantage is good for the administrator and good too for the user who owns the website, just what Sergey tells.
Hopeful does someone agreed with my proposal.
 
Last edited by a moderator:
Going back to one of the original issues with subdomains that has been a problem since 10 came out, there is no way to create an FTP user that can access the subdomain's httpdocs directory and directories outside of httpdocs (such as cgi-bin).

At least in 10.2-10.3 you could house the subdomains/cgi-bin under the mail site's vhosts/DOMAIN/subdomains/xyz and the main FTP user of DOMAIN could get to those files, but now with the new vhosts/SUBDOMAIN struction, the main FTP user has no access since they can't go above their home directory. The vhosts/SUBDOMAIN directory is owned by the same main user as DOMAIN, but there is no way to access those files via File Manager or FTP.

Creating an additional FTP user only allows them access to the httpdocs for that subdomain.

Also, the subdomains settings contantly changing with every version of Plesk now is a support nightmare, since customers and support staff have to be kept up on where their subdomain files just suddenly disappeared to. Now with the extra subdomains no longer being accessible via FTP, scripts and software that relied on this access are broken after upgrading to 10.4.

If I've missing some magic way to access vhosts/SUBDOMAIN via FTP or to create an additional FTP user that can access ALL of the directories related to a subdomain, please provide the steps, Parallels!
 
Plesk 10.3 fail loading subdomain page

Hi,

I got no error when creating subdomain and pointing it into subfolder /httpdocs/foldername/

But the php file under that httpdocs/foldername/index.php Is never loading

What's going on? I see a lot slower loading in this panel than Cpanel ... too much different.
 
direct access ok, but subdomain access fail

Hi,

I got no error when creating subdomain and pointing it into subfolder /httpdocs/foldername/

But the php file under that httpdocs/foldername/index.php Is never loading

What's going on? I see a lot slower loading in this panel than Cpanel ... too much different.

more detail ..... if I access http://subdomain.mydomain.com It doesn't work
But if I access direct URL as http://mydomain.com/subdomainfolder/ it loading fine.
 
Back
Top