Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    25

    Default APACHE: Using folder in /usr/local

    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.
    Last edited by andy7t; 02-23-2007 at 10:13 AM.

  2. #2
    Member
    Join Date
    Dec 2003
    Posts
    25

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Install Apache in different folder than: /usr/local/apache
    By gamingaccess in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-07-2009, 04:12 PM
  2. Don't have a /usr/local/apache/conf/userdata folder
    By Sykoi in forum New User Questions
    Replies: 4
    Last Post: 06-19-2009, 10:16 AM
  3. /usr/local/apache/domlogs
    By ptez in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-08-2006, 11:23 AM
  4. Replies: 0
    Last Post: 04-08-2004, 01:18 PM
  5. /usr/local/apache/domlogs
    By purplepaws in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-27-2002, 05:54 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube