From: Benedict s. <si...@km...> - 2008-06-03 11:42:59
|
> Benedict simon wrote: >> >> Dear All >> >> I have just installed backup PC as per the docs and now when i run >> >> http://hostname/BackupPC_Admin >> >> the main page .. Backuppc Server status page comes but no images. >> >> also in the http errors.log i c >> >> >> [Sun Jun 01 13:05:10 2008] [error] Bareword found where operator >> expected >> at /var/www/ >> cgi-bin/images/sorttable.js line 1, near "#line 1 >> /var/www/cgi-bin/images/sorttable.js >> \n// Used"\nsyntax error at /var/www/cgi-bin/images/sorttable.js line 1, >> near "#line 1 > > It looks like you specified the images directory to be underneath the > cgi-bin directory during installation, and you have apache configured to > execute everything under cgi-bin, so it is trying to execute the content > on the server instead of displaying it. Normally you would put the > images somewhere like /var/www/html/backuppc/images that isn't > configured for executable content. > > -- > Les Mikesell > les...@gm... > Thanks Guys and really apprecite for your quick reply actually under mu cgi-bin director i only have the BackupPC_Admin script which is installed by the install program. only i had a soft link in my cgi-bin directory to the images directory which was under /var/www/images i still have the same problem but diiferent error let me do give u some more details 1) apache runs as user backuppc and group apache document root is /var/www/cgi-bin -- in cgi-bin only BackupPC_Admin -r-sr-x--- 1 backuppc apache 3993 Jun 2 23:38 BackupPC_Admin 2) the image directory where images are is /var/www/html and owner group is backuppc user with only read permission to all images files 3) in /etc/BackupPC/config.pl file i see the following $Conf{CgiImageDir} = '/var/www/html'; and $Conf{CgiImageDirURL} = '/html'; 4) here below is apache access log [03/Jun/2008:14:40:07 +0300] "GET /BackupPC_Admin HTTP/1.1" 200 4102 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)" xx.xx.xx.xx - - [03/Jun/2008:14:40:08 +0300] "GET /html/BackupPC_stnd.css HTTP/1.1" 404 298 "http://xx.xx.xx.xx/BackupPC_Admin" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322) "xx.xx.xx.xx - - [03/Jun/2008:14:40:08 +0300] "GET /html/sorttable.js HTTP/1.1" 404 293 "http://xx.xx.xx.xx/BackupPC_Admin" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)" xx.xx.xx.xx - - [03/Jun/2008:14:40:08 +0300] "GET /html/logo.gif HTTP/1.1" 404 289 "http://xx.xx.xx.xx/BackupPC_Admin" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)" 5) here my apache error log [Tue Jun 03 14:40:08 2008] [error] slurp_filename('/var/www/cgi-bin/html') / opening: (2) No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/RegistryCooker.pm line 540 [Tue Jun 03 14:40:08 2008] [error] slurp_filename('/var/www/cgi-bin/html') / opening: (2) No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/RegistryCooker.pm line 540 [Tue Jun 03 14:40:08 2008] [error] slurp_filename('/var/www/cgi-bin/html') / opening: (2) No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/ModPerl/RegistryCooker.pm line 540 jus wondering from where the ('/var/www/cgi-bin/html') is commin in the logs really wd apprecite your kind help regards simon > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > -- Network ADMIN ------------- KUWAIT MUNICIPALITY: -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |