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

Plesk 10.4 : subdomains references can't be deleted

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by nico_bl1nd, Nov 29, 2011.

  1. nico_bl1nd

    nico_bl1nd Guest

    0
     
    Hi,
    I've got some problem after installing plesk 10.4.
    I've made some cleaning, deleted subdomains, files are gone, but when I restart apache through command line, it claims for missing folders.
    "Warning: DocumentRoot [/var/www/vhosts/handydandies.com/dev/biotherm.skinvivo] does not exist"

    Subdomains is not more in the plesk interface, the folder is no more, and I can't delete it, neither recreate this subdomain.
    I've made multiple httpdmng --reconfigure-all (even --reconfigure-server).
    Do you have any idea how to delete those references ?

    Best regards,

    Nicolas Binet
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    What sort of output

    ?
     
  3. nico_bl1nd

    nico_bl1nd Guest

    0
     
    Hi Igor,

    Here is the output for command : /usr/local/psa/bin/subdomain -r -subdomains maje.dev -domain mydomain.com
    An error occurred during domain removal: Domain 'maje.dev.mydomain.com' does not belong to any customer
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Do you really have maje.dev.mydomain.com in Plesk database? Check it with

    select * from domains where displayName like '%maje.dev%'\G
     
  5. nico_bl1nd

    nico_bl1nd Guest

    0
     
    How can I connect to the database ?
    Plesk has been pre-installed on the server by my french hosting provider OVH.
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
  7. nico_bl1nd

    nico_bl1nd Guest

    0
     
    The problem is that the 'plesk' database is not linked to a particular domain.
    Is-there anywhere in the interface I can access this particular database ?
    Or, is there any global login for this database to connect through CLI ?
     
  8. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Just run as root

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow`psa

    and you will be logged to Plesk database. After that run SQL query that was provided above by me. That's all.
     
  9. nico_bl1nd

    nico_bl1nd Guest

    0
     
  10. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    You wrote:
    What does it mean? How exactly you have done it? Manually?
     
  11. nico_bl1nd

    nico_bl1nd Guest

    0
     
    I've deleted subdomains through plesk interface.
    Subdomains folder strucutres have been deleted
     
  12. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Do not understood how subdomain maje.dev.mydomain.com related to initial
    But anyway, what sort of output

    select * from hosting where www_root like '%/var/www/vhosts/handydandies.com/dev/biotherm.skinvivo%'\G
     
  13. nico_bl1nd

    nico_bl1nd Guest

    0
     
    Sorry I had the problem for both.

    mysql> select * from hosting where www_root like '%/var/www/vhosts/handydandies.com/dev/biotherm.skinvivo%';
    Empty set (0.00 sec)

    mysql> select * from hosting where www_root like '%/var/www/vhosts/handydandies.com/dev/maje%';
    Empty set (0.00 sec)
     
  14. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Sorry, but I can't reproduce this problem on new Plesk 10.4 installation. I have created subdomain and then removed it via Control Panel. After that I have restarted Apache without any errors:

     
  15. nico_bl1nd

    nico_bl1nd Guest

    0
     
    Problem this is not a new installation.
    I've tried to remove the domain completely, and here is the message I get :
    "Missing parameter 'dirname' or previous parameter is empty."
    http://share.handydandies.com/2R1h270X452k2l2D2y0u

    And the result is that I can't get delete the domaine at all !
    Any idea why this happens ?
     
Loading...