Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,153
Community Members
 
Community Events
168
Community Groups

Crowd Apache integration causes php files to download rather than execute as a script.

Hello,

I'm trying to integrate a website validation using Apache with Crowd. Below is the code that I use to add the Crowd related lines into my apache config file.

<VirtualHost 11.22.33.44:80>
ServerName my.website.com
ServerAdmin webmaster@website.com
CustomLog /path/to/logs/access_log combined
ErrorLog /path/to/logs/error_log
DocumentRoot /home/user/www
DirectoryIndex index.html index.php

<Directory "/home/user/www">
# AuthName "Atlassian Crowd"
# AuthType Basic
# AuthBasicProvider crowd
# CrowdAppName appname
# CrowdAppPassword appapassword
# CrowdURL http://localhost:8095
#
Require valid-user

Options Includes ExecCGI FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all

</Directory>
</VirtualHost>

The commented lines (beginning with #) are the ones that I added to integrate Crowd. Please note that the website works normally when these lines are commented out (of course no authentication is done with Crowd). When I uncomment the lines and restart Apache, it seems like the integration worked as Apache prompts me for a login/password using the 'Atlassian Crowd" realm as specified in the above config file. But after I login successfully, I'm being asked by Apache to download the index.php rather than execute it as a script. Do I have to set additional options other than what I have done above? Would appreciate any pointers on this.

Thanks,

Ravi

2 answers

0 votes
Deleted user Jul 21, 2012

I'm having the same problem.

By the moment i couldn't solve it.

My virtual host config is:

<VirtualHost *>

ServerName subdomain.domain.com

ServerAdmin admin_mail@domain.com

DocumentRoot /var/www

<Directory /var/www>

Options Indexes FollowSymLinks MultiViews

AllowOverride All

Order allow,deny

allow from all

AuthName "Atlassian Crowd"

AuthType Basic

AuthBasicProvider crowd

CrowdAppName appname

CrowdAppPassword appapassword

CrowdURL http://domain.com/crowd/

CrowdAcceptSSO On

CrowdCreateSSO On

CrowdBasicAuthEncoding UTF-8

CrowdTimeout 5

#CrowdCacheMaxAge 60

#CrowdCacheMaxEntries 500

Require valid-user

</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,

# alert, emerg.

LogLevel warn

CustomLog /var/log/apache2/access.log combined

</VirtualHost>

This is embarassing. I think I solved by removing the

DirectoryIndex index.html index.php

line. Apparently that has something to with mod_authnz_crowd or something. Anyways, if there is anything I'm still missing, I'd appreciate a response.

thanks,

Ravi

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events