Хочу поднять у себя Looking Glass
Если кто ставил - поделитесь инфой что и как...
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at mon.osystems.ru Port 80</address>
</body></html>
<VirtualHost XXX.XXX.XXX.10>
ServerAdmin root@XXX.ru
DocumentRoot /usr/local/www/LG/cgi
ServerName lg.XXX.ru
Alias /favicon.ico /usr/local/www/LG/cgi/favicon.ico
ScriptAlias / /usr/local/www/LG/cgi/lg.cgi
ErrorLog /usr/local/www/LG/logs/error
CustomLog /usr/local/www/LG/logs/access common
</VirtualHost>
LoadModule cgi_module libexec/apache/mod_cgi.so
AddModule mod_cgi.c
AddHandler cgi-script .cgi .pl
SyJet писал(а):создал юзера с правами только просмотр - надеюсь этого достаточно?
show system login
class looking-glass {
idle-timeout 3;
permissions network;
allow-commands "(^ping .*)|(^traceroute .*)|(^exit)|(^quit)|(^show bgp neighbor .*)|(^show bgp summary)|(^show route .*)";
deny-commands .*;
deny-configuration .*;
}
user lg {
uid 2002;
class looking-glass;
authentication {
encrypted-password "************************************"; ## SECRET-DATA
}
}
[root@mon conf.d]# yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
LoadModule cgi_module modules/mod_cgi.so
AddHandler cgi-script .cgi .pl
#!/usr/bin/perl
perl /var/www/html/lg/lg.cgi
[root@mon bin]# [root@mon conf]# [root@mon bin]# perl /var/www/html/lg/lg.cgi
bash: [root@mon: command not found
[root@mon bin]# Can't locate XML/Parser.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /var/www/html/lg/lg.cgi line 28.
> BEGIN failed--compilation aborted at /var/www/html/lg/lg.cgi line 28.
> [root@mon bin]#
[root@mon bin]# yum install perl-XML-Parser
Вернуться в Маршрутизация / Routing
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 46