[HOWTO] mod_ruid2

ViAdCk

Verified User
Joined
Feb 14, 2005
Messages
272
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.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,255
Location
GMT +7.00
Code:
ls -l /home/user/domains/domain.com/public_html/cgi-bin/count/tc.cgi
???
 

ViAdCk

Verified User
Joined
Feb 14, 2005
Messages
272
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
 

ViAdCk

Verified User
Joined
Feb 14, 2005
Messages
272
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 webmaster@domain.com
        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 user@domain.com'


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


        </Directory>



</VirtualHost>
Thanks a lot for your interest!
 

ViAdCk

Verified User
Joined
Feb 14, 2005
Messages
272
This is the result:

Code:
-rwx---r-x 2 root apache 19K Sep 28 14:53 /usr/bin/perl
 

ViAdCk

Verified User
Joined
Feb 14, 2005
Messages
272
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 "username@server.hostname.com". Do you guys know if this has anything to do with mod_ruid2 and if yes, how to solve it?

Thanks again :)
 

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,580
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 "username@server.hostname.com". 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 "username@server.hostname.com" as sender. I do not know if it is possible to change this on a server with more then one user.
 

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,794
Location
A Coruña, Spain
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
 

snk

Verified User
Joined
Dec 19, 2007
Messages
102
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.
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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
 

snk

Verified User
Joined
Dec 19, 2007
Messages
102
I put it after this:
Code:
# TRUSTED USERS
trusted_users = mail:majordomo:apache:diradmin
 

snk

Verified User
Joined
Dec 19, 2007
Messages
102
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
 
Top