How to install and setup Apache, MySQL and PHP in Windows Come installare e configurare Apache, MySQL e PHP in Windows

by Ross McKillop on August 25, 2008 da Ross McKillop il 25 agosto, 2008

E-mailWeb design & devWindows

This tutorial will walk you every single step of the way through installing and setting up Questo tutorial vi guiderà ogni singolo passo per passo attraverso l'installazione e la creazione di WAMP (Windows, Apache, MySQL & PHP). (Windows, Apache, MySQL e PHP). With WAMP installed, you can run a web server (and things like WordPress, MediaWiki, and WAMP con installato, è possibile eseguire un server web (e altre cose di WordPress, MediaWiki, e Jinzora ) on your Windows PC. ), Su PC Windows.

Installing WAMP L'installazione di WAMP
Configure WAMP & MySQL WAMP e configurare MySQL
Install and setup Fake Sendmail Installazione e configurazione di Sendmail Fake


Installing WAMP L'installazione di WAMP

  1. To get started, head over to the Per iniziare, oltre a capo il WAMP download page WAMP pagina di download and save the .exe to your desktop. e salvare il file. exe sul desktop. Once the download has completed, run the installation file. Una volta che il download, eseguire il file di installazione. 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. Il primo messaggio vedrai è un avvertimento - se hai una versione precedente di WAMP (1.x) installato, assicuratevi di disinstallarlo prima. Otherwise click Yes to continue. Altrimenti fare clic su per continuare.

  2. click to enlarge Clicca per ingrandire

  3. Click Next on the initial setup screen. Fare clic su Avanti nella schermata di impostazione iniziale.

  4. click to enlarge Clicca per ingrandire

  5. Review the License Agreement , select I accept the agreement and then click the Next button. Modifica il Contratto di licenza, selezionare Accetto l'accordo e quindi fare clic sul pulsante Avanti.

  6. click to enlarge Clicca per ingrandire

  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. È una buona idea di lasciare la directory di installazione predefinita da solo (C: \ WAMP \) - ma se volete cambiarlo, ora è il tempo. Click Next to continue. Fare clic su Avanti per continuare.

  8. click to enlarge Clicca per ingrandire

  9. Decide if you want to have WAMP Quick Launch and/or Desktop icons, and click Next . Decidere se si desidera avere WAMP di avvio veloce e / o le icone del desktop, quindi fare clic su Avanti.

  10. click to enlarge Clicca per ingrandire

  11. Finally, click Install . Infine, fare clic su Installa.

  12. click to enlarge Clicca per ingrandire

  13. The installation doesn’t take too long. L'installazione non troppo lungo.

  14. click to enlarge Clicca per ingrandire

  15. Once it has completed, the setup phrase will begin. Una volta che ha compiuto, la frase di installazione avrà inizio. If you have Firefox set as your default browser, WAMP will ask you if that’s the browser you want to use. Se hai impostato Firefox come browser predefinito, WAMP vi chiederà se questo è il browser che si desidera utilizzare. Click Yes . Fare clic sul pulsante Sì.

  16. click to enlarge Clicca per ingrandire

  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. A questo punto, se hai un firewall software installato, probabilmente pop up e avvertirvi che Apache vuole accettare connessioni in entrata. Depending on your specific Firewall the “button” to click may be different, but it will be something similar to Unblock . A seconda della specifica Firewall il "bottone" a fare clic possono essere diverse, ma sarà qualcosa di simile a Sblocca. Do not click “Keep Blocking”. Non fare clic su "Conserva il blocco".

  18. click to enlarge Clicca per ingrandire

  19. Leave the SMTP: server set as localhost (more on this later) but do change the email address to yours. Lasciare l'SMTP: impostare come server localhost (più su questo più tardi), ma non modificare l'indirizzo email ai tuoi. Click Next . Fare clic su Avanti.

  20. click to enlarge Clicca per ingrandire

  21. That’s it - you’re done! Questo è tutto - il gioco è fatto! Make sure that there’sa check in the Launch WampServer 2 now box, and click Finish . Assicurarsi che c'è un check-in di avvio WampServer 2 ora casella e fare clic su Fine.

  22. click to enlarge Clicca per ingrandire


Configure WAMP & MySQL WAMP e configurare MySQL

  1. In your System Tray you should now see a “WAMP” icon. Nella barra delle applicazioni si dovrebbe ora vedere un "WAMP". Click it, and select Put Online ( Note: if it says Put Offline ignore this step and skip to the next one). Fare clic su di essa, e selezionare Metti online (Nota: se si dice Metti offline ignorare questo passo e saltare a quello successivo).
  2. Open your browser (if it isn’t already) and enter the URL Aprite il vostro browser (se già non lo fosse) e digitare l'URL http://localhost .
  3. The WAMP configuration page will load. WAMP la pagina di configurazione verrà caricato. From here you can access the tools phpMyAdmin, sqlitemanager etc. Da qui è possibile accedere agli strumenti phpMyAdmin, ecc sqlitemanager

  4. click to enlarge Clicca per ingrandire

  5. Now you’ll want to set a MySQL password, because by default, WAMP doesn’t set one. Ora si vorrà impostare una password di MySQL, perché per impostazione predefinita, WAMP non fissa. Select phpMyAdmin from the WAMP configuration page. PhpMyAdmin selezionare da WAMP la pagina di configurazione. At the bottom of the phpMyAdmin screen you’ll see a message about MySQL running without a root password. Nella parte inferiore dello schermo phpMyAdmin verrà visualizzato un messaggio su MySQL in esecuzione senza una password di root.
  6. To correct this, select the Privileges link. Per correggere questo, selezionare il link privilegi. 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. Nella sezione Panoramica utente, il luogo di un controllo nella casella accanto a root - Localhost (vedi immagine qui sotto) e quindi fare clic sul pulsante Modifica privilegi.


    click to enlarge Clicca per ingrandire

  7. Scroll down to the Change password section, and enter your password in both boxes. Scorri la pagina fino alla sezione Modifica della password e immettere la password in entrambe le caselle. Click Go to save the change. Fare clic su Vai per salvare la modifica.

  8. click to enlarge Clicca per ingrandire

  9. Make sure you get a message saying The password for 'root'@'localhost' was changed successfully . Sicuro di ricevere un messaggio che dice La password per 'root' @ 'localhost' è stata modificata con successo.
  10. Minimize your browser window, and open up Windows Explorer (or whatever file manager you use in Windows). Ridurre al minimo la finestra del browser e aprire Esplora risorse di Windows (o qualsiasi file manager si utilizza in Windows). Navigate to the C:\wamp\apps\phpmyadminx.xx\ folder. Navigare verso la cartella C: \ WAMP \ apps \ phpmyadminx.xx \. 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. All'interno della cartella, aprire config.inc.php - idealmente in un HTML o PHP editor, ma il Blocco note farà se non hai un html / php / editor di codice.

  11. click to enlarge Clicca per ingrandire

  12. Search for the line $cfg['blowfish_secret'] = ''; - if you’re using notepad it might be easier to just search for the word blowfish Ricerca per la linea $ cfg [ 'blowfish_secret'] =''; - se si sta utilizzando notepad potrebbe essere più facile da appena ricerca per la parola blowfish
  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. Modificare la riga $ cfg [ 'blowfish_secret'] =''; a $ cfg [ 'blowfish_secret'] = 'mypassphrase'; - dove mypassphrase è la tua password - non lo stesso che hai specificato per l'utente root in 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: come potete vedere dalle schermate sopra e sotto, questo è molto più facile lavorare con un HTML / PHP editor di quanto lo sia nel Blocco note.


  14. click to enlarge Clicca per ingrandire

  15. Now search for the phrase ['auth_type'] = 'config'; (again, if you’re using Notepad you might want to just search for auth_type ). Ora ricerca per la frase [ 'auth_type'] = 'config'; (di nuovo, se si sta utilizzando il Blocco note si potrebbe voler cercare solo auth_type).
  16. Change config to cookie . Config per cambiare cookie.
  17. Almost done. Quasi fatto. 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. Ora ricerca di $ cfg [ 'Servers'] [$ i] [' password '] =''; Sostituire l'=''; a =' la tua-mysql-password '; - se il tuo-mysql-password è la password di MySQL specificato nel passo # 6 di questa sezione.

  18. click to enlarge Clicca per ingrandire

  19. Save the changes you’ve made and exit out of your editor. Salvare le modifiche apportate e uscire dal tuo editore. Click on the WAMP icon in your System Tray and select Restart All Services . Fare clic sul WAMP nella barra delle applicazioni e selezionare Riavviare tutti i servizi.
  20. Bring up your browser again, and refresh Portare il vostro browser, e aggiornare http://localhost . Select phpmyadmin again. PhpMyAdmin selezionare nuovamente.
  21. This time you’ll be prompted to login. Questa volta ti verrà richiesto di effettuare il login. 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. Utilizzare root come nome utente e immettere la password che hai specificato nel passaggio # 6 come password. Ignorare l'errore circa mcrytp non essere caricati - we'll correzione che in 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. Tornare alla sezione privilegi, e questa volta un segno di spunta per l'utente root con l'host 127.0.0.1 (vedi immagine qui sotto) e fare clic sul pulsante Modifica privilegi.

  23. click to enlarge Clicca per ingrandire

  24. Set the password to the same one you used for root previously (step #6) and click Go . Impostare la password per lo stesso che hai utilizzato in precedenza per l'utente root (passo # 6) e fare clic su Vai. Confirm the password was updated. Confermare la password è stata aggiornata.
  25. Now select the user root in the production.mysql.com host section, and once again click the Edit Privileges button. Ora selezionare l'utente root nella sezione production.mysql.com ospitante, e ancora una volta fare clic sul pulsante Modifica privilegi.

  26. click to enlarge Clicca per ingrandire

  27. Again set the password to the same one you’ve previously used for root. Ancora una volta impostata la password per lo stesso che hai utilizzato in precedenza per l'utente root.
  28. And make sure it updates successfully. E assicurarsi che gli aggiornamenti con successo.

  29. click to enlarge Clicca per ingrandire

  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. Fare clic sul WAMP icona nella barra delle applicazioni, scegliere di PHP da menu, quindi le estensioni PHP, scorrere verso il basso per php_mcrypt e selezionarlo.
  31. Refresh phpMyAdmin in your browser, and this time you’ll be prompted to login, but without the mcrypt error. Aggiorna phpMyAdmin nel tuo browser, e questa volta ti verrà richiesto di login, ma senza la Mcrypt errore.

  32. click to enlarge Clicca per ingrandire

  33. You’ve now set a password for MySQL, making it considerably more secure. Hai ora impostare una password per MySQL, il che rende notevolmente più sicuro.

Install and setup Fake Sendmail Installazione e configurazione di 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! Se si sta eseguendo Windows XP, 2000 o NT e hanno una in uscita (SMTP) del server di posta già installato sul vostro PC, e può essere letta da localhost, si può saltare tutti i passi in questa sezione - your'e fatto! If you’re using Vista (or don’t have a mail server installed) - keep reading. Se si sta utilizzando Vista (o non si dispone di un server di posta elettronica installato) - mantenere lettura.
  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. Perché una serie di servizi che possono utilizzare richiedono un server di posta di lavoro, verrà creato Fake Sendmail e utilizzare il vostro ISP server di posta in uscita. 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 esempio di un servizio che richiede lavoro mail è WordPress - se si dimentica la password e desidera reimpostare, WordPress sarà posta elettronica a voi. Without Fake Sendmail (or a local SMTP server) every time a service tries to send an email, it will fail. Senza Fake di Sendmail (o di un server SMTP locale) ogni volta che un servizio cerca di inviare una e-mail, non andrà a buon fine.
  3. Head over to Oltre a testa http://glob.com.au/sendmail/ and download sendmail.zip . e scaricare sendmail.zip. If your ISP requires that you use SSL, make sure to download sendmail-SSL.zip as well. Se il vostro ISP richiede l'utilizzo SSL, assicurarsi di scaricare sendmail-SSL.zip pure. Create the folder(s) C:\usr\lib\ and extract sendmail.zip (and sendmail-SSL.zip if you need it) into that folder. Creare la cartella (s) C: \ usr \ lib \ ed estrarre sendmail.zip (e sendmail-SSL.zip se ne ha bisogno) in quella cartella.

  4. click to enlarge Clicca per ingrandire

  5. Open up sendmail.ini in Notepad. Aprire sendmail.ini nel Blocco note. 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. Scorri la pagina fino alla sezione smtp_server = e modificarlo con smtp_server = your.smtp.server, dove your.smtp.server è il tuo provider di posta in uscita (SMTP) del server. If you’re unsure of your outgoing mail server, you can Se non si è sicuri del vostro server di posta in uscita, è possibile try this list of ISP mail servers tenta di questo elenco di server di posta elettronica ISP - if yours isn’t listed there, check w/ your ISP. -- Se la vostra non è in elenco, controllare w / il vostro 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). Nel smtp_port = sezione, assicurarsi che sia impostata su 25 - assumendo l'ISP utilizza la porta 25 per SMTP (non tutti - anche se non il mio).

  6. click to enlarge Clicca per ingrandire

  7. In the default_domain= section, add your ISPs domain. Nel default_domain = sezione, aggiungere il tuo dominio ISP. For example, if you use Comcast as your ISP, add comcast.net . Ad esempio, se si utilizza come Comcast il vostro ISP, aggiungere comcast.net. Because I have service from Telus, my default domain is telus.net (as seen in the screenshot below). Perché ho servizio da Telus, il mio dominio predefinito è telus.net (come si vede nello screenshot qui sotto).

  8. click to enlarge Clicca per ingrandire

  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. Se il tuo server SMTP richiede l'autenticazione, aggiungere il tuo nome utente e la fine del auth_username = campo, e la vostra password per il auth_password = campo.

    Note: you can use the Gmail SMTP server (see Nota: è possibile utilizzare il server SMTP di Gmail (cfr. this FAQ questa FAQ for details) - assuming you have a Gmail account. per i dettagli) - ammesso di avere un account Gmail. However, during testing I noticed a considerable delay in receiving mail - up to 7 hours. Tuttavia, durante le prove ho notato un notevole ritardo nel ricevere la posta - fino a 7 ore. Using my ISPs mail server settings there was no delay at all. Fornitori di servizi Internet utilizzando il mio server di posta impostazioni non vi era alcun indugio a tutti.


  10. click to enlarge Clicca per ingrandire

  11. Save your changes to the file (sendmail.ini) and exit Notepad. Salvare le modifiche al file (sendmail.ini) e chiudere il Blocco note. Now click the WAMP icon in your System Tray, select PHP and then click php.ini . Ora fare clic sul WAMP icona nella barra delle applicazioni, selezionare PHP e quindi fare clic su php.ini.
  12. Scroll down to the [ mail function ] section. Scorrere la [Mail funzione] sezione. 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. Commentare ciascuno degli Per Win 32 linee con l'aggiunta di un punto e virgola (;) di fronte di ciascuno e di ciascuna (vedi immagine qui sotto). Decommentare la linea sendmail_path = eliminando il punto e virgola (;) davanti. 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). Aggiungere "/ usr / lib / sendmail.exe-t" per la fine della linea, in modo che legga: sendmail_path = "/ usr / lib / sendmail.exe-T" (di nuovo, vedere la schermata qui sotto).

  13. click to enlarge Clicca per ingrandire

  14. Save php.ini and exit out of Notepad (or whatever editor you used to edit php.ini). Php.ini salvare e uscire fuori il Blocco note (o qualsiasi editor che hai utilizzato per modificare php.ini). Click on the WAMP icon in your System Tray and select Restart All Services . Fare clic sul WAMP nella barra delle applicazioni e selezionare Riavviare tutti i servizi.
  15. Now any time one of your web services needs to send an email… Ora qualsiasi momento uno dei tuoi servizi web ha bisogno di inviare una e-mail…
  16. it will go through! che passano!
  17. That’s it - you’re done! Questo è tutto - il gioco è fatto! You now have a fully functional Apache, MySQL and PHP system on your PC. Adesso avete una pienamente funzionante di Apache, MySQL e PHP sistema sul vostro PC.
Related Posts: Posti connessi:
  • How to easily install Apache, MySQL and PHP in OS X Come facilmente installare Apache, MySQL e PHP in OS X
  • How to install WordPress on your Windows PC Come installare WordPress sul tuo PC Windows
  • How to install and setup Jinzora (streaming media server) in OS X Come installare e configurare Jinzora (streaming media server) in OS X
  • How to install WordPress in Windows Vista Come installare WordPress in Windows Vista
  • How to open .rar, .arj, .gz, .tar and .rpm files in Windows Come aprire. Rar,. Arj,. Gz,. Catrame e. Giri / min file in Windows
  • Get Simple Help tutorials just like this one in your email inbox every day - for free! Guida Semplice ottenere tutorial solo come questo nella tua casella di posta ogni giorno - gratis! Just enter your email address below: Basta inserire il tuo indirizzo email qui sotto:

    You can always opt out of this email subscription at any time. Si può sempre scegliere di questa email abbonamento in qualsiasi momento.

    { 5 comments… read them below or (5 commenti… leggere qui sotto o add one aggiungere uno } )

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

    This indeed made a great contribution for me as a novice user of the wamp server. Questo infatti dato un grande contributo per me come un novizio utente del WAMP server. Thank you very much Grazie mille

    2 2 Nathan J. Brauer Nathan J. Brauer 09.02.08 at 10:17 pm 09.02.08 alle 10:17 pm

    Thank you very much! Grazie mille! Out of all the tutorials I found out there, this was by far the best AND easiest! Di tutti i tutorial ho trovato là fuori, questo è stato di gran lunga il migliore e più facile! Kudos and Thanks! Kudos e Grazie!

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

    XAMPP is much easier to be honest. XAMPP è molto più facile essere onesti.

    I’d look into it. Io ho esaminare il problema.

    4 4 Sanjeev Mishra Sanjeev Mishra 09.08.08 at 6:07 am 09.08.08 alle 6:07 am

    Really great help dear! Veramente grande aiuto cari!

    Thanks a lot…!!!!!!!! Thanks a lot… !!!!!!!!

    5 5 Felix Oquendo 09.11.08 at 4:51 pm Felix Oquendo 09.11.08 a 4:51 pm

    Excellent instructions. Eccellente istruzioni. After I installed WAMP, I’ve issue setting up MySQL password. Dopo aver installato WAMP, ho questione la creazione di MySQL password. Tried many suggestions from many sites and though most offered some basic information, none has been so detailed and easy as on this site. Provato molti suggerimenti da molti siti e se la maggior parte ha offerto alcune informazioni di base, nessuno è stato in modo dettagliato e facile come in questo sito. Wish I had found this site three weeks ago when I first installed WAMP. Desiderio avevo trovato questo sito tre settimane fa quando ho installato WAMP.

    Leave a Comment Lascia un commento

    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> È possibile utilizzare questi tag HTML e attributi: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>