Skip to content

Instantly share code, notes, and snippets.

@rbuels
Forked from nmenda/sgn
Created December 2, 2009 17:13
Show Gist options
  • Save rbuels/247352 to your computer and use it in GitHub Desktop.
Save rbuels/247352 to your computer and use it in GitHub Desktop.
Restarting web server: apache2Syntax error on line 14 of /etc/apache2/sites-enabled/sgn:
Global $r object is not available. Set:\n\tPerlOptions +GlobalRequest\nin httpd.conf at /usr/local/lib/site_perl/CXGN/Apache/Request.pm line 118.\nCompilation failed in require at (eval 350) line 1.\nCompilation failed in require at /home/naama/cxgn/sgn/lib/SGN/Apache2/Startup.pm line 21.\nBEGIN failed--compilation aborted at /home/naama/cxgn/sgn/lib/SGN/Apache2/Startup.pm line 21.\nCompilation failed in require at /etc/apache2/sites-enabled/sgn line 18.\nBEGIN failed--compilation aborted\t(in cleanup) Global $r object is not available. Set:\n\tPerlOptions +GlobalRequest\nin httpd.conf at /usr/local/lib/site_perl/CXGN/Apache/Request.pm line 118.\nCompilation failed in require at (eval 350) line 1.\nCompilation failed in require at /home/naama/cxgn/sgn/lib/SGN/Apache2/Startup.pm line 21.\nBEGIN failed--compilation aborted at /home/naama/cxgn/sgn/lib/SGN/Apache2/Startup.pm line 21.\nCompilation failed in require at /etc/apache2/sites-enabled/sgn line 18.\nBEGIN failed--compilation aborted at /etc/apache2/sites-enabled/sgn line 18.\n
failed!
# enable extended apache server status, which is sometimes useful for debugging
ExtendedStatus On
<VirtualHost *:80>
ServerName sgn.localhost.localdomain
PerlWarn On
PerlTaintCheck On
LogLevel info
<Perl>
use lib '/home/naama/cxgn/sgn/lib';
use lib '/home/naama/cxgn/cxgn-corelibs/lib';
use local::lib '/home/naama/cxgn/local-lib';
use SGN::Apache2::Startup vhost => 1;
$SIG{__DIE__} = \&CXGN::Apache::Error::cxgn_die_handler;
$SIG{__WARN__} = \&CXGN::Apache::Error::cxgn_warn_handler;
</Perl>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment