From nate@bx.psu.edu Mon Jul 13 09:20:07 2009 From: Nate Coraor To: galaxy-user@lists.galaxyproject.org Subject: Re: [galaxy-user] Fresh install has wrong layout Date: Mon, 13 Jul 2009 09:20:06 -0400 Message-ID: <4A5B3486.2020805@bx.psu.edu> In-Reply-To: <8b6eced30907070040s34704869uaa3909c62a5071ed@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5122935672370296863==" --===============5122935672370296863== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Any idea what's generating all the PHP errors? This is unrelated to Galaxy. Erick Antezana wrote: > Nate, > > thanks for the piece of code. It worked perfectly on my test server. > However, when I tried to put it the production serve, whose apache makes > use of VirtualServers in contrast to my test server, it didn't work :-( > I am able to authenticate using my ldap login/password but then the web > site shows just a blank page... there is no message in paster.log; > however, the apache log says: > > [Tue Jul 07 09:35:29 2009] [error] PHP Warning: > include(/apache/prod/html/php/menuLoader.php) [ href='function.include'>function.include]: failed to open stream: No > such file or directory in /apache/prod/html/ApacheErr/error401.html on > line 2 > [Tue Jul 07 09:35:29 2009] [error] PHP Warning: include() [ href='function.include'>function.include]: Failed opening > '/apache/prod/html/php/menuLoader.php' for inclusion > (include_path='.:/usr/share/pear:/usr/share/php') in > /apache/prod/html/ApacheErr/error401.html on line 2 > [Tue Jul 07 09:35:29 2009] [error] File does not exist: > /apache/prod/html/galaxy > [Tue Jul 07 09:35:29 2009] [error] PHP Warning: require_once(Menu.inc) > [function.require-once]: failed to > open stream: No such file or directory in > /apache/prod/html/ApacheErr/error404.html on line 2 > [Tue Jul 07 09:35:29 2009] [error] PHP Fatal error: require_once() [ href='function.require'>function.require]: Failed opening required > 'Menu.inc' (include_path='.:/usr/share/pear:/usr/share/php') in > /apache/prod/html/ApacheErr/error404.html on line 2 > [Tue Jul 07 09:35:29 2009] [error] File does not exist: > /apache/prod/html/favicon.ico, referer: http://intranet/galaxy/ > [Tue Jul 07 09:35:29 2009] [error] PHP Warning: require_once(Menu.inc) > [function.require-once]: failed to > open stream: No such file or directory in > /apache/prod/html/ApacheErr/error404.html on line 2, referer: > http://intranet/galaxy/ > [Tue Jul 07 09:35:29 2009] [error] PHP Fatal error: require_once() [ href='function.require'>function.require]: Failed opening required > 'Menu.inc' (include_path='.:/usr/share/pear:/usr/share/php') in > /apache/prod/html/ApacheErr/error404.html on line 2, referer: > http://intranet/galaxy/ > > > Do you know what could be the problem? > > thanks, > Erick > > 2009/7/3 Nate Coraor > > > Erick Antezana wrote: > > Nate, > > in the URL you just sent, are the "Apache configuration with > Galaxy not at the web server root" and "External authentication > and $REMOTE_USER" mutually exclusive? > > cheers, > Erick > > > Not at all. Here's a sample configuration: > > > AuthType Basic > AuthName Galaxy > AuthUserFile /htpasswd > Require valid-user > > > # Required to pass REMOTE_USER > > Order deny,allow > Allow from all > > > RewriteEngine on > > RewriteCond %{IS_SUBREQ} ^false$ > RewriteCond %{LA-U:REMOTE_USER} (.+) > RewriteRule . - [E=RU:%1] > RequestHeader set REMOTE_USER %{RU}e > > RewriteRule ^/galaxy$ /galaxy/ [R] > RewriteRule ^/galaxy(.*) http://127.0.0.1:8080$1 [P] > > --nate > > --===============5122935672370296863==--