Re: [Refdb-users] troubles with phpweb setup
Status: Beta
Brought to you by:
mhoenicka
From: Cecile H. <cec...@tu...> - 2007-04-16 21:24:54
|
Markus Hoenicka wrote: > I suspect your problems are rooted in some change of the Apache > configuration file syntax. Unless someone on this list can provide an > apache2 configuration file that works with RefDB, I'd suggest to take > this question to an Apache mailing list or forum. As the changes to > httpd.conf required by the RefDB PHP interface are very limited, > someone might be able to tell you in an instant how to do this with > apache2. If you find an answer, please let the list know. I'd like to > add this to the documentation. What I did is - make a symbolik link: ln -s /usr/local/share/refdb/web /my_server_root/refdb Add the following to the config file: <VirtualHost XX.XX.XX.XX:80> DocumentRoot /my_server_root ServerName tem.atp.tuwien.ac.at ScriptAlias /cgi-bin/ "/XXX/cgi-bin" Alias /refdb/ "/usr/local/share/refdb/www/" <Directory "/usr/local/share/refdb/www"> Options FollowSymLinks +ExecCGI AllowOverride None Order allow,deny Allow from all AddType application/x-httpd-php .php .phtml </Directory> It works, I just have to call http://tem.atp.tuwien.ac.at/refdb/ *WITH* the trailing slash. Does not work without. I am not sure this is the most "academic" way, but at least I get the pages... (somehow I feel the symbolic linkt should not be necessary...) > Did you check the Apache log (usually /var/log/httpd-errors.log)? > You might find additional clues in the error messages. Mh, seems to be a php problem: [Mon Apr 16 23:06:32 2007] [error] [client 195.230.58.82] PHP Notice: Undefined variable: passwd in /usr/local/share/refdb/www/login.php on line 6, referer: http://tem.atp.tuwien.ac.at/refdb/index.html But : miraculix 114> httpd2 -M Loaded Modules: . . . php5_module (shared) Syntax OK > Does php run ok on your box? Try "php -v". miraculix 102> php5 -v PHP 5.1.2 (cli) (built: May 2 2006 10:19:57) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies So I would say php seems to run ? Cécile -- Dr. Cécile Hébert, Inst. f. Festkörperphysik TU Wien, Wiedner Hauptstrasse 8-10 A-1040 WIEN cec...@tu... tel +43 1 58 801 138 15 fax - 138 99 http://tem.atp.tuwien.ac.at/leute/cecile.html http://www.ncc.at/cecile/photos/index.html |