[Update] RaptorWebPanel v. 1.1

Publicado por joemg6, Diciembre 03, 2014, 08:56:47 PM

Tema anterior - Siguiente tema

joemg6

RaptorWebPanel v. 1.1
Changelog
- Multilenguaje (español, ingles, portugues)
- Realtime info system
- Gráficas de Ahorro y almacenamiento

Código (bash) [Seleccionar]

wget https://www.dropbox.com/s/ccrndusi9odpn0e/raptorwebpanel.tar.gz
mv /var/raptor/ /var/raptor_old/
tar -xzvf raptorwebpanel.tar.gz
mv raptorwebpanel /var/
mv /var/raptorwebpanel/ /var/raptor/
rm -f raptorwebpanel.tar.gz
clear
chmod 777 /var/raptor/*
chmod 777 /var/raptor/rpconf/*
chmod 777 /etc/raptor/raptor.lst
chmod 777 /etc/squid3/squid.conf
chmod 777 /etc/raptor/raptor.conf
chmod 777 /etc/squid3/denegados.lst
chmod 777 /etc/network/interfaces
chmod 777 /etc/resolv.conf
touch /etc/apache2/sites-available/raptor.conf
echo "Listen 82
<VirtualHost *:82>
DocumentRoot /var/raptor
ServerName www.raptorcache.com
ErrorLog /var/log/virtual82-error_log
CustomLog /var/log/virtual82-access_log common
</VirtualHost>
Listen 84
<VirtualHost *:84>
DocumentRoot /var/www/sarg
ServerName www.raptorcache.com
</VirtualHost>

<Directory /var/raptor/rpconf>
   AuthUserFile /var/raptor/rpconf/.htpasswd
   AuthName \"Authorization Required\"
   AuthType Basic
   require valid-user
</Directory>" > /etc/apache2/sites-available/raptor.conf
a2ensite raptor.conf


Código (bash) [Seleccionar]

service apache2 restart


Código (bash) [Seleccionar]

apt-get install ifstat
RaptorCache Developer

firecold

Gracias amigo Joemg6, es justo lo que muchos estaban esperando, especialmente el de portugues, que habian varias peticiones por ahi, Saludos

alfiloro

el que puede puede por que cree que puede

firecold

Amigo Joemg6 recien instale la actualizacion del Webpanel y cuando lo instale todo bien como puedes ver:



Pero despues que instale:

Código (bash) [Seleccionar]
apt-get install ifstat

Me paso esto:



Y el log del webpanel dice esto:

CitarWed Dec 03 22:36:48.614827 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Warning:  include_once(lang/.lang.php): failed to open stream: No such file or directory in /var/raptor/main/hide.php on line 11, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.614850 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Warning:  include_once(): Failed opening 'lang/.lang.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/raptor/main/hide.php on line 11, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615046 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined offset: 1 in /var/raptor/main/hide.php on line 46, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615112 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined variable: countUser in /var/raptor/main/hide.php on line 57, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615244 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined index: RaptorWebPanel in /var/raptor/main/hide.php on line 105, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615271 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined index: RaptorWebPanel in /var/raptor/main/hide.php on line 106, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615282 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined index: RaptorWebPanel in /var/raptor/main/hide.php on line 109, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615296 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined variable: listeTriImp in /var/raptor/main/hide.php on line 114, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615305 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Warning:  Invalid argument supplied for foreach() in /var/raptor/main/hide.php on line 114, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615324 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Warning:  Invalid argument supplied for foreach() in /var/raptor/main/hide.php on line 121, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615338 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined index: rootServeur in /var/raptor/main/hide.php on line 132, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615349 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Array to string conversion in /var/raptor/main/hide.php on line 132, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615363 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined index: repServeur in /var/raptor/main/hide.php on line 133, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615373 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Array to string conversion in /var/raptor/main/hide.php on line 133, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615383 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined index: startServeur in /var/raptor/main/hide.php on line 134, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615392 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Array to string conversion in /var/raptor/main/hide.php on line 134, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615404 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined variable: racineServeur in /var/raptor/main/hide.php on line 136, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615420 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined variable: racineBin in /var/raptor/main/hide.php on line 140, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615438 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined variable: racineEdt in /var/raptor/main/hide.php on line 141, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615447 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined variable: racineLog in /var/raptor/main/hide.php on line 142, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615458 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined index: langUser in /var/raptor/main/hide.php on line 145, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615510 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Undefined index: connected in /var/raptor/main/hide.php on line 149, referer: http://192.168.1.1:82/
[Wed Dec 03 22:36:48.615526 2014] [:error] [pid 7601] [client 192.168.1.1:50050] PHP Notice:  Array to string conversion in /var/raptor/main/hide.php on line 149, referer: http://192.168.1.1:82/

Perdona la molestia, como un dato extra, estoy usando Ubuntu 14.04.

joemg6

Cita de: firecold en Diciembre 03, 2014, 11:43:38 PM
Amigo Joemg6 recien instale la actualizacion del Webpanel y cuando lo instale todo bien como puedes ver:



Pero despues que instale:

Código (bash) [Seleccionar]
apt-get install ifstat

Me paso esto:



Y el log del webpanel dice esto:

Perdona la molestia, como un dato extra, estoy usando Ubuntu 14.04.
Ejecuta
sudo ifstat -b | head -3 | grep -v eth0 | grep -v Kbps | awk '{print $1}'
y verifica que resultado te da?

Sobre el log, ese resultado te sale en el "virtual82-access.log"
RaptorCache Developer

firecold

Cita de: joemg6 en Diciembre 04, 2014, 12:25:51 AM
Ejecuta
sudo ifstat -b | head -3 | grep -v eth0 | grep -v Kbps | awk '{print $1}'
y verifica que resultado te da?

Sobre el log, ese resultado te sale en el "virtual82-access.log"

Amigo te comento el log es virtual82-error.log y ejecute el comando y solamente sale : 0.00, ahora me sale esto en log que mencione:

Citar[Wed Dec 03 23:06:35.436923 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Warning:  include(../../main/auth.php): failed to open stream: No such file or directory in /var/raptor/vns/lang/in.php on line 3, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.436967 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Warning:  include(): Failed opening '../../main/auth.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/raptor/vns/lang/in.php on line 3, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.436987 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Warning:  include(../../main/functions.php): failed to open stream: No such file or directory in /var/raptor/vns/lang/in.php on line 4, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.436995 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Warning:  include(): Failed opening '../../main/functions.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/raptor/vns/lang/in.php on line 4, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.437010 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Warning:  include(../../lang.php): failed to open stream: No such file or directory in /var/raptor/vns/lang/in.php on line 5, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.437017 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Warning:  include(): Failed opening '../../lang.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/raptor/vns/lang/in.php on line 5, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.437022 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Notice:  Undefined variable: deflang in /var/raptor/vns/lang/in.php on line 6, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.437035 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Warning:  include(../../lang/.lang.php): failed to open stream: No such file or directory in /var/raptor/vns/lang/in.php on line 6, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.437042 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Warning:  include(): Failed opening '../../lang/.lang.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/raptor/vns/lang/in.php on line 6, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.437053 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Notice:  Undefined index: ws in /var/raptor/vns/lang/in.php on line 7, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.437065 2014] [:error] [pid 16155] [client 192.168.1.1:51937] PHP Notice:  Undefined index: vns_tt in /var/raptor/vns/lang/in.php on line 33, referer: http://192.168.1.1:82/system.php
[Wed Dec 03 23:06:35.621072 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Warning:  include(../../main/auth.php): failed to open stream: No such file or directory in /var/raptor/vns/lang/in.php on line 3, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621157 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Warning:  include(): Failed opening '../../main/auth.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/raptor/vns/lang/in.php on line 3, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621194 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Warning:  include(../../main/functions.php): failed to open stream: No such file or directory in /var/raptor/vns/lang/in.php on line 4, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621209 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Warning:  include(): Failed opening '../../main/functions.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/raptor/vns/lang/in.php on line 4, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621235 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Warning:  include(../../lang.php): failed to open stream: No such file or directory in /var/raptor/vns/lang/in.php on line 5, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621248 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Warning:  include(): Failed opening '../../lang.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/raptor/vns/lang/in.php on line 5, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621259 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Notice:  Undefined variable: deflang in /var/raptor/vns/lang/in.php on line 6, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621284 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Warning:  include(../../lang/.lang.php): failed to open stream: No such file or directory in /var/raptor/vns/lang/in.php on line 6, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621296 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Warning:  include(): Failed opening '../../lang/.lang.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/raptor/vns/lang/in.php on line 6, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621314 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Notice:  Undefined index: ws in /var/raptor/vns/lang/in.php on line 7, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h
[Wed Dec 03 23:06:35.621336 2014] [:error] [pid 16158] [client 192.168.1.1:51939] PHP Notice:  Undefined index: vns_tt in /var/raptor/vns/lang/in.php on line 33, referer: http://192.168.1.1:82/vns/vns.php?if=eth0&graph=large&style=light&page=h

joemg6

El WebPanel se ha testeado en Debian 7.7 PHP 5.4.4, y no genera ningún error en el log, verifica que versión de php tienes instalado.

php -v
RaptorCache Developer

firecold

Cita de: joemg6 en Diciembre 04, 2014, 12:53:43 AM
El WebPanel se ha testeado en Debian 7.7 PHP 5.4.4, y no genera ningún error en el log, verifica que versión de php tienes instalado.

php -v


PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

joemg6

Cita de: firecold en Diciembre 04, 2014, 12:58:10 AM
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
   with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
Sería verificar en Ubuntu para hacer una mejor depuración, ya que suele tener distintas versiones en los paquetes, como es en este caso el de PHP.
RaptorCache Developer

firecold

Cita de: joemg6 en Diciembre 04, 2014, 01:03:08 AM
Sería verificar en Ubuntu para hacer una mejor depuración, ya que suele tener distintas versiones en los paquetes como es en este caso el de PHP.

Tienes razon, pero lo bueno que ahora si tengo los reportes de dominios que antes no tenia, ya averiguare que es y te lo estare reportando, Saludos

firecold

Cita de: joemg6 en Diciembre 04, 2014, 01:03:08 AM
Sería verificar en Ubuntu para hacer una mejor depuración, ya que suele tener distintas versiones en los paquetes, como es en este caso el de PHP.

Amigo Joemg6 solucionado elimine ifstat y todo de nuevo sin problemas, gracias por tu ayuda y gracias por llenarnos de alegria con cada una de las actualizaciones estan barbaras, Saludos

jeicko24

hola amifo firecold yo he intentado instalar pero no lo he logrado, necesito tu ayuda, esto me sale cunado inicio al webpanel
gracias

http://subefotos.com/ver/?1fd2ccbcab8327e5e9e74bece98e61b4o.jpg

joemg6

Cita de: jeicko24 en Diciembre 04, 2014, 08:09:41 AM
hola amifo firecold yo he intentado instalar pero no lo he logrado, necesito tu ayuda, esto me sale cunado inicio al webpanel
gracias

http://subefotos.com/ver/?1fd2ccbcab8327e5e9e74bece98e61b4o.jpg
Reinicia el Raptor por terminal, fijate si inicia sin problema o que mensaje te sale

service raptor restart
RaptorCache Developer

jeicko24

lo pude solucionar amigo ya esta funcionando pero veo algo diferente respecto al tuyo que es el squid
me sale  v3.1.20

http://subefotos.com/ver/?52cd69159265bff66734c55567a4168fo.jpg

jeicko24

gracias por tu respuesta gran joemg ,  eres genial

joemg6

Cita de: jeicko24 en Diciembre 04, 2014, 08:44:21 AM
lo pude solucionar amigo ya esta funcionando pero veo algo diferente respecto al tuyo que es el squid
me sale  v3.1.20

http://subefotos.com/ver/?52cd69159265bff66734c55567a4168fo.jpg
En debian 7, por defecto instala la versión 3.1.20 de Squid, en el caso de la imagen del amigo firecold está utilizando Ubuntu que instala por defecto otra versión, como también puede haberse compilado otra versión de squid.
RaptorCache Developer

azaelg

Cita de: joemg6 en Diciembre 03, 2014, 08:56:47 PM
RaptorWebPanel v. 1.1
Change log
- Multilenguaje (español, ingles, portugues)
- Realtime info system

Código (bash) [Seleccionar]

wget https://www.dropbox.com/s/ccrndusi9odpn0e/raptorwebpanel.tar.gz
mv /var/raptor/ /var/raptor_old/
tar -xzvf raptorwebpanel.tar.gz
mv raptorwebpanel /var/
mv /var/raptorwebpanel/ /var/raptor/
rm -f raptorwebpanel.tar.gz
clear
chmod 777 /var/raptor/*
chmod 777 /var/raptor/rpconf/*
chmod 777 /etc/raptor/raptor.lst
chmod 777 /etc/squid3/squid.conf
chmod 777 /etc/raptor/raptor.conf
chmod 777 /etc/squid3/denegados.lst
chmod 777 /etc/network/interfaces
chmod 777 /etc/resolv.conf
touch /etc/apache2/sites-available/raptor.conf
echo "Listen 82
<VirtualHost *:82>
DocumentRoot /var/raptor
ServerName www.raptorcache.com
ErrorLog /var/log/virtual82-error_log
CustomLog /var/log/virtual82-access_log common
</VirtualHost>
Listen 84
<VirtualHost *:84>
DocumentRoot /var/www/sarg
ServerName www.raptorcache.com
</VirtualHost>
<irectory /var/raptor/rpconf>
   AuthUserFile /var/raptor/rpconf/.htpasswd
   AuthName \"Authorization Required\"
   AuthType Basic
   require valid-user
</Directory>" > /etc/apache2/sites-available/raptor.conf
a2ensite raptor.conf


Código (bash) [Seleccionar]

service apache2 restart


Código (bash) [Seleccionar]

apt-get install ifstat


Hola mi estimado, yo tengo debian con php 5. No me aparece el panel. Como soluciono el problema..

07350286

Amigo Joemg me marca este error.
Aún no lo instalo
apt-get install ifstat
Porque cuando lo instalo uno desaparece lo que es webPanel

joemg6

A los que no les aparece el panel, verifiquen el estado del reporte del ifstat por terminal

ifstat -b | head -3 | grep -v eth[0-9]

El ifstat es para el reporte del Tx y Rx del servidor
RaptorCache Developer

07350286

Amigo al actualizar el WebPanel, ya no puedo acceder al WebPanel. Cuando recién actualice pude acceder, pero cuando reinicie la maquina donde tengo instalado Raptor ya no pude acceder me marca este error alguna solución.