> Can anybody please help me with the following problem ?
> I am trying to run a shell command via popen but nothing happens....
> Here's an example:
> $fd = popen("/usr/sbin/sendmail -t ","w");
> fputs($fd, "To: [EMAIL PROTECTED]\n");
> fputs($fd, "From: [EMAIL PROTECTED]\n");
> fputs($fd, "Reply-To: [EMAIL PROTECTED]\n");
> fputs($fd, "Subject: Testmail\n\n");
> fputs($fd, "Just a test.\n");
> pclose($fd);
> It isn't restricted to sendmail, I can't run any program from PHP (not even a
> simple "ls"...).
> This is a list of items I checked so far:
> - safe_mode in php.ini is off,
> - the user PHP runs under (which is the same as the one apache runs under ?) CAN
> execute the commands when working at the shell (bash) - sendmail, ls - no
> problems...
> Is there any option I can turn on for logging what PHP does ?
> My box is running under Suse Linux 6.4, PHP version is 4.1.1., configured to run
> as an apache-module ( './configure' '--with-mysql'
> '--with-apxs=/usr/sbin/apxs').
> Apache is version 1.3
> I'm really frustrated, everything else works so please if you know of anything
> that could help me with my problem - let me know...
> kr,
> Joerg
I managed to create a workaround: I put the user apache runs under into the
group "root" - it's working now...
I know this is not safe so I'm trying to find another solution...
(although the box is used for intranet in a small company and so security isn't
such a big issue here).
So it seems to have something to do with the rights - is there any directive in
httpd.conf that I should have a look at ?
Any ideas ?
kr,
Joerg
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php