YaCMaS - Thought I'd give it a go, having some problems..
ADFH
mpm at bachelorguy.com
Sat Nov 15 11:19:07 CST 2003
Using Apache-SSL on Debian..
Installed dependancies that weren't packaged for Debian in yacmas prog
dir (above www) - that satisfied perl it seems however not when script
run through apache..
Ie. ./index.cgi 2> ~/errors.txt gives:
Use of uninitialized value in concatenation (.) or string at ../DefsContent.pm line 30.
Use of uninitialized value in concatenation (.) or string at ../DefsContent.pm line 30.
Use of uninitialized value in string at ../PartsPerms.pm line 445.
Use of uninitialized value in string at ../PartsPerms.pm line 446.
Use of uninitialized value in concatenation (.) or string at ../MainPage.pm line 185.
Use of uninitialized value in concatenation (.) or string at ../MainPage.pm line 185.
Use of uninitialized value in pattern match (m//) at ../PartsContent.pm line 589.
... a whole heap of similar stuff here, but on diff lines of PartsContent.pm ...
Use of uninitialized value in pattern match (m//) at ../PartsContent.pm line 640.
... however when the same index script run via Apache using SSL and suexec wrapper..
/var/log/apache-ssl/error.log:
Can't locate Defs.pm in @INC (@INC contains: .. . parts /etc/perl /usr/local/lib/perl/5.8.2 /usr/local/share/perl/5.8.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.2 /usr/share/perl/5.8.2 /usr/local/lib/site_perl) at /home/yacmas/yacmas/www/index.cgi line 30.
BEGIN failed--compilation aborted at /home/yacmas/yacmas/www/index.cgi line 30.
[Sun Nov 16 04:05:59 2003] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /home/yacmas/yacmas/www/index.cgi
Why the diff error when run through apache vs. from CLI? Checked that
apache was setting working directory to that of script, it was..
VWS specific config on apache:
<VirtualHost *:443>
SSLEnable
ServerAlias yacmas.*
ServerName xxx
DocumentRoot /home/yacmas/yacmas/www/
</VirtualHost>
<Directory /home/yacmas/yacmas/www/>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride FileInfo Limit Indexes AuthConfig
</Directory>
More information about the Melbourne-pm
mailing list