You could well write a script which, say, placed the domain in a text database somewhere (like /var/run, or other similar place) and then a  cron to run as root and vadddomain the domains in that file, then clear the file afterwards…

 

Both apache and php have setuid functionality built into them, however the httpd would have to be run as uid0 (correct me if I am wrong, please) for the php setuids to work – and I haven’t researched the setuid cgi execution in apache much at all… I suggest the php+cron method of implementation – personally…

 

Just one mans humble opinion..

 

-----Original Message-----
From: Jacky Hung [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 18, 2001 10:29 PM
To: [EMAIL PROTECTED]
Subject: Segmentation fault (core dumped)

 

Hello:

 

    I am now using APACHE/PHP + vpopmail + qmail to write a script for add domains in vpopmail , but when i execute the command, it return Segmentation fault (core dumped), is that i can't use PHP to write this? My apache is now run as vpopmail.vchkpw.

 

Jacky

Reply via email to