====== ISPConfig v1 ====== =====  Descripción  ===== Esta vaina es completamente autocontenida !!! .. ISPConfig es una herramienta que maneja todo: mail, http, MySQL - MariaDB, etc. ===== Prerequistos ===== Instalación basica de un sistema linux y algunos de los servicios que deben\\ quedar instalados como * Apache Webserver version 1.3.12 or later / 2.0.40 or later * Sendmail or Postfix * Procmail * Quota Package * ProFTP as standalone version or vsftpd as inetd/xinetd/standalone version * PHP 4.0.5 or newer as Apache module * MySQL - MariaDB data base\\ a POP3/IMAP daemon that supports either the traditional Unix-Mailbox format (e.g.\\ gnu-pop3d, qpopper, ipop3d, popa3d or vm-pop3d) or the Maildir format (e.g.\\ Courier-Imap, Dovecot) * OpenSSL and mod_ssl for the creation of SSL virtual hosts * BIND8 / BIND9 * iptables or ipchains * gcc and cpp, the c and c++ compilers Mire las instalaciones previas necesarias de acuerdo a la distribución * CentOS 5.2: http://www.howtoforge.com/perfect-server-centos-5.2 -- * OpenSuSE 11: http://www.howtoforge.com/perfect-server-opensuse11 -- * Ubuntu 8.04: http://www.howtoforge.com/perfect-server-ubuntu8.04-lts --  -- ===== Procedimiento  ===== ===== A. Instalación básica ===== Siga la documentación estándar para la instalación básica http:%%//%%www.ispconfig.org/manual_installation.htm -- Pero en esencia es, baje, descomprima, corra el setup  y siga las intrucciones %%**%% OJO asegurese que las dependencias esten montadas. Si no .. se morira el proceso %%**%% No encripte las llaves, si no, pedirá contraseñas cada vez que arranque %%**%% El usuario de la base de datos es root .. si no no funciona bien ===== B. Configuración ===== Ingrese en la interfaz web y empiece a configurar el sistema. Primero debe configurar el server === 1. Creacion de Reseller ===  Si no tiene revendedores no es necesarios, se pueden pegar de simplemente admin === 2. Creacion de Cliente === Antes de crear un sitio es necesario tener clientes === 3. Creacion de sitio === Aqui si inicio el proceso de creacion de sitios y cuentas de correo ===== Problemas ===== ==== 1. El instalador no reconce mi version ==== Macheteelo cambiando el /etc/redhat-release o algo parecido para uno que si ==== 2. No hay Maildir en los usuarios ====  Toca crearselos (creo) aunque apenas les llegue un correo lo deben tener.\\   ==== 3. Horde adicional a ISPConfig (http:%%//%%www.howtoforge.com/forums/archive/index.php/t-3748.html ) ==== -   17th April 2006, 07:08 Although this post seems long: Read it - it's (almost) just copy and paste in 2 positions. No big changes. Don't be afraid :)\\ \\ If you setup Horde IMP as webmailer, you might want to have the sender mail address and the sender name correctly be set.\\ \\ That's not that easy because you need (non-existing) hook functions retrieving the data. But as I wrote such functions for me, you don't need to do this again ;)\\ \\ First locate the horde config files.\\ In horde3/config/prefs.php change the following:\\ \\ $_prefs['fullname'] = array(\\ 'value' => '',\\ 'locked' => false,\\ 'shared' => true,\\ 'type' => 'text',\\ 'hook' => true,\\ 'desc' => _("Your full name:")\\ );\\ \\ $_prefs['from_addr'] = array(\\ 'value' => '',\\ 'locked' => true,\\ 'shared' => true,\\ 'type' => 'text',\\ 'hook' => true,\\ 'desc' => _("Your From: address:")\\ );\\ \\ \\ Especially 'hook' has to be true. I suggest setting 'locked' of 'from_addr' to true if you don't want users to be able to modify their from-address.\\ \\ Then you have to add the following to your horde3/config/hooks.php:\\ \\ if (!function_exists('_prefs_hook_from_addr')) {\\ function _prefs_hook_from_addr($user=null) {\\ $dsn = 'MySQL - MariaDB:%%//%%sqluser:sqlpass@localhost/db_ispconfig';\\ \\ if (is_null($user)) {\\ $user = Auth::getAuth();\\ }\\ \\ $db =& DB::connect($dsn, true);\\ if (PEAR::isError($db)) {\\ return $user;\\ }\\ \\ $query = 'SELECT user_email,domain_domain FROM (isp_isp_user INNER JOIN isp_dep ON (isp_isp_user.doc_id=child_doc_id AND isp_isp_user.doctype_id=child_doctype_id))';\\ $query .= ' INNER JOIN isp_isp_domain ON (parent_doc_id=isp_isp_domain.doc_id AND parent_doctype_id=isp_isp_domain.doctype_id) WHERE user_username=' . $db->quote($user);\\ $result =& $db->query($query);\\ \\ if ($result->fetchInto($row, DB_FETCHMODE_ASSOC)) {\\ $return = $row['user_email'] . "@" . $row['domain_domain'];\\ } else {\\ $return = $query;\\ }\\ \\ $db->disconnect();\\ \\ return $return;\\ }\\ }\\ \\ if (!function_exists('_prefs_hook_fullname')) {\\ function _prefs_hook_fullname($user=null) {\\ $dsn = 'MySQL - MariaDB:%%//%%sqluser:sqlpass@localhost/db_ispconfig';\\ \\ if (is_null($user)) {\\ $user = Auth::getAuth();\\ }\\ \\ $db =& DB::connect($dsn, true);\\ if (PEAR::isError($db)) {\\ return $user;\\ }\\ \\ $query = 'SELECT 10_consejos_para_la_resolucion_de_problemas.html acta_de_constitucion_interna_del_proyecto.html active_directory.html administrar_servidores_con_ipmi.html admin_rpms_con_yum.html albasoftware_libre_de_gestion_educativa.html alta_disponibilidad_de_conexion_a_internet.html ansible_administracion_centralizada_de_servidores.html anti_virusanti_spam_y_hardening_de_correo2024.html anti_virusanti_spam_y_hardening_de_correo.html apache2_mod_security.html apacheservidor_de_www.html aplicativos_usando_ldap.html autoconf.html aws_amazon_ec2.html aws_amazon_lambda.html bacula_backup2024.html bacula_backup.html bandwidthd.html bind_dns.html bonding.html cacti.html cambio_contrasena_ldap_ad_por_web.html cambios_recientes.html caracteres_octal_hexa_unicode_html.html centos_sobre_hyperv.html cfengine.html chumne_administrador_de_licencias.html ciclo_de_pruebas_orfeo.html cluster_con_haproxy.html cluster_ldap.html colaborador_del_mes.html comision_de_proyectos_obsoleto.html como_desplegar_remoto_con_un_tunel_ssh.html como_hacer_manual_de_funciones.html como_instalar_spoon.html como_limpiar_cache_dns.html como_publicar_docs.html como_reportar_spam.html como_se_implementa_orfeo_sgd.html compensatorios_obsoleto.html condiciones_generales_de_contrato_de_soporte_v14.html configuracion_de_tomcat_como_modulo_de_apache.html configuracion_de_x_lite_cliente_sip.html configuracion_pidgin.html configuracion_planta_telefonica_voip.html configurar_redes.html consola_serial.html consul_open_participation_ruby.html controlador_de_dominio_secundario_samba4.html convertir_pdf_a_a_pdf_plano.html copiar_disco_por_la_red.html cpanel.html crack_de_wep_con_aircrack_ng.html creacion_servidor_codema.html creacion_usuario_postgres_solo_para_consultas.html crear_instalador_de_windows_facil_con_nsis.html crear_instancias_de_orfeong.html crear_paquetes_deb_y_rpm.html crear_repositorios_de_paquetes_deb_y_rpm.html cuestionario_de_severidad.html cups.html cygwn.html dd_wrt.html declaracion_de_trabajo_sow.html deploy_instancia_de_orfeo_express_5x_en_amazon.html deploy_instancia_de_orfeo_express_6x_en_amazon.html descargar_pagina_web_recursivo.html deshabilite_ipv6.html dhcp_multiples_vlans.html dhcp_server.html dhcp_y_dns_dinamico.html directrices_de_manejo_de_tiquetes_en_mesa_de_ayuda_glpi.html docker.html documentacion_de_codigo.html documentos_de_implementacion_de_orfeo_5x.html documentos_estandar_control_proyectos_desarrollo.html dotproject.html drbd.html drp_plan_de_recuperacion_de_desastres.html dsl_personalizacion.html egroupware_ex_phpgw.html ejabberd.html elastix.html enigmail.html enlightenment.html entidad_de_certificacion_a_mano.html entidad_de_certificacion.html entidad_de_certificacion_openca.html envio_y_recepcion_de_fax_en_asterisk.html errores_modelos.html esquema_backup_ikatta.html estandar_bitacora.html estandar_comunicaciones_por_correo_electronico.html estandar_de_archivos_y_directorios.html estandar_de_interfaz_para_proyectos_de_desarrollo.html estandar_de_manejo_de_cronograma.html estandar_de_revision_de_documentos.html estandar_de_soporte_y_mantenimiento_de_skinatech.html estandares_de_comunicacion_de_soporte.html estandar_estacion_de_trabajo_gnu_linux.html estandar_estacion_de_trabajo_ms_windows.html estandar_firma_skina.html estandar_para_interfaz_de_proyectos_de_desarrollo.html estandar_para_la_creacion_de_bases_de_dato.html example_howto.html exim_mta.html extraccion_de_texto_de_documentos.html fail2ban.html falla_laboral.html fax_server.html fink.html firewalld.html firewall_skina_howto.html flujo_de_trabajo_de_proyecto.html flujo_de_trabajo_de_proyecto_trello.html formatos_de_documentos_estandares_de_skinatech.html freenas.html freenx.html freetds.html ftpproxy.html generar_diccionarios_de_datos_en_workbench.html getfacl_y_setfacl.html getmenu2.html gforge.html git_flow.html git.html gitlab.html glassfish.html glpi10.html glpi95.html gnokii.html gnupg_gpg.html google_cloud_platform.html graylog_consolidador_de_bitacoras.html grub.html hacer_modelo_y_o_backup.html hardening_de_linux.html hearbeat_cluster.html hipergate.html hispaniola_firewall_ikatta.html horario_de_trabajo.html how_to_enviar_html_imagenes_con_php5.html howto.html howto_mon.html howto_php_nuke.html huawei_e220.html ibm_aix_snmp_setup_for_nagios.html ibm_db2.html ids_logchecklogwatchtripwireaideetc.html ilo2_e_ilo3.html implementacion_de_oauth2_google_en_orfeo_ng.html implementacion_de_oauth2_microsoft_en_orfeo_ng.html implementacion_glpi.html indicadores_de_gestion.html informes_semanales.html informix_apache_php.html infraestructura_de_operacion.html instalacion_asterisk_en_centos_53.html instalacion_asterisk_en_.html instalacion_de_modelo_de_servidor_con_minilinux.html instalacion_de_modelo_de_servidor.html instalacion_de_pqrs_en_orfeo_sgd.html instalacion_ldap_smb_34_en_debian_lenny.html instalacion_minima_appliance.html instalacion_mi­nima.html instalacion_r_server_&_r_shiny.html instalacion_r_server_&_r_shiny_server.html instalacion_splunk.html instalacion_y_configuracion_apachephp_con_db2_y_soporte_con_odbc.html instalacion_y_configuracion_de_sphinx_para_orfeo.html instalacion_y_configuracion_gatekeeper_h323.html instalacion_y_configuracion_lotus_domino.html instalacion_zimbra.html instalar_cancelador_de_eco_hpec_en_asterisk.html instructivo_de_demos_de_skinatech.html instructivo_formato_de_diagnostico.html ipcop_firewall.html ipsec.html ipsec_zeroshell.html iptables.html iscsi.html ispconfig_v1.html FROM isp_isp_user WHERE user_username=' . $db->quote($user);\\ $result =& $db->query($query);\\ \\ if ($result->fetchInto($row, DB_FETCHMODE_ASSOC)) {\\ $return = $row['user_name'];\\ } else {\\ $return = $user;\\ }\\ \\ $db->disconnect();\\ \\ return $return;\\ }\\ }\\ \\ Make sure you replace sqluser by your sql user with sufficient rights to query the ispconfig database and replace sqlpassword by its password. Maybe you also want to replace localhost by the correct sql server and db_ispconfig by the correct sql database. Please note that you have these changes TWO times in the code above.\\ \\ Done ;) ---- Cirox 3rd May 2006, 00:07 Hi,\\ \\ thx for your hints.\\ \\ greetings cirox ---- SupuS 15th July 2006, 13:26 Hi\\ \\ I have MySQL - MariaDB 5 and horde 3.1.2 and your script doesn't work for me as it should .. sql query:\\ \\ $query = 'SELECT user_email,domain_domain FROM (isp_isp_user INNER JOIN isp_dep ON (isp_isp_user.doc_id=child_doc_id AND isp_isp_user.doctype_id=child_doctype_id))';\\ $query .= ' INNER JOIN isp_isp_domain ON (parent_doc_id=isp_isp_domain.doc_id AND parent_doctype_id=isp_isp_domain.doctype_id) WHERE user_username=' . $db->quote($user);\\ $result =& $db->query($query);\\ \\ returns 0 rows so if I want to send mail I see this query instead of email adress. :eek:\\ \\ I'm not so good in sql lang and I am not able to find the thing what can resolve this problem. Any hints please?\\ \\ Little note: in new version of horde I had to add\\ \\ require_once 'DB.php';\\ \\ before\\ \\ $db =& DB::connect($dsn, true); ----     ==== 3. El Vhosts jode por el safemode y demas para correr horde ==== en el archivo /usr/local/ispconfig/scripts/lib/config.lib.php .. esta el general de los vhosts. Busque safe_mode\\ y metale mano al codigo para lograr lo que quiere. Ojo que tambien quede comentado el open_basedir o\\ si no horde tambien Jode. ==== 4. El apache normal ya no reconoce PHP ==== El instalador de ispconfig quita el soporte de php para apache, pa que no se lo salten. En /etc/httpd/conf.d/php.conf\\ \\ ##ISPConfig INSTALL## AddHandler php5-script .php .php3 .phtml\\ ##ISPConfig INSTALL## AddType text/html .php .php3 .phtml ====   ==== ==== 3. Si el instale_mrtg.sh no le funciona ==== ====   ==== ====   ==== ====   ==== ===== Referencias ===== -   FIN ============================================================== 15-Marzo-2006 J.E.Gomez v1.0 Primera version         ---- __**Advertencia**__ Este documento es privado y es de uso exclusivo de sus autores y de SKINA TECH. Cualquier uso sin una autorización escrita es contra la ley de derechos de autor y de propiedad intelectual, y será motivo de una acción legal. ---- =====   =====