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.

fastcgi (fcgi) and mod_userdir incompatibility, global SSL for a user

Discussion in 'General Discussion' started by dandadude, Dec 4, 2011.

  1. dandadude

    dandadude Active Member

    Joined:
    Apr 14, 2011
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Hi!

    I have installed fastcgi-based PHP, and now the mod_userdir stuff (~username) don't parse PHP. With the normal domain, everything works fine.

    I see here that this is a known problem:
    Apache PHP Request Handling
    "Important: This method is only recommended for advanced administrators who understand how to tune the performance of mod_fcgid. UserDir requests will not function correctly with the basic mod_fcgid setup."

    There surely must be a solution for this. Actually I want it only for 1 virtualhost, because he will be using my global ssl cert, but he needs PHP support.

    --------------------------------------------------------
    And my other question which relates to the above I guess:
    --------------------------------------------------------

    What I need is that https://cpanel.sitedomain.com is my main host, and that a user of mine can use https://cpanel.sitedomain.com/~user/whatever.php without a problem.

    Is this possible at all with using SSL (https)? If I write https://cpanel.sitedomain.com/~user/ it gives me the login for cPanel and not the page without PHP parsing.
    If this is not possible, is it possible to get something like https://cpanel.sitedomain.com/user/ working?

    Thank you,
    Daniel
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    There is no possibility that I am aware besides turning off SuExec to allow FastCGI to work with mod_userdir urls. There is an incompatibility with FastCGI and mod_userdir, and that's why it doesn't work with it. If you turn off SuExec with FCGI, then you'll end up having processes run as the user nobody rather than their username, reducing the overall security of FCGI. If you do decide to do that, you'd turn off SuExec in WHM > Apache Configuration > PHP and SuExec Configuration area.

    You could also give the user a subdomain off your main domain, then install a wildcard certificate on the main domain and the subdomain to allow them to use that subdomain without error. You'd have to pay more for a wildcard certificate, but any future users who require the same setup could get a subdomain of the main domain as well.
     
  3. dandadude

    dandadude Active Member

    Joined:
    Apr 14, 2011
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Hi Tristan!

    Thx for the answer.

    And you don't know of any method to be able to give a user permission to use a directory structure like:
    https://cpanel.serverdomain.com/username (notice: no tilde), right?

    Because in this case I would only have to buy a normal certificate that would work for cpanel.serverdomain.com.

    Thanks,
    Daniel
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I provided my best suggestion already, which is to purchase a wildcard SSL on your main domain, then use subdomains on each account needing to use the SSL. You'd simply then have to manually configure the wildcard SSL on each subdomain you provide on these accounts. Wildcard SSLs can cover an unlimited number of subdomains off a main domain.
     
Loading...

Share This Page