- Que opciones activar/ desactivar para obtener un mejor rendimiento/desempeño?
Como primera medida , veo q el DMA del disco no esta activo, asi q habra q activarlo.
Que otros afinamientos hay que darle a un server ??
Salu2
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png)
| |||
Afinando un Server Mi consulta es, teniendo un server recien entregado por un DC, y con la instalacion y configuracion standard que ellos brindan (que en mi caso es CentOS 4 y Cpanel) , que afinamiento se deberia darle al server para obtener de el un mejor rendimiento/desempeño. - Que opciones activar/ desactivar para obtener un mejor rendimiento/desempeño? Como primera medida , veo q el DMA del disco no esta activo, asi q habra q activarlo. Que otros afinamientos hay que darle a un server ?? Salu2 ![]() |
| ||||
Re: Afinando un Server Debes aprender a configurar debidamente cPanel, Apache, MySQL, PHP en primera instancia, luego puedes optimizar también el archivo sysctl del kernel y otros aspectos del sistema. Hay mucha información desde los foros de cPanel, también en WebHostingTalk. Saludos,
__________________ Infranetworking.com - Expertos en Hosting Multidominio, Cloud Hosting, Servidores Dedicados y Administración de Servidores Linux |
| |||
Re: Afinando un Server Creo que podrias contratar a alguien que al mismo tiempo realice la configuracion y te vaya explicando algunas cosas, estoy seguro que en este mismo foro lo encontraras
__________________ Miguel Roca InterServicios Informáticos Ltda. |
| ||||
Re: Afinando un Server en este Enlace hay algunos How-to básicos para la administración de tu server pero lo más recomendable sería como dicen todos que contrates a alguien que te lo administre.
__________________ I-Media Network :: Hosting Perú :: Hosting, Resellers y Streaming. Realmente Económicos |
| ||||
Re: Afinando un Server Estoy de acuerdo en que contrates a alguien que haga el setup de las configuraciones y seguridad del server si necesitas poner un servidor en producción cuanto antes para clientes o inversiones. Pero si quieres solo aprender a administrar un servidor, y tienes uno sin uso, estudia, investiga y experimenta todo tu mismo. No contrates a nadie, desperdicias tu dinero, cualquier SysAdmin independiente o una empresa que haga este tipo de trabajos nunca te dirá todo lo que hicieron detalladamente para que tu lo aprendas. Saludos,
__________________ Infranetworking.com - Expertos en Hosting Multidominio, Cloud Hosting, Servidores Dedicados y Administración de Servidores Linux |
| |||
Re: Afinando un Server A ver un resumen.... asegura tmp instalate un firewall, como apf por ej instalate programas de aviso y bloqueo (de procesos, de logins) como bfd por ej. configurate bien la seguridad desde el mismo whm, bloqueando los programas,poniendo las protecciones de php,etc. desactiva los programas y servicios que no uses. instalate el pro de cpanel, con el antivirus y el modsecurity al menos. y como bien dijeron alli, buscando en google encontraras varios lugares donde te dan un how to o paso a paso de "securing your cpanel", hay varios en varios lugares (en ingles mayomente), y con eso tiene mas o menos la configuracion inicial. Asi mismo... luego de eso tienes que monitorear tu server siempre, viendo que no se envie spam que no suban gusanos o no quieran explotar los sitios, etc.actualizarlo siempre, revisar logs periodicamente, etc. Saludos. |
| ||||
Re: Afinando un Server Aqui algunos consejos, pero en ingles (tips! je): parte 1 IMPORTANTE - SI UD NO DOMINA LA TEMATICA O NO ESTA SEGURO EXACTAMENTE DE QUE ESTA MODIFICANDO EN CADA PASO DE ESTA GUIA, POR FAVOR NO LO HAGA, O CONSULTE CON EL ADMINISTRADOR AMIGO DE SU BARRIO Cita: How-To: The Complete Server Optimization Guide (2007) Greetings, This guide is composed of material found from various other web hosting, control panel, and script forums related to optimization, hardening and securing. This is also cPanel oriented however can be used for other servers running different control panels just to name a few Plesk, DirectAdmin, Webmin. Now before we begin I cannot stress enough that you NEED to read my post thoroughly taking every last word into detail as you are applying these methods on your own risk as a VPS is not all sunshine and lollipops. If you don’t know what you are doing, it is strongly suggested to do a bit of research before attempting it, these methods have been tested on several different servers and I personally have conducted benchmarking with these methods on several VPSes right here at PowerVPS. And of course you will learn to love the "cp" command (copy) as I'm going to be mentioning it quite a bit and again I cannot stress enough that you BACK UP EVERYTHING YOU CHANGE don't be one of those people that say "Oh, that will never happen to me!" don't be fooled.. Karma will get you one day =) Now let's start with the basics: WHM/cPanel Modifications: First off, jump into your serveru sing a SECURE connection (https://55.55.55.55:2087) of course changing the 55.55.55.55 part to your servers IP - this is so the data sent across your internet connection to your server is encrypted and undecodable. Navigate your browser to Server Configuration -> Tweak Settings then making sure the following items are ticked (double check they are if they are not ticked, TICK THEM) unless I specify otherwise (they will be color coded for easy reading - Green = GOOD and Red = BAD): ----------- (Below is an example on how I will layout my guide) Under Domains: (TICK) When adding a new domain, automatically create A entries for the registered nameservers if they would be contained in the zone. (TICK) Prevent users from parking/adding on common internet domains. (ie hotmail.com, aol.com) (TICK) When adding a new domain, if the domain is already registered, ignore the configured nameservers, and set the NS line to the authoritative (registered) ones. And now make sure the following is NOT ticked: (UNTICK) Allow users to Park/Addon Domains on top of domains owned by other users. (probably a bad idea) (UNTICK) Allow Creation of Parked/Addon Domains that resolve to other servers (ie domain transfers) [This can be a major security problem. If you must have it enabled, be sure to not allow users to park common internet domains.] (UNTICK) Allow Creation of Parked/Addon Domains that are not registered Under Mail: (TICK) Default catch-all/default address behavior for new accounts. blackhole is usually the best choice if you are getting mail attacks. (TICK) Set this to "fail" for general use and as stated above "blackhole" if you're getting mail fooded (over 1000 emails in the mail queue) (TICK) Silently Discard all FormMail-clone requests with a bcc: header in the subject line (TICK) Track the origin of messages sent though the mail server by adding the X-Source headers (exim 4.34+ required) Here's a tricky setting, "The maximum each domain can send out per hour (0 is unlimited):" set this number to something you think is reasonable my personal preference is 60.. basically this setting will limit each account (not just the domain) on how many emails it can send out per hour, basically if you have a spammer on your machine and you can't find him.. set this to 60 and you will definitely stop him in his tracks. Now this next one is also tricky ""Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)"" tick this if you want to disable any account on your machine from sending mail as "Nobody" it's really up to you in the end, if you're very strict (like me) you will enable this and force all your accounts to use the local SMTP server (which is probably better as when you receive emails from forums and stuff they don't come as "[email protected]" they come as "[email protected]" which in my sense looks more professional. (TICK) Include a list of Pop before SMTP senders in the X-PopBeforeSMTP header when relaying mail. (exim 4.34-30+ required) And the same thing applies with this next one " The number of times users are allowed to check their mail using pop3 per hour. Zero is unlimited. (cppop only):" basically set this limit to again something around 60 or so if you're getting mail attacked.. it will again stop the attack right in it's tracks. (TICK) Attempt to prevent pop3 connection floods Now this setting "BoxTrapper Spam Trap" is strongly recommended to disable as having boxtrapper enabled can very easily lead to your server being listed in common RBLs and usually has the effect of increasing the overall spam load, not reducing it. Under MySQL: If you aren't required to use MySQL5, don't. Use MySQL 4.1 with the option " Use old style (4.0) passwords with mySQL 4.1+ (required if you have problems with php apps authenticating)" nearly always enabled it will stop certain applications using older methods of authenticating with MySQL. Under System: (TICK) Always redirect users to the ssl/tls ports when visiting /cpanel, /webmail, etc. (TICK) Use jailshell as the default shell for all new accounts and modified accounts Under cPAddons: (TICK) Prevent installation of addon scripts not provided by cPanel (TICK) Prevent installation of cPanel addon scripts that have be altered (Turning this off may be useful when testing custom addons.) (TICK) Use native SSL support if possible, negating need for Stunnel (UNTICK) Allow cPanel users to reset their password via email (This option has been vulnerable in the past, so you should keep it disabled) ========================================= Security ========================================= Security -> Fix Insecure Permissions (Scripts) ----------- Fix Insecure Permissions (Scripts) (Run this at least once a month to make sure there are no inscure permissions on scripts running on your server.) Security -> Manage Wheel Group Users ----------- Remove all users except for root and your main account from the wheel group. unless you directly need another account there for SUing purposes, never ever have apache or any other system service listed in the wheel group. Security -> Modify Apache Memory Usage ----------- You should set a value RLimitCPU to prevent runaway scripts from consuming server resources - DOS exploits can typically do this. Run this at least once a week to reassure the limit is up to date Security -> Quick Security Scan ----------- You'll only need to run this once, but make sure you do. (Running this will ensure that bad services are not running on your server) Security -> Shell Fork Bomb Protection ----------- Enable Shell Fork Bomb/Memory Protection. (You should enable shell resource limits to prevent shell users from consuming server resources - DOS exploits typically do this.) Security -> Tweak Security ----------- Enable PHP's open_basedir Tweak. (To prevent PHP scripts from straying outside their cPanel account, and possibly executing or modifying other accounts files) Enable Apache's mod_userdir Tweak. (To prevents users from stealing bandwidth or hackers hiding access/accounts to your servers) Disable Compilers. (This tweak will disable the system's c and c++ compilers for unprivileged accounts on your VPS. Many canned exploits require working compilersc on the system to operate. You can also choose to allow some users to use the compilers while they remain disabled by default.) ========================================= Service Configuration ========================================= Service Configuration -> Enable/Disable SuExec ----------- Enable SuExec. (To reduce the risk of hackers accessing all sites on the server from a compromised CGI web script, you should keep this enabled.) (UNTICK)Always set the "Sender:" header when the sender is changed from the actual sender. Unchecking this will stop "On behalf of" data in Microsoft(R) Outlook, but may limit your ability to track abuse of the mail system. (TICK) Verify the existence of email senders. (TICK) Use callouts to verify the existence of email senders. (UP2U) Discard email for users who have exceeded their quota rather than keeping it in the queue. (This again is up to you really, if you don't wish to have accounts that are suspended due to exceeding their quota loose all their new mail then leave this unticked) Now jump into the "Advanced Editor" and in the first white box paste the following; Quote: log_selector = +all smtp_load_reserve = 4 queue_only_load = 2 deliver_queue_load_max = 5 The above settings will allow exim to use extended logging for all accounts on the server, and the functions with the numbers tell exim not to use all the resources on your server if you're processing a lot of mail all at the same time. Service Configuration -> FTP Configuration ----------- Disable Anonymous FTP access (Used as an attack vector by hackers and should be disabled unless actively used by your accounts) Última edición por wiz; 30/05/2007 a las 19:23 |
| ||||
Re: Afinando un Server Sería excelente que pusieras la fuente, aunque si no me equivoco, pertenece a este post, no? Creo que le servirá a muchas personas este aporte, pero si bien estas guias y how-tos con títulos de "como securizar/optimizar tu servidor al 100%" pueden ser útiles, NO las recomiendo para usuarios inexpertos y que no tienen conocimientos suficientes sobre administración de sistemas y que hace cada cambio. Se mencionan muchos cambios en diferentes áreas del sistema, que no siempre serán positivos para todos los servidores. Saludos,
__________________ Infranetworking.com - Expertos en Hosting Multidominio, Cloud Hosting, Servidores Dedicados y Administración de Servidores Linux |
| ||||
Re: Afinando un Server Cita: Exactamente amigo esa es la fuente, no la quice citar por miedo a que paresca que hago publicidad, ademas de que aun no puedo poner enlaces pues. Los moderadores me tienen aterrorizado ![]() bien por tu aclaracion, aunque creo que un inexperto sabe hasta donde se anima y hasta donde no :) Mientras mas especializas una configuracion menos sirve para usos generales. Hay ciertos parametros que para un sitio va a ser una mejora y para otro puede que no tanto. Se recomienda un minimo de experiencia, no es para hacer TODOS los puntos. Muchas veces quienes tienen problemas de exceso de uso de memoria por ejempo, simplemente optimizando un poco mysql y spammassasin se logra milagros ;) |
| ||||
Re: Afinando un Server Ya me parecía que pertenecía a esos foros ![]() Si, es cierto, cada uno marca sus límites pero igual no están mal las advertencias, igual una persona inexperta que no sepa inglés, con esta guía, creo que no debería ni empezar. Saludos,
__________________ Infranetworking.com - Expertos en Hosting Multidominio, Cloud Hosting, Servidores Dedicados y Administración de Servidores Linux |
| ||||
Re: Afinando un Server Excelente, jajajaja "consulte con el administrador amigo de su barrio" ![]() Saludos,
__________________ Infranetworking.com - Expertos en Hosting Multidominio, Cloud Hosting, Servidores Dedicados y Administración de Servidores Linux |
| |||
Re: Afinando un Server Wiz, concuerdo que para pegar un texto, hubieras dado el link de donde esta esa informacion y listo. Por supuesto que MUCHOS aqui, te agradecerán si lo traduces, y ahi si merecería estar aqui posteado, ya que muchos de los que participan no entienden tanto el ingles. Saludos! |
| |||
Re: Afinando un Server Aqui envio un par de link para Afinar en Seguridad a PHP http://aymanh.com/checklist-for-secu...-configuration http://sentidoweb.com/2006/10/06/con...rma-segura.php Salu2 |
| ||||
Re: Afinando un Server Buenos tips, pero no hay que olvidar que en ambientes compartidos, por ejemplo register_globals en off te puede traer muchos dolores de cabeza, si bien es una variable peligrosa y conviene dejarla desactivada, muchos de tus clientes tendrán que reprogramar los scripts personalizados, o dejar de usar aplicaciones comerciales por esto, mismo caso con muchas funciones a deshabilitar desde disable_functions, hay que buscar un balance entre usabilidad y seguridad ![]() Saludos,
__________________ Infranetworking.com - Expertos en Hosting Multidominio, Cloud Hosting, Servidores Dedicados y Administración de Servidores Linux |
| |||
Re: Afinando un Server Register_globals considero que mejor tenerlo en off y después que cada usuario lo active en su .htaccess si lo necesita... No te olvides de cerrar las DNS para evitar ataques DDos. http://www.forosdelweb.com/f92/tutorial-como-cerrar-servidor-dns-380556/ Un saludo!!
__________________ Directorio Web --> Posicionamiento SEO en Imágenes Proxy Anonimo --> Oculta tus datos al navegar |