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.

APACHE: Using folder in /usr/local

Discussion in 'EasyApache' started by andy7t, Feb 23, 2007.

  1. andy7t

    andy7t Active Member

    Joined:
    Dec 22, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I'm trying to do the following:

    Any user on my domain types in www.theirdomain.com/webmail and they get up RoundCube webmail.

    So, in httpd.conf i placed:

    Alias /webmail/ /usr/local/roundcube/
    ScriptAlias /webmail/ /usr/local/roundcube/

    I place my installation of roundcube in usr/local/roundcube (i've checked the installation works in normal webspace before).

    I run
    chown nobody roundcube -R
    and
    chmod 755 roundcube -R


    Which works ok for the moment. I can view basic text and images like this.
    However, i get 500 internal for any php script or cgi script i place in here.

    [Fri Feb 23 15:49:50 2007] [error] [client 138.38.32.82] Premature end of script headers: /usr/local/roundcube/index.php

    Any ideas?

    Its obviously some permission problems, since when i changed the owner of the files into a user account, i could access it fine via that users domain, but no-ones elses.
     
    #1 andy7t, Feb 23, 2007
    Last edited: Feb 23, 2007
  2. andy7t

    andy7t Active Member

    Joined:
    Dec 22, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    I've fixed this problem. For future reference:

    I copied the BANDWIDTH alias (bandmin) to get this to work.
    I've no doubt there are other ways of doing it, but this is what worked for me.

    Change all files to owner ROOT.
    Change all files to group WHEEL.
    CHMOD 755 files and the top folder.

    Just add Alias /webmail/ /usr/local/roundcube into httpd.conf. No need for ScriptAlias.
     
Loading...

Share This Page