[Musix-usuarios] icecast2 o server de streaming?
Gilberto Borges
bandacarona en yahoo.com.br
Dom Mar 23 00:41:27 CET 2008
Gilberto:
>
> luego de instalar apache con apt-get (y con
> aptitude lo mismo) me dice que no existen los
> archivos apachectl y apache2ctl,
eso no se pasó en mi equipo:
apache apache-ssl apache-sslctl
apachectl
apache-modconf apache-sslconfig apacheconfig
apagar
cosa que se
> soluciona con un ln -s , pasado eso no encuentra el
> archivo httpd.conf (y te lo digo dememoria porque lo
> busquè mil veces). No he probado compilar apache, ya
> tratarè. El tema es ocn apache y no con apache2
> (pero campcaster necesita apache).
El servicio no está corriendo!!!
Experimenta:
gilblack1234 en cheguevara:~$ httpd -v
bash: httpd: command not found
Vamos:
01) Instalando apache en mi equipo r3tes4+parche:
root en cheguevara:/home/gilblack1234# apt-get install
apache
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
apache-common apache2-utils libapr1 libaprutil1
Suggested packages:
apache-doc apache-ssl apache-perl
The following NEW packages will be installed:
apache apache-common apache2-utils libapr1
libaprutil1
0 upgraded, 5 newly installed, 0 to remove and 179 not
upgraded.
Need to get 1766kB of archives.
After unpacking 4582kB of additional disk space will
be used.
Do you want to continue [Y/n]? Y
=
====================
... Habilitar suExec?
<SI>
====================
mirá que bueno... he encontrado mi configuraciones de
locales, pero ocurrio un fallo...
===================
Get:1 ftp://ftp.fr.debian.org etch/main libapr1
1.2.7-8.2 [109kB]
Get:2 ftp://ftp.fr.debian.org etch/main libaprutil1
1.2.7+dfsg-2 [68.5kB]
Get:3 ftp://ftp.fr.debian.org etch/main apache2-utils
2.2.3-4+etch4 [342kB]
Get:4 ftp://ftp.fr.debian.org etch/main apache-common
1.3.34-4.1+etch1 [855kB]
Get:5 ftp://ftp.fr.debian.org etch/main apache
1.3.34-4.1+etch1 [391kB]
Fetched 1766kB in 45s (38.5kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "pt_BR",
LC_ALL = (unset),
LC_MESSAGES = "pt_BR",
LANG = "pt"
are supported and installed on your system.
perl: warning: Falling back to the standard locale
("C").
locale: Cannot set LC_CT
esto se puede resolver con
export LC_ALL="pt_BR"
luego:
root en cheguevara:/home/gilblack1234# export
LC_ALL="pt_BR"
root en cheguevara:/home/gilblack1234# apache-modconf
apache-perl
root en cheguevara:/home/gilblack1234#
mira que ahora configuró correctamente...
================
2) mirando la configuración,,
gilblack1234 en cheguevara:~$ httpd -v
bash: httpd: command not found
nuevamente... no esta corriendo...
mirando...
root en cheguevara:/home/gilblack1234# apt-get install
httpd
Reading package lists... Done
Building dependency tree... Done
Package httpd is a virtual package provided by:
yaws 1.65-4
webfs 1.21-4.1
tntnet 1.5.3-2
thttpd 2.23beta1-5
mzscheme 1:352-6
mini-httpd 1.19-3
micro-httpd 20051212-3
mathopd 1.5p5-1
lighttpd 1.4.13-4etch4
fnord 1.10-2
dhttpd 1.02a-16
cherokee 0.5.5.dfsg-2
bozohttpd 20060517-4
boa 0.94.14rc21-0.2
apache2-mpm-worker 2.2.3-4+etch4
apache2-mpm-prefork 2.2.3-4+etch4
apache2-mpm-itk 2.2.3-01-2+b1
apache2-mpm-event 2.2.3-4+etch4
apache-ssl 1.3.34-4.1+etch1
apache-perl 1.3.34-4.1+etch1
apache 1.3.34-4.1+etch1
aolserver4 4.0.10-7
You should explicitly select one to install.
Todos estos son servidores...
enconces:
root en cheguevara:/home/gilblack1234# ls -l /etc/apache
total 52
-rw-r--r-- 1 gilblack1234 root 285 May 30 2001
access.conf
lrwxrwxrwx 1 gilblack1234 root 1 Jan 11 17:32 conf
-> .
drwxr-xr-x 2 gilblack1234 root 128 Mar 22 18:54
conf.d
-rw-r--r-- 1 root root 35457 Mar 22 18:43
httpd.conf
lrwxrwxrwx 1 root root 15 Mar 22 18:43
mime.types -> /etc/mime.types
-rw-r--r-- 1 root root 1117 Mar 22 18:43
modules.conf
-rw-r--r-- 1 gilblack1234 root 297 Sep 24 2001
srm.conf
-rw-r--r-- 1 gilblack1234 root 297 May 30 2001
srm.conf.0
drwxr-xr-x 2 gilblack1234 root 104 Jun 24 2006
ssl.crl
drwxr-xr-x 2 gilblack1234 root 168 Jun 24 2006
ssl.crt
drwxr-xr-x 2 gilblack1234 root 112 Jun 24 2006
ssl.csr
drwxr-xr-x 2 gilblack1234 root 112 Jun 24 2006
ssl.key
drwxr-xr-x 2 gilblack1234 root 80 Jun 24 2006
ssl.prm
Mira que httpd.conf esta en esto directorio!!! Tenemos
en mente que apache es un servício, un daemon... debe
tener algo en /etc/rc5.d, entonces:
-rw-r--r-- 1 root root 556 Jan 30 2007 README
lrwxrwxrwx 1 root root 17 Jan 11 17:32 S05vbesave ->
../init.d/vbesave
lrwxrwxrwx 1 root root 20 Jan 11 17:32 S15realtime ->
/etc/init.d/realtime
lrwxrwxrwx 1 root root 15 Feb 27 16:29 S19hplip ->
../init.d/hplip
lrwxrwxrwx 1 root root 14 Feb 27 16:31 S19hpoj ->
../init.d/hpoj
lrwxrwxrwx 1 root root 15 Jan 11 17:32 S20acpid ->
../init.d/acpid
lrwxrwxrwx 1 root root 14 Jan 11 17:49 S20alsa ->
../init.d/alsa
lrwxrwxrwx 1 root root 18 Jan 11 17:32 S20cpufreqd ->
../init.d/cpufreqd
lrwxrwxrwx 1 root root 16 Jan 11 17:32 S20cupsys ->
../init.d/cupsys
lrwxrwxrwx 1 root root 14 Jan 11 17:32 S20dbus ->
../init.d/dbus
lrwxrwxrwx 1 root root 21 Jan 11 17:32 S20firestarter
-> ../init.d/firestarter
lrwxrwxrwx 1 root root 17 Jan 14 05:30 S20mplayer ->
../init.d/mplayer
lrwxrwxrwx 1 root root 23 Jan 11 17:32
S20openbsd-inetd -> ../init.d/openbsd-inetd
lrwxrwxrwx 1 root root 15 Jan 11 17:32 S20samba ->
../init.d/samba
lrwxrwxrwx 1 root root 24 Jan 11 17:32
S40dhcp3-server -> /etc/init.d/dhcp3-server
lrwxrwxrwx 1 root root 16 Mar 22 18:43 S91apache ->
../init.d/apache
lrwxrwxrwx 1 root root 20 Mar 22 18:55 S91apache-ssl
-> ../init.d/apache-ssl
lrwxrwxrwx 1 root root 17 Jan 14 07:38 S92camserv ->
../init.d/camserv
lrwxrwxrwx 1 root root 24 Jan 11 17:32
S96knoppix-user-livecd -> /bin/knoppix-user-livecd
lrwxrwxrwx 1 root root 25 Jan 11 17:32
S98cambiar-fondo-kdm.sh -> /bin/cambiar-fondo-kdm.sh
lrwxrwxrwx 1 root root 22 Jan 11 17:32
S99acpi-support -> ../init.d/acpi-support
lrwxrwxrwx 1 root root 19 Jan 11 17:32 S99alsactl ->
/etc/init.d/alsactl
lrwxrwxrwx 1 root root 27 Jan 11 17:32
S99force-localhost -> /etc/init.d/force-localhost
lrwxrwxrwx 1 root root 15 Jan 11 17:57 S99kdm ->
/etc/init.d/kdm
lrwxrwxrwx 1 root root 18 Jan 11 17:32 S99rc.local ->
../init.d/rc.local
lrwxrwxrwx 1 root root 19 Jan 11 17:32 S99rmnologin
-> ../init.d/rmnologin
lrwxrwxrwx 1 root root 15 Jan 11 17:32 S99rtirq ->
../init.d/rtirq
lrwxrwxrwx 1 root root 18 Jan 11 17:32 S99timidity ->
../init.d/timidity
lrwxrwxrwx 1 root root 29 Jan 11 17:32
S99xorgmusix-live-cd -> /etc/init.d/xorgmusix-live-cd
drwxr-xr-x 2 root root 192 Dec 10 2005 backup
drwxr-xr-x 2 root root 880 Feb 3 2006 backup-post031
drwxr-xr-x 2 root root 160 May 29 2006 backup-post040
drwxr-xr-x 2 root root 272 Aug 30 2006 backup-pre059
drwxr-xr-x 2 root root 328 Jan 18 2006 backup031
drwxr-xr-x 2 root root 264 Feb 23 2006 backup039
drwxr-xr-x 2 root root 296 Feb 3 2006 original
drwxr-xr-x 2 root root 168 Feb 23 2006 removed-pre039
que bueno:
S91apache
s91apache-ssl
Bien... Esto que decir que en la proxima vez que
empezar el sistema, esto va ser iniciado...
entonces, vamos hacer una simulación...
root en cheguevara:/home/gilblack1234#
/etc/rc5.d/S91apache start
Configuration syntax error detected, not
starting/reloading...
Syntax error on line 4 of
/etc/apache/conf.d/mod-ssl-00-global.conf:
Cannot load /usr/lib/apache/1.3/mod_ssl.so into
server: /usr/lib/apache/1.3/mod_ssl.so: cannot open
shared object file: No such file or directory
failed!
mira que apunta un defecto en la configuración...
vamos, entonces,,,
root en cheguevara:/home/gilblack1234# cat
/etc/apache/conf.d/mod-ssl-00-global.conf
# The whole SSL configuration in this context applies
both to
# the main server and all SSL-enabled virtual hosts.
LoadModule ssl_module /usr/lib/apache/1.3/mod_ssl.so
# We surround the directives with <IfModule> ..
</Ifmodule>, so that Apache
# will keep a valid configuration even if mod_ssl is
unavailable.
<IfModule mod_ssl.c>
# These will make apache listen to port 443 in
addition to the
# standard port 80. HTTPS requests use port
443.
Listen 80
Listen 443
# Some MIME-types for downloading Certificates
and CRLs
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
# Semaphore:
# Configure the path to the mutual exclusion
semaphore the
# SSL engine uses internally for
inter-process synchronization.
SSLMutex file:/var/run/mod_ssl_mutex
# Pseudo Random Number Generator (PRNG):
# Configure one or more sources to seed the
PRNG of the
# SSL library. The seed data should be of
good random quality.
SSLRandomSeed startup file:/dev/urandom 512
SSLRandomSeed connect file:/dev/urandom 512
# Logging:
# The home of the dedicated SSL protocol
logfile. Errors are
# additionally duplicated in the general
error log file. Put
# this somewhere where it cannot be used for
symlink attacks on
# a real server (i.e. somewhere where only
root can write).
# Log levels are (ascending order: higher
ones include lower ones):
# none, error, warn, info, trace, debug.
#SSLLog /var/log/apache/ssl_engine.log
#SSLLogLevel info
</IfModule>
Apunta un error de sintax en
LoadModule ssl_module /usr/lib/apache/1.3/mod_ssl.so
me dice que modulos ssl.so no existe...
root en cheguevara:/home/gilblack1234#
/etc/rc5.d/S91apache reload-modules
Configuration syntax error detected, not
starting/reloading...
Syntax error on line 4 of
/etc/apache/conf.d/mod-ssl-00-global.conf:
Cannot load /usr/lib/apache/1.3/mod_ssl.so into
server: /usr/lib/apache/1.3/mod_ssl.so: cannot open
shared object file: No such file or directory
failed!
root en cheguevara:/home/gilblack1234#
/etc/rc5.d/S91apache force-reload
Configuration syntax error detected, not
starting/reloading...
Syntax error on line 4 of
/etc/apache/conf.d/mod-ssl-00-global.conf:
Cannot load /usr/lib/apache/1.3/mod_ssl.so into
server: /usr/lib/apache/1.3/mod_ssl.so: cannot open
shared object file: No such file or directory
failed!
root en cheguevara:/home/gilblack1234#
/etc/rc5.d/S91apache restart
Configuration syntax error detected, not
starting/reloading...
Syntax error on line 4 of
/etc/apache/conf.d/mod-ssl-00-global.conf:
Cannot load /usr/lib/apache/1.3/mod_ssl.so into
server: /usr/lib/apache/1.3/mod_ssl.so: cannot open
shared object file: No such file or directory
failed!
Instalando apache-ssl
apt-get instal apache-ssl...
ahora si:
root en cheguevara:/home/gilblack1234#
/etc/rc5.d/S91apache-ssl start
Starting apache-ssl 1.3 web server....
root en cheguevara:/home/gilblack1234#
Listo... tiengo apache-ssl corriendo enmi equipo...
ahora vanmos intentar..
root en cheguevara:/home/gilblack1234#
/etc/rc5.d/S91apache start
Configuration syntax error detected, not
starting/reloading...
Syntax error on line 4 of
/etc/apache/conf.d/mod-ssl-00-global.conf:
Cannot load /usr/lib/apache/1.3/mod_ssl.so into
server: /usr/lib/apache/1.3/mod_ssl.so: cannot open
shared object file: No such file or directory
failed!
Lo que es eso:
mod_ssl tiene relación con la cirptografia ssl. cuando
tenés soporte a SSL en tu servidro apache, debes ahcer
el registro del server ssl. Mira www.apache.org
Los paquetes necesários para instalación son:
SSLeay
OpenSSL
mod_ssl
miramos lo que se pasa;
root en cheguevara:/home/gilblack1234# apt-get install
openssl
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
openssl
1 upgraded, 0 newly installed, 0 to remove and 178 not
upgraded.
1 not fully installed or removed.
Need to get 1001kB of archives.
After unpacking 77.8kB disk space will be freed.
Se instala, pero no corre... es que ssl no esta
registrado...
se puede comentar la linea 04 de esto fichero
sudo kwrite /etc/apache/conf.d/mod-ssl-00-global.conf
y ahora, con root:
root en cheguevara:/home/gilblack1234#
/etc/rc5.d/S91apache start
Starting apache 1.3 web server....
root en cheguevara:/home/gilblack1234#
Mirá esto:
LISTO!!!!!!!!!!!!!!!!1
Apache esta a correr en mi equipo
Además, apache-ssl también... Ahora solo falta cambiar
las configuraciones... cómo ves, es sencillo correr
apache en MUSIX.
El tema de ssl es que necesita registro en empresas
especializadas... por ahora estamos a correr
apache-perl, pero no tiene criptografia...
============haciendo en testeo:
konqueror http://localhost/
LISTO!!!!!!!!!!!!!!!!!!!!!
La web de Debian / Apache por defecto..
Que bueno... tiengo un server corriendo en mi
equipo... pero tiengo un router dhcp... toda la vez
que levantar el equipo voy tener un ip diferente.
Rs... eso no va andar bien.... jejejeje
========================
bien... por ahora vamos a httpd.conf
Hay que hacer la configuración a la mano acá...
Esto es quilombo!!! Por dios... no voy trabajar en
esto, pues no tiengo tiempo... pero hay que buscar un
tutorial de instalación... Yo tiengo un libro:
STATO FILHO, André. Domínio Linux. Do básico a
Servidores. Florianópolis: Visual Books, 2002
que tiene paso a paso la configuración de
httpd.conf.;.
Lo importante es que ahora sabés donde está el
fichero: en
/etc/apache.
Bien... mi servidor apache está corriendo...
Quizá vos no necesites apache... un server más
sencillo puede te servir.
Mira que no tuve problemas con los links cómo
pauntaste vos...
Saludos
Suerte
Gilberto
>
> Para todos:
>
> que guachos que me tiran data justo ahora que no
> estoy cerca de musix!!!! GRX lo mismo! jaja,
> abrazos!
>
> Pablito
>
_________________________________________________________________
> Do more with your photos with Windows Live Photo
> Gallery.
>
http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_photos_022008>
_______________________________________________
> Musix GNU+Linux - www.musix.org.ar
> Musix-usuarios mailing list
> Musix-usuarios en lists.ourproject.org
>
https://lists.ourproject.org/cgi-bin/mailman/listinfo/musix-usuarios
>
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/
Más información sobre la lista de distribución Musix-usuarios