1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Subdomain folder, strange behaviour

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by mezzomix, Nov 24, 2010.

  1. mezzomix

    mezzomix Guest

    0
     
    Hi,

    First of all: I am using the Power User Panel.

    When I create a subdomain I can choose the name of the subdomain and the name of the folder where I upload my subdomain files. Since Plesk has a subdomain folder located at /subdomains, I want to have the new folder in there, of course! But Plesk gives me an error, when I try that.

    Have a look at the picture:
    [​IMG]


    Alright, then I just type in mysubdomain. See what happens now:
    [​IMG]



    Plesk created /mysubdomain and /subdomains/mysubdomain. The folder used for serving is /subdomains.

    That behaviour makes no sense.
     

    Attached Files:

  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    http://forum.parallels.com/showthread.php?t=105624

    And www-root cannot be set or changed to VHOSTS_D/<webspace_name>/subdomains/*; but www-root of old subdomains (that has been created in previous versions of the Plesk) points to that directory (because of backward compatibility). If end user change www-root of such subdomain, he will unable to set www-root value back to /subdomains/*
     
  3. Angels

    Angels Guest

    0
     
    I have the same issue, but i have no problem creating subdomains under the vhost root (f.e. /site1).

    - Why is a subdomain/site1 (with cgi-bin, error-docs, etc) created if i create a subdomain with /site1 (why not create the whole skeleton under /site1 instead of having two directories?)
    - If i delete the subdomain which points to /site1, why is the directory itself not deleted and why can't i delete it by FTP access?
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Let me explain a little bit.
    Domains and subdomains in Plesk 10 is only entry points from web to webspace (place on your disk). You can have several domain/subomains which have the same entry point or in other words place on disk. When you delete domain/subdomain - you delete only entry point from web (apache configuration) but not content because this content can be used by other domains/subdomains via their entry points. Therefore it is correct behavior.
    In described case you have specified site's document root directory from root of his webspace. There is no full access to webspace directory for the domain's ftp-user, therefore in a root of webspace you can't delete directory with file-manager.
    For example:/subdomain/test/httpdocs. You can delete test/httpdocs, but can't delete/subdomain directory.
    As far as I know it is problem and developers are working on it.
     
  5. lhwparis

    lhwparis Guest

    0
     
    think we have more different problems here.

    fact: subdomains created in former plesk versions and migrated to plesk10 have a different behavior then sudomains created in plesk10. migrated subdomains are migrated to folder: domain.tld/subdomains/subdomain name. in this folder are ONLY migrated subdomains you cant create new subdomains into this folder.

    @Angels: more then 1 subdomain can point to one of this directories so its not good to delete it when one of the subdomains will be deleted...

    ok IgorG was faster;)
     
    Last edited by a moderator: Nov 25, 2010
Loading...