PHP apache user issue

Discussion in 'Programming/Scripts' started by kkulekci, Jan 22, 2009.

  1. kkulekci

    kkulekci New Member


    Last 2 weeks I am trying to realize how you can handle the root issue in apache in ispconfig. I've checked all the codes and in my understanding there is no sudo or you do not run apache as root. How can you do the stuff that needs root? (for ex. restart a service)

    I am writing little scripts to manage some of the services in my server. Our company's employers can be able to add some users and remove them under the current project. But I cannot be able to do via apache without root. Your answer is going to save my life.

  2. nanotechgeek2

    nanotechgeek2 New Member

    You can use the "chown" command in the scripts and give them the 'root' or 'apache' or a customized user ownership. This will solve your problem as then the scripts will run as the user you specify.. also another important thing is to set the correct "chmod"


Share This Page