[HOWTO] mod_ruid2

I don't understand what you mean with "what the first 5 lines are".

Yes, this started happening right after installing mod_ruid2. I have chmoded /usr/sbin/suexec to 711 and restarted httpd but the problem persists.
 
Code:
ls -l /home/user/domains/domain.com/public_html/cgi-bin/count/tc.cgi

???
 
This is the result

Code:
-rwxr-xr-x 1 user user 8624 Feb 15  2010 /home/user/domains/domain.com/public_html/cgi-bin/count/tc.cgi
 
These are the first 5 lines of the cgi file:

Code:
#!/usr/bin/perl
#
################################################ #####################
###
###

This is the httpd.conf (I have changed IP, user and domain):

Code:
<VirtualHost 000.000.000.000:80 >


        ServerName www.domain.com
        ServerAlias www.domain.com domain.com
        ServerAdmin [email protected]
        DocumentRoot /home/user/domains/domain.com/public_html
        ScriptAlias /cgi-bin/ /home/user/domains/domain.com/public_html/cgi-bin/

        UseCanonicalName OFF

        #SuexecUserGroup user user
        RMode config
        RUidGid user user
        RGroups apache
        CustomLog /var/log/httpd/domains/domain.com.bytes bytes
        CustomLog /var/log/httpd/domains/domain.com.log combined
        ErrorLog /var/log/httpd/domains/domain.com.error.log

        <Directory /home/user/domains/domain.com/public_html>
                Options +Includes -Indexes

                php_admin_flag engine ON
                <IfModule !mod_php6.c>
                        php_admin_flag safe_mode OFF
                </IfModule>
                php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'


                php_admin_value open_basedir /home/user/:/tmp:/var/tmp:/usr/local/lib/php/


        </Directory>



</VirtualHost>

Thanks a lot for your interest!
 
This is the result:

Code:
-rwx---r-x 2 root apache 19K Sep 28 14:53 /usr/bin/perl
 
I'm having another issue with a client. He says that after installing mod_ruid2 the emails sent from php forms are now sent from "[email protected]". Do you guys know if this has anything to do with mod_ruid2 and if yes, how to solve it?

Thanks again :)
 
I'm having another issue with a client. He says that after installing mod_ruid2 the emails sent from php forms are now sent from "[email protected]". Do you guys know if this has anything to do with mod_ruid2 and if yes, how to solve it?

I am running suphp, and have the same "problem". All emails sent from php scripts has "[email protected]" as sender. I do not know if it is possible to change this on a server with more then one user.
 
use smtp auth, that should be about a normal way to go out using php function instead smtp one... cause with that you can track what user using those functions for better find out spammers :)

Ok that sound very bad english, hope is enough clear

Regards
 
Not all scripts can use smtp....

Try to add in exim.conf code below. For me it's fixed issue with sender
Code:
local_from_check = false
local_sender_retain = true
untrusted_set_sender = *

Maybe Jeff will comment and suggest better solution.
 
It looks okay but I'm not sure where you put it. Let me know and let me know if it continues to work for you without other changes.

Also, does it require mail be accepted from 127.0.0.1?

Jeff
 
I put it after this:
Code:
# TRUSTED USERS
trusted_users = mail:majordomo:apache:diradmin
 
if you mean about this:
hostlist relay_hosts = net-lsearch;/etc/virtual/pophosts : 127.0.0.1

Then yes, i have it in my exim.conf and i didn't tried without 127.0.0.1
 
Back
Top