m0nkey wrote:
> Hello Ivan
>
> Thanks for replying again. I'm not too familiar with strace. I'm not able
> to follow the trace when I try to get mail.. Can someone point me in the
> right direction. Here is what I've been tring to do:
>
>
> strace -fF -p `pidof -s apache2`
>
> When I run this.. it just sits on:
>
> Process 9862 attached - interrupt to quit
> semop(9633795, 0xb7d9eb4c, 1 <unfinished ...>
>
The command you're running will only attach strace to the first pid produced
by `pidof apache2`. -fF will make it attempt to trace any subsequently forked
processes, but it's likely that your apache2 has already spawned a number of
children if you're attaching to a running server.
I think the trick is to run a single worker in debug mode. The following
should work, though you'll not be able to do this on a working server:
strace -f apache2 -X
It will also produce bucket-loads of output. Consider adding '-e open' to your
strace. Looking for unfound files is probably a good place to start.
> Thanks much
> pb
>
>
>>m0nkey wrote:
>>
>>>I've installed mini_sendmail and dropped it in my jail:
>>>
>>>/var/chroot/apache/usr/sbin/mini_sendmail
>>>
>>>I then changed the sendmail_path in /etc/php/apache2-php4/php.ini to
>>>either:
>>>/var/chroot/apache/usr/sbin/mini_sendmail
>>>or
>>>/usr/sbin/mini_sendmail
>>>
>>>I get the exact same result.. which is no mail.. no error. Just to
>>>clarify, I restart the service with every change.
>>>
>>>I also noticed in your box (Apache Security p.47).. that you mention
>>>adding SMTP=localhost for this case.. I also have that set with no luck.
>>
>> Unfortunatelly that's an error, which I failed to spot in time to
>> correct. Delivery through SMTP only works on Windows (and Netware I
>> think).
>>
>>
>>
>>>Any ideas how to get this working is greatly appreciated.
>>
>> Use strace to figure out what PHP wants to do. My guess is that it
>> tries to execute sendmail through a shell, so you'll probably
>> need /bin/sh there as well.
>>
>>--
>>Ivan Ristic
>>Apache Security (O'Reilly) - http://www.apachesecurity.net
>>Open source web application firewall - http://www.modsecurity.org
>>
>>
>
>
>
> ______________________________________
> Get your FREE 100MB email today at http://www.wapda.com
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> mod-security-users mailing list
> mod...@li...
> https://lists.sourceforge.net/lists/listinfo/mod-security-users
>
>
|