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

Apache and FTP

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by maw, Feb 9, 2011.

  1. maw

    maw Basic Pleskian

    17
    85%
    Joined:
    Feb 1, 2011
    Messages:
    30
    Likes Received:
    0
    Location:
    Canada
    hello,

    i discovered a problem, when a user change the initial ftp account user name.

    i get then a error mail:

    the problem is, that when somebody change the initial ftp user, it changed the complete sysuser name. suexec dont find then in the vhost configured username any more, because (so it looks like) when the client change the username plesk doesn't reconfigure the vhosts.

    is there a fix out? or is it possible to forbid the change the initial ftp username?
     
    Last edited: Feb 9, 2011
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Usually it means that this system user was missing in the system. You can repair it with following method, for example:

     
  3. maw

    maw Basic Pleskian

    17
    85%
    Joined:
    Feb 1, 2011
    Messages:
    30
    Likes Received:
    0
    Location:
    Canada
    hi Igor,

    thanks for your answer, i know what it means and i checked the database on a test domain right now. when i change the initial ftp username the table sys_users get also updated (also the sysuser self). ...but i got the same email like above ....

    so from where else get your Apache configuration the old user name? the entire vhost is not running any more because of the ftp username change (vhost binded on sysuser). ...or why have the vhost reconfiguration a problem?

    also it cannot be real, that i have to change manually something in the database when a user change his initial ftp username.

    M.

    ps. it's to bad, that the proftpd users are sys users and don't come out from a mysql table.

    pps. i tried it right now manually "/usr/local/psa/admin/bin/httpdmng --reconfigure-domain domain.tld" but got also an

    but the new sysuser is correct and also correct written in the sys_user table

    ppps. generally it would be a good thing to let the user not change the first (initial) ftp user name ... so you don't have to change sys users and not to rewrite the apache config.... less stress and saving resources and trouble ...
     
    Last edited: Feb 10, 2011
  4. maw

    maw Basic Pleskian

    17
    85%
    Joined:
    Feb 1, 2011
    Messages:
    30
    Likes Received:
    0
    Location:
    Canada
    Igor, some solutions there?
     
  5. maw

    maw Basic Pleskian

    17
    85%
    Joined:
    Feb 1, 2011
    Messages:
    30
    Likes Received:
    0
    Location:
    Canada
    like i said also via email. the problem is not that plesk dont update the user in the db and the rights on the files, this works. the problem is, that the apache reconfiguration script dont find the new user. it still tries to generate the vhost with the old user. ...so from where get the script the old name?

    maybe it is a bug with existing accounts after the plesk update self?
     
  6. cpes

    cpes Guest

    0
     
    This one is critical.
    Any user, any time can crash your web service.
    Very sad.
     
  7. netwa

    netwa New Pleskian

    17
    35%
    Joined:
    Mar 6, 2011
    Messages:
    19
    Likes Received:
    0
    Same Problem. If the user changes FTP-Account to the same like the login name (or another - I didn't tried it) there is no error-message while changing, so the user thinks everthing is fine. But Apcahe configuration can't be updated correctly after the change. Error is fixed after changing user-account back.
    ---
    E-Mail-Error:
    Das Generieren einer neuen Apache-Konfiguration auf Host <www.mydomain.com> ist fehlgeschlagen. Folgende(r) ist(sind) aufgetreten:
    httpd: bad user name
    ---
    On PLesk-Interface:
    Fehler: Es wurden keine neuen Konfigurationsdateien für den Apache-Webserver erstellt, da Fehler in den Konfiguration-Templates vorhanden sind. Die detaillierte Fehlermeldung wurde Ihnen per E-Mail zugesandt. Bitte überprüfen Sie Ihre E-Mails, beheben Sie die Fehler und klicken Sie auf hier, um die Konfiguration erneut zu starten.

    Please fix it fast!
     
  8. maw

    maw Basic Pleskian

    17
    85%
    Joined:
    Feb 1, 2011
    Messages:
    30
    Likes Received:
    0
    Location:
    Canada
    he,

    for me its fixed now. They provided custom fix for my server. Unfortunately i don't know what the problem was. Also maybe the latest components update for Plesk fix this now generally.

    M.

    ps. Anyway I would suggest to the Plesk team to let the user not change the primary ftp username. Its a bit to much liberty.
     
    Last edited: Mar 24, 2011
  9. maw

    maw Basic Pleskian

    17
    85%
    Joined:
    Feb 1, 2011
    Messages:
    30
    Likes Received:
    0
    Location:
    Canada
    no, "just" his domains was not working any more. But so or so, it was very bad and critical.
     
  10. Seyed AhmadS

    Seyed AhmadS Guest

    0
     
    hello
    i have the same problem with httpd service
    when i want to restart the service i got this error:
    i check the user in mysql psa database with this command
    but i got this result
    what is the solution.

    at the end i must be told you i remove the account that have the problem
     
Loading...