The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mod_Layout and suPHP issues.

Discussion in 'General Discussion' started by Humpy2006, Jan 6, 2009.

  1. Humpy2006

    Humpy2006 Registered

    Joined:
    Jan 30, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I am using CPanel 11, iPanel 3.6.19 on CentOS5, Apache 2.2.11, Mod_Layout 5.1 & PHP 5.2.8

    I wish to implement adverts on free hosting accounts whilst also using suPHP. After installing using Easy Apache, I set the PHP handler to 'suPHP' and all the advert pages that are in PHP no longer parse - instead are replaced with a couple of funny characters.

    If I set to 'DSO' then the pages and adverts load properly - but obviously don't have the benefits of suPHP (especially preventing the running scripts as nobody). Setting to 'CGI' prevents the adverts from showing on PHP pages.

    Has anyone had this and know of a way around it? Below are the apache logs for the different handlers.

    Thanks




    I changed the handler to suPHP, loaded a page with mod_layout adverts and then reverted it back to DSO. Below is the apache log for the time frame:

    [Mon Jan 05 22:17:51 2009] [notice] caught SIGTERM, shutting down
    [Mon Jan 05 22:17:52 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Mon Jan 05 22:17:53 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 configured -- resuming normal operations
    [Mon Jan 05 22:17:59 2009] [notice] caught SIGTERM, shutting down
    [Mon Jan 05 22:18:01 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Mon Jan 05 22:18:01 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 configured -- resuming normal operations
    [Mon Jan 05 22:18:42 2009] [notice] caught SIGTERM, shutting down
    [Mon Jan 05 22:18:44 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Mon Jan 05 22:18:44 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8 configured -- resuming normal operations
    [Mon Jan 05 22:18:51 2009] [notice] caught SIGTERM, shutting down
    [Mon Jan 05 22:18:52 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Mon Jan 05 22:18:53 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.8 configured -- resuming normal operations


    And here I changed it to CGI and loaded a couple of pages afterwards.

    [Tue Jan 06 14:09:04 2009] [notice] caught SIGTERM, shutting down
    [Tue Jan 06 14:09:05 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Tue Jan 06 14:09:06 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 configured -- resuming normal operations
    [Tue Jan 06 14:09:06 2009] [notice] caught SIGTERM, shutting down
    [Tue Jan 06 14:09:07 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Tue Jan 06 14:09:08 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 configured -- resuming normal operations
     
  2. ihostdev

    ihostdev Member

    Joined:
    Jul 12, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    there currently is not a work around for this. It's a issue between mod_layout and suphp.

    We are alpha testing a new apache module we wrote to replace mod_layout that fixes this issue along with users will no longer be able to remove the forced ads from there websites. There are a few other neat features we added that mod_layout doesn't support, but need to leave some surprises.
     
Loading...

Share This Page