Fwd: [opensuse-es] Fwd: Apache
El 24/07/07, Camaleón
El 24/07/07, J. OCTAVIO AVALOS escribió:
Para inhabilitar el módulo "mod_perl module" de Apache lo desinstalo o tengo otra opción?.
Hum... tendría que revisar la documentación, pero creo que los módulos que quieres cargar se especifican en /etc/sysconfig/apache2.
Otra pregunta, si me permitiis, para depurar conceptos: Para poner a andar postgre lo que hago es ejecutar la orden siguiente.
postgres@linux:~> /usr/bin/postmaster -D /var/lib/pgsql/data
¿Hay otra opción mas corta? ¿Lo estoy haciendo bien?
Prueba con el "estilo suse": rcpostgres start
lo mismo con Apache e Hylafax:
linux# /etc/init.d/apache2 start linux# /etc/init.d/hylafax start
Lo mismo (si lo quieres lanzar de forma manual):
rcapache2 start rchylafax start
A veces las cosas mas tontas dan mas quebraderos de cabeza .... Estaba dándole vueltas por qué las órdenes de inicio de estas aplicaciones en ocasiones empezaban por el prefijo "rc" y otras veces no. De aquí viene mi pregunta, naturalmente "a lo gallego" haciendo honores a mi filiación. No podía haber varias ordenes para hacer lo mismo, en algo se tenían que diferenciar y mira por donde estamos hablando del "estilo suse"... :-P En lo relativo a la primera cuestión, inhabilitar o descargar (esta es la duda) "mod-perl" en Apache, la solucion (You have to disable mod_perl module in Apache) me la facilitó el desarrollador de la aplicacion igsuite que me puse en contacto con él, la que quería instalar para utilizarla para enviar y recibir faxes y me estaba dando un error, cuando intentaba generar la base de datos, ¿te acuerdas verdad Camaleón? :-) El caso es que no se si tengo que desintalar este modulo o hay alguna forma de inhabilitarlo para cada aplicación web en concreto. Un saludo -- Octavio Ávalos -- Octavio Ávalos --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
El 24/07/07, J. OCTAVIO AVALOS escribió:
A veces las cosas mas tontas dan mas quebraderos de cabeza .... Estaba dándole vueltas por qué las órdenes de inicio de estas aplicaciones en ocasiones empezaban por el prefijo "rc" y otras veces no. De aquí viene mi pregunta, naturalmente "a lo gallego" haciendo honores a mi filiación. No podía haber varias ordenes para hacer lo mismo, en algo se tenían que diferenciar y mira por donde estamos hablando del "estilo suse"... :-P
La mayoría de los programas compilados para SuSE suelen funcionar con "rc", añaden los scripts de inicio correctamente, etc, pero ojo, no todos. El camino corto es "rcprograma start" pero no siempre es posible, así que el "método Octavio" ;-) es más largo pero no falla.
En lo relativo a la primera cuestión, inhabilitar o descargar (esta es la duda) "mod-perl" en Apache, la solucion (You have to disable mod_perl module in Apache) me la facilitó el desarrollador de la aplicacion igsuite que me puse en contacto con él, la que quería instalar para utilizarla para enviar y recibir faxes y me estaba dando un error, cuando intentaba generar la base de datos, ¿te acuerdas verdad Camaleón? :-)
No veo la relación en que pueda afectar un módulo de Apache con la base de datos, pero si lo ha dicho el desarrollador, por algo será :-) Aún así, no dejes de mirar los registros de error, de Apache, Postgres o cualquier programa que entre en juego, te puede dar más pistas del fallo.
El caso es que no se si tengo que desintalar este modulo o hay alguna forma de inhabilitarlo para cada aplicación web en concreto.
Verifica si se carga en el fichero que te dije antes /etc/sysconfig/apache2. De todas formas, te recomiendo que leas el manual de tu versión de SuSE (yo tengo el de la 10.0) Reference Manual, capítulo 46, servidor web apache, donde te explica muy detalladamenente, cómo configurar Apache desde Yast y cómo "no" cargar los módulos que quieras: Modules By selecting the Modules settings and clicking Edit, you can change the status of Apache2 modules by clicking Toggle Status. Click Add Module to add a new module. Lo de habilitarlo / deshabilitarlo para algunas aplicaciones no sé si será posible, lo que seguramente sí podrás es deshabilitarlo para "dominios virtuales" (es decir, que se cargue en "www.dominio1.com" pero no en "www.dominio2.com"), lo cual dependerá de si usas multidominios o no. Saludos, -- Camaleón --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
El error que me daba era este:
Server localhost with UNIX Perl_Version 5.008008 Procedure igsuite last modified 26/04/2007 IG_Version 3.2.3 User guest - Guest User Date 2007-07-24 09:01 Description Can't create tavi-session-1185260474- 1h8t8nus27 file to register session on /srv/www/cgi-bin/log check directory permissions at IG.pm line 1049. at row 1049 - in IG::DTable To obtain more information please contact your System Administrator or if you want, try to send this message to staff@igsuite.org
Y él me contestó con la solución que indiqué en el mensaje anterior. En cuanto al archivo etc/sysconfig/apache2, no me entero de mucho, para ser sincero de nada >-) Me permito la libertad o mas bien la licencia de pegar el archivo apache2 a ver si te dice algo: ## Path: Network/WWW/Apache/SuSEhelp ## Description: SuSE help doc server configuration ## Type: yesno ## Default: no ## Config: apache ## ServiceRestart: apache ## Command: # # Set this to yes on the central documentation server # or to configure apache for local use of susehelp. # Then the online-help-system indices are automatically adjusted # and access to the help-files is allowed as specified in DOC_ALLOW. # To run as a client for the central documentation server who's name # is specified in DOC_HOST, just set DOC_SERVER to no. # The DOC_HOST and DOC_ALLOW variables are in the file /etc/sysconfig/susehelp. # DOC_SERVER="no" ## Path: Network/WWW/Apache2 ## Description: Configuration for Apache 2 ## Type: string ## Default: "" ## ServiceRestart: apache2 # # Here you can name files, separated by spaces, that should be Include'd from # httpd.conf. # # This allows you to add e.g. VirtualHost statements without touching # /etc/apache2/httpd.conf itself, which makes upgrading easier. # APACHE_CONF_INCLUDE_FILES="" ## Type: string ## Default: "" ## ServiceRestart: apache2 # # Here you can name directories, separated by spaces, that should be Include'd # from httpd.conf. # # All files contained in these directories will be recursively included by apache. # If a pattern like *.conf is appended, apache will use it. # # Examples: "/etc/apache2/my_conf/" # "/etc/apache2/virtual_hosts/*.conf" # "local/*.conf /srv/www/virtual/" # APACHE_CONF_INCLUDE_DIRS="" ## Type: string ## Default: "actions alias auth_basic authz_host authn_file authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5" ## ServiceRestart: apache2 # # [It might look silly to not simply edit httpd.conf for the LoadModule statements. # However, since the LoadModule statements might need an absolute path to the modules, # switching between MPMs can be quite a hassle. It's easier to just give the names here.] # # * list of all modules shipped with the base distribution: # # actions alias asis auth_basic auth_digest authn_alias authn_anon # authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm # authz_default authz_groupfile authz_host authz_owner authz_user # autoindex bucketeer cache case_filter case_filter_in cern_meta cgi # charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio # echo env expires ext_filter file_cache filter headers ident imagemap # include info ldap log_config log_forensic logio mem_cache mime mime_magic # negotiation optional_fn_export optional_fn_import optional_hook_export # optional_hook_import proxy proxy_ajp proxy_balancer proxy_connect # proxy_ftp proxy_http rewrite setenvif speling ssl status suexec unique_id # userdir usertrack version vhost_alias # # see http://httpd.apache.org/docs-2.2/mod/ ! # # * It pays to use IfDefine statements... like # <IfModule mod_xyz.c> # .... # </IfModule> # # * In the APACHE_MODULES variable, you can use mod_xyz or just xyz syntax. # You may also name an absolute path if you like. # # * NOTE ON MOD_SSL: before you can enable this module, you need a server certificate. # A test certificate can be created by entering # 'cd /usr/share/doc/packages/apache2; ./certificate.sh' as root. # Also, you need to set the ServerName inside the <VirtualHost _default_:443> # block to the fully qualified domain name (see /etc/HOSTNAME). # # * if your server certificate is protected by a passphrase you should increase the # APACHE_START_TIMEOUT (see above) # # * modules listed here will be ignored if they are not installed # # # EXAMPLES: # # fairly minimal # APACHE_MODULES="authz_host alias auth dir log_config mime setenvif" # # apache's default installation # APACHE_MODULES="authz_host actions alias asis auth autoindex cgi dir imap include log_config mime negotiation setenvif status userdir" # your settings APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5" ## Type: string ## Default: "" ## ServiceRestart: apache2 # # Additional server flags: # # Put here any server flags ("Defines") that you want to hand over to # httpd at start time, or other command line flags. # # Background: Any directives within an <IfDefine flag>...</IfDefine> # section are only processed if the flag is defined. # This allows to write configuration which is active only in a # special cases, like during server maintenance, or for testing # something temporarily. # # Notably, to enable SSL support, 'SSL' needs to be added here. # To enable the server-status, 'STATUS' needs to be added here. # # It does not matter if you write flag1, -D flag1 or -Dflag1. # Multiple flags can be given as "-D flag1 -D flag2" or simply "flag1 flag2". # # Specifying such flags here is equivalent to giving them on the commandline. # (e.g. via rcapache2 start -DReverseProxy) # # Example: # "SSL STATUS AWSTATS SVN_VIEWCVS no_subversion_today" # APACHE_SERVER_FLAGS="" ## Type: string ## Default: "" ## ServiceRestart: apache2 # # Which config file do you want to use? # (if not set, /etc/apache2/httpd.conf is used.) # It is unusual to need to use this setting. # APACHE_HTTPD_CONF="" ## Type: list(prefork,worker) ## Default: "" ## ServiceRestart: apache2 # # MPM (multi-processing module) to use. # # Needed to determine with which MPM apache will run, as well as # against which header files modules will be built. # # If not set, the system will simply pick one of the installed MPMs. # # The implementation of the logic is in /usr/share/apache2/find_mpm, # a script which can be used standalone as well if needed. # APACHE_MPM="" ## Type: string ## Default: "" ## ServiceReload: apache2 # # email address of the server administrator (ServerAdmin directive) # This address is added to the server's responses if APACHE_SERVERSIGNATURE # is set to "email". # # If empty ("") it defaults to webmaster@$FQHOSTNAME, where FQHOSTNAME is # taken from /etc/HOSTNAME. # # Note that ServerAdmin directives inside VirtualHost statements are not # changed, even not the one in the stock SSL virtual host block. # APACHE_SERVERADMIN="" ## Type: string ## Default: "" ## ServiceReload: apache2 # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If this is not set to valid DNS name for your host, server-generated # redirections will not work. See also the UseCanonicalName directive. # # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # APACHE_SERVERNAME="" ## Type: integer ## Default: 2 # # timeout during server startup (seconds) # after this time, the start script decides wether the httpd process started without error. # # Increase it, if you use mod_ssl and your certificate is passphrase protected! # APACHE_START_TIMEOUT="2" ## Type: list(on,off,email) ## Default: "on" ## ServiceReload: apache2 # # Configures the footer on server-generated documents # This correlates to the ServerSignature directive. # APACHE_SERVERSIGNATURE="on" ## Type: list(debug,info,notice,warn,error,crit,alert,emerg) ## Default: "warn" ## ServiceReload: apache2 # # LogLevel: Control the number of messages logged to the error_log. # APACHE_LOGLEVEL="debug" ## Type: string ## Default: "/var/log/apache2/access_log combined" ## ServiceRestart: apache2 # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a <VirtualHost> # container, they will be logged here. Contrarywise, if you *do* # define per-<VirtualHost> access logfiles, transactions will be # logged therein and *not* in this file. # # Simply set it to empty, if you configure it yourself somewhere else. # # Examples: # # If you would like to have agent and referer logfiles: # # setting it to "/var/log/apache2/referer_log referer, /var/log/apache2/agent_log agent" # corresponds to # CustomLog /var/log/apache2/referer_log referer # CustomLog /var/log/apache2/agent_log agent # # If you prefer a single logfile with access, agent, and referer information # (Combined Logfile Format): # # setting it to "/var/log/apache2/access_log combined" # corresponds to # CustomLog /var/log/apache2/access_log combined # APACHE_ACCESS_LOG="/var/log/apache2/access_log combined" ## Type: list(On,Off,DNS) ## Default: "Off" ## ServiceReload: apache2 # # UseCanonicalName: Determines how Apache constructs self-referencing # URLs and the SERVER_NAME and SERVER_PORT variables. # When set "Off", Apache will use the Hostname and Port supplied # by the client. When set "On", Apache will use the value of the # ServerName directive. # APACHE_USE_CANONICAL_NAME="off" ## Type: list(Major,Minor,Minimal,ProductOnly,OS,Full) ## Default: "OS" ## ServiceReload: apache2 # # How much information the server response header field contains about the server. # (installed modules, versions, etc.) # see http://httpd.apache.org/docs-2.2/mod/core.html#servertokens # APACHE_SERVERTOKENS="OS" ## Type: list(on,off) ## Default: "off" ## ServiceReload: apache2 # # If mod_status is used, include extended information about the server, like # CPU usage, in the status report. It is a server-wide setting, and it can cost # some performance! # APACHE_EXTENDED_STATUS="off" ## Type: list(on,off) ## Default: "off" ## ServiceRestart: apache2 # # Enable buffered logging # APACHE_BUFFERED_LOGS="off" ## Type: integer ## Default: 300 ## ServiceReload: apache2 # # Timeout: The number of seconds before receives and sends time out. # It is a server wide setting. # APACHE_TIMEOUT="300" Un saludo -- Octavio Ávalos --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
2007/7/24, J. OCTAVIO AVALOS:
El error que me daba era este:
Server localhost with UNIX Perl_Version 5.008008 Procedure igsuite last modified 26/04/2007 IG_Version 3.2.3 User guest - Guest User Date 2007-07-24 09:01 Description Can't create tavi-session-1185260474- 1h8t8nus27 file to register session on /srv/www/cgi-bin/log check directory permissions at IG.pm line 1049. at row 1049 - in IG::DTable To obtain more information please contact your System Administrator or if you want, try to send this message to staff@igsuite.org
Y él me contestó con la solución que indiqué en el mensaje anterior.
Hum...
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"
No lo veo cargado, debería estar aquí como "mod_perl" o "perl" y no está :-/ ¿seguro que lo tienes activado? Saludos, -- Camaleón --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
El 25/07/07, Camaleón
2007/7/24, J. OCTAVIO AVALOS:
El error que me daba era este:
Server localhost with UNIX Perl_Version 5.008008 Procedure igsuite last modified 26/04/2007 IG_Version 3.2.3 User guest - Guest User Date 2007-07-24 09:01 Description Can't create tavi-session-1185260474- 1h8t8nus27 file to register session on /srv/www/cgi-bin/log check directory permissions at IG.pm line 1049. at row 1049 - in IG::DTable To obtain more information please contact your System Administrator or if you want, try to send this message to staff@igsuite.org
Y él me contestó con la solución que indiqué en el mensaje anterior.
Hum...
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"
No lo veo cargado, debería estar aquí como "mod_perl" o "perl" y no está :-/ ¿seguro que lo tienes activado?
Saludos,
-- Camaleón ---------------------------------------------------------------------
Bueno, lo que tengo cargado con el yast es "mod_perl" y "perl", según leí en el manual de Apache para activar un servicio ¿tendría que hacer?: --disable-mod_perl pero en donde lo tengo que hacer en: /etc/apache2 ????? Precisamente esta era la cuestión que planteaba, porque mi duda recaía en confundir desactivar con desinstalar el "mod_perl". Aún así no lo tengo muy claro como tengo que desactivarlo. Un saludo -- Octavio Ávalos --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
El 25/07/07, J. OCTAVIO AVALOS escribió:
Bueno, lo que tengo cargado con el yast es "mod_perl" y "perl", según leí en el manual de Apache para activar un servicio ¿tendría que hacer?: --disable-mod_perl
Que lo tengas instalado no quiere decir que lo tengas activado en Apache :-)
pero en donde lo tengo que hacer en: /etc/apache2 ?????
Para que Apache "active" / use los módulos tienes que indicárselo en el fichero de configuración, en en este caso (si has instalado Apache de un rpm de SuSE) en /etc/sysconfig/apache2 en la sección de "APACHE_MODULES"
Precisamente esta era la cuestión que planteaba, porque mi duda recaía en confundir desactivar con desinstalar el "mod_perl". Aún así no lo tengo muy claro como tengo que desactivarlo.
Yo creo que no lo tienes activado, ahora bien, la pregunta sería ¿cómo saber qué módulos están cargados en Apache2? Si hay algún comando para que los enumere, lo desconozco :-/. Saludos, -- Camaleón --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
de un rpm de SuSE) en /etc/sysconfig/apache2 en la sección de "APACHE_MODULES"
Yo creo que no lo tienes activado, ahora bien, la pregunta sería ¿cómo saber qué módulos están cargados en Apache2? Si hay algún comando para que los enumere, lo desconozco :-/.
Es que no hace falta ningún comando. En la sección de módulos del fichero de configuración: Los que están comentados (#) no están cargados y los demás si. Los módulos que no estan en la lista es que no están instalados. Y si se hacen cambios hay que reiniciar el Apache. -- Salutacions - Saludos, Josep M. Queralt
El 25/07/07, Josep M. Queralt escribió:
Es que no hace falta ningún comando.
Ah...
En la sección de módulos del fichero de configuración: Los que están comentados (#) no están cargados y los demás si.
Ojo, que dice: * list of all modules shipped with the base distribution: Es decir, los módulos que se incluyen con la distribución "base" y mod_perl se instala "a parte", porque sino no se entiende que no aparezca en la lista de Octavio y sí lo tenga instalado ¿no?
Los módulos que no estan en la lista es que no están instalados.
Hum, tengo mis dudas :-/
Y si se hacen cambios hay que reiniciar el Apache.
Esto no lo dudo ;-) Saludos, -- Camaleón --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
Es decir, los módulos que se incluyen con la distribución "base" y mod_perl se instala "a parte", porque sino no se entiende que no aparezca en la lista de Octavio y sí lo tenga instalado ¿no?
Los módulos que no estan en la lista es que no están instalados.
Hum, tengo mis dudas :-/
Efectivamente tienes razón: los modulos CPAN (incluidos mod_perl y mod_perl2) hay que instalarlos y compilarlos aparte. Como yo soy de los que usa WebMin, siempre que he necesitado modulos CPAN los he bajado, compilado e instalado con él, así, que, (otro argumento en contra de WebMin) no tengo ni idea de donde los pone. Lo investigo ... Yo no uso "mod_perl" y los módulos CPAN que tengo instalados lo están en máquinas con CentOS. De todas maneras pongo un "path" de ejemplo: /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/Bundle/DBD/mysql.pm y otro: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Image/Magick.pm CONCLUSION, están como subdirectorio de "site_perl" dentro de la instalalación de las librerías del compilador de Perl. Haber, en openSuSe ..... pues si, deberían estar en el mismo "path" /usr/lib/perl5/site_perl/ El manual completo está en http://perl.apache.org De todas maneras creo recordar que precisamente "mod_perl" dispone de RPM. Quizá buscando en rpmfind .... -- Salutacions - Saludos, Josep M. Queralt
On 7/25/07, Camaleón <> wrote:
Yo creo que no lo tienes activado, ahora bien, la pregunta sería ¿cómo saber qué módulos están cargados en Apache2? Si hay algún comando para que los enumere, lo desconozco :-/.
Haylos.
rcapache full-server-status
full-server-status - dump a full status screen; requires lynx or w3m
and mod_status enabled
server-status - dump a short status screen; requires lynx or w3m
and mod_status enabled
Y también está esta directiva:
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
El 26/07/07, Carlos Robinson escribió:
Haylos.
Ondiá.
rcapache full-server-status
full-server-status - dump a full status screen; requires lynx or w3m and mod_status enabled server-status - dump a short status screen; requires lynx or w3m and mod_status enabled
Arggg, es un bucle :-). Para saber qué módulos están cargados se necesita cargar otro módulo (mod_status) y si se carga ese módulo ya se sabe cómo se cargan los módulos y no hace falta ese comando.
Y también está esta directiva:
# Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".example.com" to match your domain to enable. #
SetHandler server-info Order deny,allow Deny from all Allow from .example.com </Location>
Ídem, pero cargando "mod_info.c", es de locos 8-) Saludos, -- Camaleón --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org
participants (4)
-
Camaleón
-
Carlos Robinson
-
J. OCTAVIO AVALOS
-
Josep M. Queralt