I'm a nut in suPHP help me I gonna cry

Discussion in 'General' started by hugolambert, Dec 13, 2009.

  1. hugolambert

    hugolambert New Member

    Hi all
    I installed ispconfig and enabled suphp for my website, but when I try to do what ispconfig usually do when creating mails, I use exec (su .... blah blah) and I got this error message : "su: must be run from a terminal"
    So now I feel alone and sad in front of this stupid error log file :(
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the exact error message.
     
  3. hugolambert

    hugolambert New Member

    exact message

    the exact message in the ispconfig log is [Sun Dec 13 08:44:14 2009] [error] [client my.ip] su: must be run from a terminal, referer: http://www.mywebsite.fr/
     
  4. hugolambert

    hugolambert New Member

    arg

    I really cannot get to the point : why on earth ispconfig can do exec commands under php when websites with suexec and suphp cannot do it?
    Why?????????????????????????
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    You totally mix up things. The ispconfig interface does not use a single exec commnd. ISPConfig consists of a interface part which runs on apache and a separate daemon which executes commands and has higher priveliges.
     
  6. hugolambert

    hugolambert New Member

    so there is no way for instance that I call a cgi script that would be able to create mail directories on the server like it does on ispconfig?
    And if not, how to run a deamon with higher privileges? :confused:
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Thts not possible. At least not without big security holes. You will have to use a separated daemon and interface part.

    Thats too much to explian here in detail. There are two ways, either run a daemon that is started automatically at boot time with a init script that processes changes in the system or you use a root cronjob for that. Take a look at the ispconfig sources and installer if you want to know how this can be done.

    But the easiest way is, just use ispconfig. It does everything that is needed to configure your system and if you want to add additional mailboxes from a external script, use the remote api.
     
  8. hugolambert

    hugolambert New Member

    Thanks for the info, but how can I install the remote framework? there is nothing in the update section (system) of ispconfig3
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    The remote framework is already part of ispconfig. The demo files are also in the remote_client directory of the ispconfig 3 tar.gz. Dont mix this up with the remoting framework of ispconfig 2.
     
  10. hugolambert

    hugolambert New Member

    thank's

    Thank's for the tips ! It's great !
     

Share This Page