#1  
Old 22nd January 2009, 16:28
kkulekci kkulekci is offline
Junior Member
 
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP apache user issue

Hi,

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.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 23rd January 2009, 05:02
nanotechgeek2 nanotechgeek2 is offline
Junior Member
 
Join Date: Oct 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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"



Quote:
Originally Posted by kkulekci View Post
Hi,

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.

Thanks
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 11:20
Ruby / FastCGI Problem Chad Server Operation 1 8th March 2008 21:38
cacti problem - graphs have huge gaps Chip Installation/Configuration 7 8th February 2008 00:24
php eating cpu shajazzi Server Operation 15 15th August 2007 02:19
issue with no admin user allocated djtremors General 8 14th September 2006 10:50


All times are GMT +2. The time now is 12:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.