Page 4 of 31 FirstFirst ... 2345614 ... LastLast
Results 61 to 80 of 609

Thread: [HOWTO] mod_ruid2

  1. #61
    Join Date
    Feb 2005
    Posts
    94
    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.

  2. #62
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    Code:
    ls -l /home/user/domains/domain.com/public_html/cgi-bin/count/tc.cgi
    ???

  3. #63
    Join Date
    Feb 2005
    Posts
    94
    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

  4. #64
    Join Date
    Jan 2008
    Location
    /dev/null
    Posts
    702
    Quote Originally Posted by ViAdCk View Post
    I don't understand what you mean with "what the first 5 lines are"
    Please show the first 5 lines of the CGI file (source)
    Why most people reboot the server when they have a problem

  5. #65
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    And httpd.conf for that domain will you show?
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  6. #66
    Join Date
    Feb 2005
    Posts
    94
    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!

  7. #67
    Join Date
    Jan 2008
    Location
    /dev/null
    Posts
    702
    What do you get if you do
    ls -lah /usr/bin/perl
    Why most people reboot the server when they have a problem

  8. #68
    Join Date
    Feb 2005
    Posts
    94
    This is the result:

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

  9. #69
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,023
    chmod 755 /usr/bin/perl
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  10. #70
    Join Date
    Feb 2005
    Posts
    94
    I think that's it. Thanks!!

  11. #71
    Join Date
    Jan 2008
    Location
    /dev/null
    Posts
    702
    Quote Originally Posted by ViAdCk View Post
    I think that's it. Thanks!!
    Also it should be root:root and not root:apache
    chown root:root /usr/bin/perl
    Why most people reboot the server when they have a problem

  12. #72
    Join Date
    Jun 2003
    Location
    California
    Posts
    26,123
    Quote Originally Posted by daveyw View Post
    Also it should be root:root and not root:apache
    That shouldn't really matter; apache has the same permissions under both ownership scenarios.

    Jeff
    +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  13. #73
    Join Date
    Feb 2005
    Posts
    94
    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

  14. #74
    Join Date
    Apr 2009
    Posts
    1,952
    Quote Originally Posted by ViAdCk View Post
    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.

  15. #75
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,641
    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
    SeLLeRoNe - Andrea Iannucci
    DevOps Engineer - System Administrator
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  16. #76
    Join Date
    Dec 2007
    Posts
    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.

  17. #77
    Join Date
    Jun 2003
    Location
    California
    Posts
    26,123
    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
    +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  18. #78
    Join Date
    Dec 2007
    Posts
    102
    I put it after this:
    Code:
    # TRUSTED USERS
    trusted_users = mail:majordomo:apache:diradmin

  19. #79
    Join Date
    Jun 2003
    Location
    California
    Posts
    26,123
    And does it require the 127.0.0.1 setting in exim.conf?

    Jeff
    +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  20. #80
    Join Date
    Dec 2007
    Posts
    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

Page 4 of 31 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. mod_Security2 & mod_ruid2 compatibility
    By Peter Laws in forum General Technical Discussion & Troubleshooting
    Replies: 0
    Last Post: 01-26-2013, 01:07 AM
  2. Squirrelmail problem with mod_ruid2
    By nobaloney in forum E-Mail
    Replies: 4
    Last Post: 04-07-2012, 10:04 AM
  3. Is my mod_ruid2 correct installed?
    By Aar in forum General Technical Discussion & Troubleshooting
    Replies: 9
    Last Post: 10-02-2011, 09:06 AM
  4. mod_ruid2 discussion
    By Peter Laws in forum DirectAdmin General Discussion
    Replies: 0
    Last Post: 09-20-2011, 03:33 AM
  5. Add mod_ruid2 + WebDAV to custombuild
    By IT_Architect in forum Feedback & Feature Requests
    Replies: 2
    Last Post: 08-03-2011, 03:33 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •