How to install and setup Apache, MySQL and PHP in Windows Cómo instalar y configurar Apache, MySQL y PHP en Windows

by Ross McKillop on August 25, 2008 McKillop de Ross el 25 de agosto, 2008

Correo electrónicoWeb Design & DevVentanas

This tutorial will walk you every single step of the way through installing and setting up Este tutorial le guiará a cada paso del camino a través de la instalación y la creación de WAMP Wamp (Windows, Apache, MySQL & PHP). (Windows, Apache, MySQL y PHP). With WAMP installed, you can run a web server (and things like WordPress, MediaWiki, and Con Wamp instalado, puede ejecutar un servidor web (y cosas como WordPress, MediaWiki, y Jinzora ) on your Windows PC. ) En su PC con Windows.

Installing WAMP Instalación de Wamp
Configure WAMP & MySQL Configurar MySQL & Wamp
Install and setup Fake Sendmail Instalación y configuración de Sendmail Fake


Installing WAMP Instalación de Wamp

  1. To get started, head over to the Para empezar, la cabeza a lo largo de la WAMP download page Wamp página de descarga and save the .exe to your desktop. y guardar el archivo. exe a tu escritorio. Once the download has completed, run the installation file. Una vez finalizada la descarga se ha completado, ejecute el archivo de instalación. The first message you’ll see is a warning - if you have an older version of WAMP (1.x) installed, make sure to uninstall it first. El primer mensaje verás es una advertencia - si usted tiene una versión de Wamp (1.x) instalado, asegúrese de desinstalar primero. Otherwise click Yes to continue. De lo contrario haga clic en para continuar.

  2. click to enlarge click para ampliar

  3. Click Next on the initial setup screen. Haga clic en Siguiente en la pantalla de configuración inicial.

  4. click to enlarge click para ampliar

  5. Review the License Agreement , select I accept the agreement and then click the Next button. Revisar el Acuerdo de licencia, seleccione Acepto el contrato y, a continuación, haga clic en el botón Siguiente.

  6. click to enlarge click para ampliar

  7. It’sa good idea to leave the default installation directory alone (C:\wamp\) - but if you want to change it, now’s the time. Es una buena idea dejar el directorio de instalación por omisión solo (C: \ Wamp \) - pero si quiere cambiarlo, ahora es el momento. Click Next to continue. Haga clic en Siguiente para continuar.

  8. click to enlarge click para ampliar

  9. Decide if you want to have WAMP Quick Launch and/or Desktop icons, and click Next . Decida si quiere tener Wamp de inicio rápido y / o los iconos de escritorio, y haga clic en Siguiente.

  10. click to enlarge click para ampliar

  11. Finally, click Install . Por último, haga clic en Instalar.

  12. click to enlarge click para ampliar

  13. The installation doesn’t take too long. La instalación no tiene demasiado tiempo.

  14. click to enlarge click para ampliar

  15. Once it has completed, the setup phrase will begin. Una vez que ha terminado, la configuración se iniciará frase. If you have Firefox set as your default browser, WAMP will ask you if that’s the browser you want to use. Si ha establecido Firefox como navegador predeterminado, Wamp le preguntará si ese es el navegador que usted desea utilizar. Click Yes . Haga clic en Sí.

  16. click to enlarge click para ampliar

  17. At this point, if you have a software Firewall installed, it will probably pop up and warn you that Apache wants to accept incoming connections. En este punto, si usted tiene un firewall de software instalado, es probable pop-up y le avise que Apache quiere aceptar conexiones entrantes. Depending on your specific Firewall the “button” to click may be different, but it will be something similar to Unblock . Dependiendo de su específica Firewall el "botón" de hacer clic puede ser diferente, pero será algo similar a Desbloquear. Do not click “Keep Blocking”. No haga clic en "Mantener Bloqueo".

  18. click to enlarge click para ampliar

  19. Leave the SMTP: server set as localhost (more on this later) but do change the email address to yours. Deje el SMTP: servidor establecido como localhost (más sobre esto más adelante), sino hacer cambiar la dirección de correo electrónico a los suyos. Click Next . Haga clic en Siguiente.

  20. click to enlarge click para ampliar

  21. That’s it - you’re done! Eso es todo - ya está! Make sure that there’sa check in the Launch WampServer 2 now box, and click Finish . Asegúrese de que hay un cheque en el lanzamiento WampServer ahora la casilla 2, y haga clic en Finalizar.

  22. click to enlarge click para ampliar


Configure WAMP & MySQL Configurar MySQL & Wamp

  1. In your System Tray you should now see a “WAMP” icon. En la bandeja del sistema que usted debe ahora ver una "Wamp" icono. Click it, and select Put Online ( Note: if it says Put Offline ignore this step and skip to the next one). Haga clic en ella y seleccione Poner en línea (Nota: si se dice Ponga fuera de línea ignorar este paso y pase a la siguiente).
  2. Open your browser (if it isn’t already) and enter the URL Abra su navegador (si no lo está ya) e introduzca la URL http://localhost .
  3. The WAMP configuration page will load. Wamp la página de configuración se carga. From here you can access the tools phpMyAdmin, sqlitemanager etc. Desde aquí puedes acceder a las herramientas phpMyAdmin, etc sqlitemanager

  4. click to enlarge click para ampliar

  5. Now you’ll want to set a MySQL password, because by default, WAMP doesn’t set one. Ahora usted se va a configurar una contraseña de MySQL, ya que por defecto, Wamp no un conjunto. Select phpMyAdmin from the WAMP configuration page. Seleccione phpMyAdmin Wamp de la página de configuración. At the bottom of the phpMyAdmin screen you’ll see a message about MySQL running without a root password. En la parte inferior de la pantalla phpMyAdmin verá un mensaje sobre MySQL en funcionamiento sin una contraseña de root.
  6. To correct this, select the Privileges link. Para corregir esto, seleccione el enlace privilegios. In the User overview section, place a check in the box next to Root - Localhost (see image below) and then click the Edit Privileges button. En la sección panorama del usuario, el lugar un cheque en la casilla situada junto a raíz - Localhost (ver imagen inferior) y, a continuación, haga clic en el botón Editar privilegios.


    click to enlarge click para ampliar

  7. Scroll down to the Change password section, and enter your password in both boxes. Ve a la sección Cambio de contraseña, introduzca su contraseña en ambas casillas. Click Go to save the change. Haga clic en Ir para guardar los cambios.

  8. click to enlarge click para ampliar

  9. Make sure you get a message saying The password for 'root'@'localhost' was changed successfully . Asegúrese de que usted recibe un mensaje diciendo que la contraseña de 'root' @ 'localhost' fue cambiado con éxito.
  10. Minimize your browser window, and open up Windows Explorer (or whatever file manager you use in Windows). Minimizar la ventana del navegador, y abrir el Explorador de Windows (o lo que sea administrador de archivos que utiliza en Windows). Navigate to the C:\wamp\apps\phpmyadminx.xx\ folder. Navegue hasta el directorio C: \ Wamp \ apps \ phpmyadminx.xx \ carpeta. Inside that folder, open up config.inc.php - ideally in an HTML or PHP editor, but Notepad will do if you don’t have an html/php/code editor. Dentro de esa carpeta, abrir config.inc.php - idealmente en un HTML o PHP editor, Bloc de notas, pero lo hará si no tiene un html / php / editor de código.

  11. click to enlarge click para ampliar

  12. Search for the line $cfg['blowfish_secret'] = ''; - if you’re using notepad it might be easier to just search for the word blowfish Buscar la línea $ cfg [ 'blowfish_secret'] =''; - si está utilizando Bloc de notas podría ser más fácil simplemente buscar la palabra pez globo
  13. Change the line $cfg['blowfish_secret'] = ''; to $cfg['blowfish_secret'] = 'mypassphrase'; - where mypassphrase is your own password - not the same one you specified for root in MySQL. Cambiar la línea $ cfg [ 'blowfish_secret'] =''; $ cfg [ 'blowfish_secret'] = 'mypassphrase », - donde mypassphrase es su propia contraseña - no la misma que se especifica para el usuario root en MySQL.

    Note: as you can see from the screenshots above and below, this is much easier to work with in an HTML/PHP editor than it is in Notepad. Nota: como se puede ver en las pantallas de captura por encima y por debajo, esto es mucho más fácil trabajar en un HTML / editor de PHP que en el Bloc de Notas.


  14. click to enlarge click para ampliar

  15. Now search for the phrase ['auth_type'] = 'config'; (again, if you’re using Notepad you might want to just search for auth_type ). Ahora búsqueda de la frase [ 'auth_type'] = 'config'; (de nuevo, si usted está usando el Bloc de Notas es posible que desee buscar sólo auth_type).
  16. Change config to cookie . Cambio de configuración de cookie.
  17. Almost done. Casi hecho. Now search for $cfg['Servers'][$i]['password'] = ''; Replace the = ''; with = 'your-mysql-password'; - where your-mysql-password is the MySQL password you specified back in step #6 of this section. Ahora busca $ cfg [ 'Servers'] [$ i] [' password '] =''; Sustitúyase el =''; con =' su-mysql-password '; - en caso de que su-mysql-password es la contraseña de MySQL que ha especificado en el paso # 6 de esta sección.

  18. click to enlarge click para ampliar

  19. Save the changes you’ve made and exit out of your editor. Guardar los cambios que ha hecho y salir de su editor. Click on the WAMP icon in your System Tray and select Restart All Services . Haga clic en el Wamp icono en la bandeja del sistema y seleccione la opción Reiniciar todos los servicios.
  20. Bring up your browser again, and refresh Traiga su navegador una vez más, y refrescar http://localhost . Select phpmyadmin again. Seleccione phpMyAdmin de nuevo.
  21. This time you’ll be prompted to login. Esta vez se le pedirá que ingrese como usuario. Use root as the Username and enter the password you specified in step #6 as the password. Ignore the error about mcrytp not being loaded - we’ll fix that in a minute. Use raíz como el nombre de usuario e introduzca la contraseña que usted especificó en el paso # 6 como la contraseña. Ignorar el error acerca de mcrytp no se proceda a la carga - vamos a arreglar que en un minuto.
  22. Return to the Privileges section, and this time place a check next to the user root with the host 127.0.0.1 (see screenshot below) and click the Edit Privileges button. Volver a la sección de privilegios, y esta vez una marca de verificación junto a la raíz de usuario con el host 127.0.0.1 (ver captura de pantalla más abajo) y haga clic en el botón Editar privilegios.

  23. click to enlarge click para ampliar

  24. Set the password to the same one you used for root previously (step #6) and click Go . Establezca la contraseña de la misma que utilizó anteriormente para raíz (paso # 6) y haga clic en Ir. Confirm the password was updated. Confirme la contraseña se ha actualizado.
  25. Now select the user root in the production.mysql.com host section, and once again click the Edit Privileges button. Ahora seleccione el usuario raíz en la sección production.mysql.com de acogida, y, una vez más, haga clic en el botón Editar privilegios.

  26. click to enlarge click para ampliar

  27. Again set the password to the same one you’ve previously used for root. Una vez más establecer la contraseña de la misma que has utilizado anteriormente para el usuario root.
  28. And make sure it updates successfully. Y asegúrese de que las actualizaciones con éxito.

  29. click to enlarge click para ampliar

  30. Click the WAMP icon in your System Tray, choose PHP from the menu, then PHP extensions , scroll down to php_mcrypt and select it. Wamp Haga clic en el icono en la bandeja del sistema, elegir PHP en el menú y después extensiones de PHP, desplácese hacia abajo para php_mcrypt y seleccionarlo.
  31. Refresh phpMyAdmin in your browser, and this time you’ll be prompted to login, but without the mcrypt error. Actualizar phpMyAdmin en su navegador, y esta vez se le pedirá que ingreses, pero sin la mcrypt error.

  32. click to enlarge click para ampliar

  33. You’ve now set a password for MySQL, making it considerably more secure. Has ahora establecer una contraseña de MySQL, por lo que es considerablemente más seguro.

Install and setup Fake Sendmail Instalación y configuración de Sendmail Fake

  1. If you’re running Windows XP, 2000 or NT and have an outgoing (SMTP) mail server already installed on your PC, and can be accessed by localhost, you can skip all the steps in this section - your’e done! Si está utilizando Windows XP, 2000 o NT y tiene un saliente (SMTP) del servidor de correo que ya están instalados en su PC, y se puede acceder por localhost, puede saltarse todos los pasos en esta sección - your'e hecho! If you’re using Vista (or don’t have a mail server installed) - keep reading. Si está utilizando Vista (o no tienen un servidor de correo instalado) - siga leyendo.
  2. Because a number of services you may use require a working mail server, we’ll set up Fake Sendmail and use your ISPs outgoing mail server. Debido a una serie de servicios, puede exigir el uso de un grupo de trabajo del servidor de correo, vamos a crear falsos Sendmail y usar su ISP servidor de correo saliente. An example of a service that requires working mail is WordPress - if you forget your password and want to reset it, WordPress will email it to you. Un ejemplo de un servicio que requiere de trabajo es el correo de WordPress - si usted olvida su contraseña y desea restaurarla, WordPress enviará por correo electrónico a usted. Without Fake Sendmail (or a local SMTP server) every time a service tries to send an email, it will fail. Sin Fake Sendmail (o un servidor SMTP local) cada vez que un servicio intenta enviar un correo electrónico, caso contrario, no.
  3. Head over to Jefe a http://glob.com.au/sendmail/ and download sendmail.zip . y descargar sendmail.zip. If your ISP requires that you use SSL, make sure to download sendmail-SSL.zip as well. Si su ISP requiere que usted usa SSL, asegúrese de descargar sendmail-SSL.zip también. Create the folder(s) C:\usr\lib\ and extract sendmail.zip (and sendmail-SSL.zip if you need it) into that folder. Crear la carpeta (s) C: \ usr \ lib \ sendmail.zip y extraer (y sendmail-SSL.zip si es preciso) en esa carpeta.

  4. click to enlarge click para ampliar

  5. Open up sendmail.ini in Notepad. Abra el Bloc de notas en sendmail.ini. Scroll down to the smtp_server= section and change it to smtp_server=your.smtp.server , where your.smtp.server is your ISPs outgoing mail (SMTP) server. Ve a la sección smtp_server = y cambiarlo a smtp_server = your.smtp.server, donde your.smtp.server es tu ISP de correo saliente (SMTP) del servidor. If you’re unsure of your outgoing mail server, you can Si no estás seguro de tu servidor de correo saliente, puede try this list of ISP mail servers tratar esta lista de servidores de correo ISP - if yours isn’t listed there, check w/ your ISP. -- Si la suya no aparece en la lista, comprobar w / ISP. In the smtp_port= section, make sure it’s set to 25 - assuming your ISP uses port 25 for SMTP (not all do - though mine does). En el smtp_port = sección, asegúrese de que está configurado para 25 - suponiendo que tu ISP usa el puerto 25 para SMTP (no todos lo hacemos - aunque no el mío).

  6. click to enlarge click para ampliar

  7. In the default_domain= section, add your ISPs domain. Las default_domain A = sección, añadir su dominio ISP. For example, if you use Comcast as your ISP, add comcast.net . Por ejemplo, si usa Comcast como su proveedor de acceso a Internet, agregar comcast.net. Because I have service from Telus, my default domain is telus.net (as seen in the screenshot below). Porque tengo servicio de Telus, mi dominio por defecto es telus.net (como se ve en la captura de pantalla más abajo).

  8. click to enlarge click para ampliar

  9. If your SMTP server requires authentication, add your username to the end of the auth_username= field, and your password to the auth_password= field. Si su servidor SMTP requiere autenticación, agregue su nombre de usuario al final de la auth_username = campo, y su contraseña para la auth_password = campo.

    Note: you can use the Gmail SMTP server (see Nota: puede utilizar el servidor SMTP de Gmail (véase this FAQ esta FAQ for details) - assuming you have a Gmail account. para más detalles) - suponiendo que tiene una cuenta de Gmail. However, during testing I noticed a considerable delay in receiving mail - up to 7 hours. Sin embargo, durante la prueba me di cuenta de un considerable retraso en la recepción de correo - hasta 7 horas. Using my ISPs mail server settings there was no delay at all. El uso de mi ISP la configuración del servidor de correo no hubo demora en absoluto.


  10. click to enlarge click para ampliar

  11. Save your changes to the file (sendmail.ini) and exit Notepad. Guarde los cambios al archivo (sendmail.ini) y salida Bloc de notas. Now click the WAMP icon in your System Tray, select PHP and then click php.ini . Ahora haga clic en el Wamp icono en la bandeja del sistema, seleccione PHP y, a continuación, haga clic en php.ini.
  12. Scroll down to the [ mail function ] section. Desplácese hasta la [función de correo] sección. Comment out each of the For Win 32 lines by adding a semicolon ( ; ) in front of each one (see screenshot below). Uncomment the line sendmail_path = by removing the semicolon ( ; ) in front of it. Comente cada una de las Para Win 32 líneas mediante la adición de un punto y coma (;) delante de cada una (ver captura de pantalla más abajo). Descomente la línea sendmail_path = eliminando el punto y coma (;) delante de él. Add "/usr/lib/sendmail.exe -t" to the end of the line, so that it reads: sendmail_path = "/usr/lib/sendmail.exe -t" (again, see the screenshot below). Añadir "/ usr / lib / sendmail.exe-t" al final de la línea, de modo que diga: sendmail_path = "/ usr / lib / sendmail.exe-t" (de nuevo, ver la captura de pantalla más abajo).

  13. click to enlarge click para ampliar

  14. Save php.ini and exit out of Notepad (or whatever editor you used to edit php.ini). Guardar php.ini y salir de Bloc de Notas (o cualquier editor que utiliza para editar php.ini). Click on the WAMP icon in your System Tray and select Restart All Services . Haga clic en el Wamp icono en la bandeja del sistema y seleccione la opción Reiniciar todos los servicios.
  15. Now any time one of your web services needs to send an email… Ahora cualquier momento una de sus necesidades de servicios web para enviar un correo electrónico…
  16. it will go through! que pasará a través de!
  17. That’s it - you’re done! Eso es todo - ya está! You now have a fully functional Apache, MySQL and PHP system on your PC. Ahora tiene una manera plenamente funcional Apache, MySQL y PHP sistema en su PC.
Related Posts: Puestos relacionados:
  • How to easily install Apache, MySQL and PHP in OS X Cómo instalar fácilmente Apache, MySQL y PHP en OS X
  • How to install WordPress on your Windows PC Cómo instalar WordPress en tu PC con Windows
  • How to install and setup Jinzora (streaming media server) in OS X Cómo instalar y configurar Jinzora (servidor de streaming) en OS X
  • How to install WordPress in Windows Vista Cómo instalar WordPress en Windows Vista
  • How to open .rar, .arj, .gz, .tar and .rpm files in Windows ¿Cómo abrir. Rar,. Arj,. Gz,. Alquitrán y. Rpm archivos en Windows
  • { 4 comments… read them below or (4 comentarios… leer a continuación o add one Agrega uno } )

    1 1 Abraham 08.31.08 at 8:38 am Abraham 08.31.08 a 8:38 am

    This indeed made a great contribution for me as a novice user of the wamp server. Este hecho, hizo una gran contribución para mí como un usuario principiante de la Wamp servidor. Thank you very much Muchas gracias

    2 2 Nathan J. Brauer Nathan J. Brauer 09.02.08 at 10:17 pm 09.02.08 a las 10:17 pm

    Thank you very much! Muchas gracias! Out of all the tutorials I found out there, this was by far the best AND easiest! De todos los tutoriales que encontré por ahí, este es con mucho la mejor y más fácil! Kudos and Thanks! Kudos y Gracias!

    3 3 chaos 09.05.08 at 11:24 am 09.05.08 caos a 11:24 am

    XAMPP is much easier to be honest. XAMPP es mucho más fácil ser honesto.

    I’d look into it. Me encantaría ver en ella.

    4 4 Sanjeev Mishra Sanjeev Mishra 09.08.08 at 6:07 am 09.08.08 a las 6:07 am

    Really great help dear! Realmente gran ayuda Querido!

    Thanks a lot…!!!!!!!! Muchas gracias… !!!!!!!!

    Leave a Comment Déjanos tu comentario

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Puede utilizar estas etiquetas HTML y atributos: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>