PHP Proftpd Restart

Discussion in 'General' started by alexillsley, Apr 27, 2007.

  1. alexillsley

    alexillsley New Member

    ----- expired ----
     
    Last edited: Nov 15, 2010
  2. falko

    falko Super Moderator Howtoforge Staff

    Did you run the PHP script as root? You need root privileges to restart Proftpd.
     
  3. alexillsley

    alexillsley New Member

    ----- expired ----
     
    Last edited: Nov 15, 2010
  4. falko

    falko Super Moderator Howtoforge Staff

    How exactly did you call it? Did you use ISPConfig's Apache (port 81) for it? It runs under the user admispconfig, not root.
     
  5. alexillsley

    alexillsley New Member

    ----- expired ----
     
    Last edited: Nov 15, 2010
  6. falko

    falko Super Moderator Howtoforge Staff

    ISPConfig uses the /root/ispconfig/sv/ispconfig_wconf process to run things as root user.
     
  7. alexillsley

    alexillsley New Member

    Do i just rename my file: /home/admispconfig/ispconfig/.run then run that script above?
     
  8. alexillsley

    alexillsley New Member

    ----- expired ----
     
    Last edited: Nov 15, 2010
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Why dont you use the usual mechanisms in ISPConfig? It's is not a good idea to run scripts that need root priveliges directly from the ISPConfig interface. ISPConfig is split in a server part taht runs with root priveliges and the interface that is run under the unpriveliged admispconfig user.
     
  10. alexillsley

    alexillsley New Member

    ----- expired ----
     
    Last edited: Nov 15, 2010

Share This Page