whozie
asked on
access to OS from website
RH9 running apahce 2 and PHP4.
Is it possible for the website on this box to restart a process (sendmail)? if so how is it done?
Purpose: I wrote an application in php that has alot of email notifications. My clients, for whatever reason, requested that they have the ability in the administration to change the sendmail configuration. This would of course require the sendmail to be restarted so the changes take effect.
Is it possible for the website on this box to restart a process (sendmail)? if so how is it done?
Purpose: I wrote an application in php that has alot of email notifications. My clients, for whatever reason, requested that they have the ability in the administration to change the sendmail configuration. This would of course require the sendmail to be restarted so the changes take effect.
Could it be done? Yes, but it would almost certainly be a bad idea and I can't think of any reason that it should be necessary if Sendmail was properly set up. What reasons are your clients giving for needing this?
ASKER
Reasons, dont know, here is the actual request:
"We need to be able to access the smtp mail config from setup."
In the end I'll probaby just give them simple instructions to access the files and edit with pico or something. But i'd still appreciate a solution just incase they are stubborn....its their money /shrug.
"We need to be able to access the smtp mail config from setup."
In the end I'll probaby just give them simple instructions to access the files and edit with pico or something. But i'd still appreciate a solution just incase they are stubborn....its their money /shrug.
ASKER
Also, its a linux machine thats on an exchange network, the mail is sending fine to the mail server now and I dont know why that would ever change...but apparently it will.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yeah that would be difficult...because I have it setup with SMART_HOST and thats in the sendmail.mc. And the smtp_path is in php.ini so no help there. I probably should of thought this through before I even posted =P Maybe I'll just make a page with instructions on how to use command prompt and pico! woohoo.
try to make a cronjob of it. so it restarts in a certain amount of time...
edit > /etc/crontab
edit > /etc/crontab
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Apparently they change the IP of their email server frequently, when updating....I have no idea why. They said something to the effect "its easier during the transition to use a new IP"..i'm not a networking person so I'm not asking questions. They are savy enough with complex config files and command prompt to edit it with pico...so I'll give them instructions and a very straight forward disclaimer.
Thanks
Thanks