Configuración · 4 min read · Dec 04, 2025
La Configuración Perfecta - Mandriva 2006 Edición Gratuita - Página 5
MySQL (4.1)
*urpmi MySQL MySQL-client libmysql14-devel
- /etc/init.d/mysqld start*
Ahora verifica que la red esté habilitada. Ejecuta
netstat -tap
Debería mostrar una línea como esta:
| tcp 0 0 *:mysql *:* LISTEN 6621/mysqld |
Si no lo hace, edita /etc/sysconfig/mysqld y elimina –skip-networking de la Variable MYSQLD_OPTIONS:
| # (oe) Elimina --skip-networking para habilitar el acceso a la red desde # clientes no locales. El acceso desde localhost seguirá funcionando. MYSQLD_OPTIONS="" # (oe) establece las variables de entorno TMPDIR y TMP TMPDIR="${datadir}/.tmp" TMP="${TMPDIR}" |
y reinicia tu servidor MySQL:
/etc/init.d/mysqld restart
Ejecuta
mysqladmin -u root password yourrootsqlpassword
mysqladmin -h server1.example.com -u root password yourrootsqlpassword
para establecer una contraseña para el usuario root (de lo contrario, ¡cualquiera puede acceder a tu base de datos MySQL!).
Postfix Con SMTP-AUTH Y TLS
urpmi cyrus-sasl libsasl2 libsasl2-devel libsasl2-plug-plain libsasl2-plug-anonymous libsasl2-plug-crammd5 libsasl2-plug-digestmd5 libsasl2-plug-gssapi libsasl2-plug-login postfix imap
postconf -e ‘smtpd_sasl_local_domain =’
postconf -e ‘smtpd_sasl_auth_enable = yes’
postconf -e ‘smtpd_sasl_security_options = noanonymous’
postconf -e ‘broken_sasl_auth_clients = yes’
postconf -e ‘smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination’
postconf -e ‘inet_interfaces = all’
postconf -e ‘mydomain = example.com’
postconf -e ‘myhostname = server1.$mydomain’
postconf -e ‘mydestination = /etc/postfix/local-host-names, localhost.example.com’
touch /etc/postfix/local-host-names
Edita /etc/postfix/sasl/smtpd.conf. Debería verse así:
| # Archivo de configuración de la biblioteca SASL para postfix # todos los parámetros están documentados en: # /usr/share/doc/cyrus-sasl-2.*/options.html # Los parámetros mech_list enumeran los mecanismos sasl a usar, # siendo el predeterminado todos los mecanismos encontrados. mech_list: plain login # Para autenticar usando el demonio saslauthd separado, (por ejemplo, para # usuarios del sistema o ldap). También ver /etc/sysconfig/saslauthd. pwcheck_method: saslauthd saslauthd_path: /var/lib/sasl2/mux # Para autenticar contra usuarios almacenados en sasldb. #pwcheck_method: auxprop #auxprop_plugin: sasldb #sasldb_path: /var/lib/sasl2/sasldb2 |
mkdir /etc/postfix/ssl
cd /etc/postfix/ssl/
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
chmod 600 smtpd.key
openssl req -new -key smtpd.key -out smtpd.csr
openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
openssl rsa -in smtpd.key -out smtpd.key.unencrypted
mv -f smtpd.key.unencrypted smtpd.key
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
postconf -e ‘smtpd_tls_auth_only = no’
postconf -e ‘smtp_use_tls = yes’
postconf -e ‘smtpd_use_tls = yes’
postconf -e ‘smtp_tls_note_starttls_offer = yes’
postconf -e ‘smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key’
postconf -e ‘smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt’
postconf -e ‘smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem’
postconf -e ‘smtpd_tls_loglevel = 1’
postconf -e ‘smtpd_tls_received_header = yes’
postconf -e ‘smtpd_tls_session_cache_timeout = 3600s’
postconf -e ‘tls_random_source = dev:/dev/urandom’
Ahora inicia Postfix, saslauthd, imap y pop3:
chkconfig imap on
chkconfig imaps on
chkconfig ipop3 on
chkconfig pop3s on
/etc/init.d/postfix restart
/etc/init.d/saslauthd restart
/etc/init.d/xinetd restart
Para ver si SMTP-AUTH y TLS funcionan correctamente, ejecuta el siguiente comando:
telnet localhost 25
Después de haber establecido la conexión con tu servidor de correo postfix, escribe
ehlo localhost
Si ves las líneas
250-STARTTLS
y
250-AUTH
todo está bien.

Escribe
quit
para volver a la shell del sistema.
Apache2 Con PHP5
urpmi apache2-mod_php libphp5_common5 php-bz2 php-calendar php-ctype php-curl php-date_time php-devel php-dio php-dom php-eaccelerator php-enchant php-esmtp php-event php-exif php-fam php-ffmpeg php-fileinfo php-filepro php-ftp php-gd php-gettext php-gmp php-iconv php-id3 php-idn php-imap php-imlib2 php-mailparse php-mbstring php-mcache php-mcrypt php-mhash php-ming php-mysql php-mysqli php-ncurses php-newt php-odbc php-oggvorbis php-pam_auth php-pcntl php-pcre php-pear-Net_IDNA php-posix php-pspell php-readline php-recode php-session php-shmop php-simplexml php-snmp php-soap php-sockets php-sqlite php-ssh2 php-sysvmsg php-sysvsem php-sysvshm php-tclink php-tcpwrap php-tidy php-xml php-xmlrpc php-zip php5-ini curl libcurl3-devel perl-libwww-perl ImageMagick (1 línea!)
Siempre que veas esto:
Missing signature ((no key found) OK)
¿Deseas continuar con la instalación? (y/N)
es seguro responder y.
Ahora debemos deshabilitar PHP globalmente porque queremos instalar ISPConfig más tarde. En ISPConfig puedes habilitar/deshabilitar PHP en una base por sitio. Si no deshabilitas PHP globalmente ahora, PHP siempre estará habilitado, sin importar lo que especifiques en ISPconfig. ¡Si no deseas instalar ISPConfig, entonces has terminado con la instalación y configuración de Apache/PHP5 ahora!
Edita /etc/httpd/modules.d/70_mod_php.conf y comenta las líneas AddType:
| |
Edita /etc/httpd/conf/mime.types y comenta las siguientes líneas:
| #application/x-perl perl pl #application/x-php php php3 php4 |
Edita /etc/httpd/conf/httpd.conf y agrega la siguiente línea a la sección LoadModule:
| LoadModule php5_module extramodules/mod_php5.so |
(Aunque esta línea ya está en /etc/httpd/modules.d/70_mod_php.conf, esto es muy importante porque de lo contrario el comando httpd -t informará errores en lugar de Syntax OK cuando los hosts virtuales creados por ISPConfig contengan líneas como php_admin_flag safe_mode On o similares!)
( Nota: Si vas a instalar ISPConfig 2.1.1 o anterior, también podrías querer poner
| |
al final de /etc/httpd/conf/httpd.conf ahora aunque no es necesario.)
Reinicia Apache:
/etc/init.d/httpd restart
Recibe nuevas publicaciones en tu bandeja de entrada.
No spam. Cancela la suscripción en cualquier momento.