How To Configure PHP 5 With Apache 2 On Windows in 2 Minutes Come configurare PHP 5 con Apache 2 Su Windows in 2 minuti
I am assuming that you have downloaded and installed Apache 2.x on your windows machine. Io sono supponendo che avete scaricato e installato Apache 2.x sul tuo computer Windows. Use the latest version 2.2, if you do not have plans to run Subversion on it. Utilizzare l'ultima versione 2,2, se non si dispone di piani di sovversione per eseguire su di esso. Otherwise choose Apache 2.0.x. Altrimenti scegliere Apache 2.0.x. Install it with the defaults. Installarlo con i valori predefiniti. You may want to however changes the drive on which it is installed. È possibile che si desideri modifiche tuttavia l'unità in cui è installato. Anyway so you have it running. Comunque in modo che abbiano in esecuzione. Then you went to php.net and have downloaded and extracted the zip file to say c:\ or d:\. Quindi si è andato a php.net e hanno scaricato ed estratto il file zip a dire c: \ o d: \. I am assuming you have then changed the name of php.ini-recommended to php.ini. Sono supposto che hanno poi cambiato il nome del php.ini-raccomanda di php.ini. So far all the steps are straight forward and their install guide is good enough. Finora tutti i passi avanti sono dritti e la loro installazione di guida è abbastanza buono. Now you are feeling happy about it and want to integrate PHP with Apache, right? Ora si sente felice su di esso e si vuole integrare il PHP con Apache, giusto? That’s when the fun begins. Che, quando inizia il divertimento.
To cut the long story short the instructions in PHP document doesn’t work and have obviously not been updated in a long while. Per tagliare la lunga storia breve le istruzioni in PHP documento non funziona e, ovviamente, non sono stati aggiornati in un lungo tempo. So I will give you a 2 minute guide to glory. Così io vi a 2 minuti a guida di gloria.
Open httpd.conf (in Drive:\Program Files\Apache Group\Apache2\conf) and search for LoadModule statements. Aprire httpd.conf (in Unità: \ Program Files \ Apache Group \ Apache2 \ conf) e cercare LoadModule dichiarazioni. At the end add: Alla fine aggiungere:
LoadModule php5_module "D:/php/php5apache2.dll" LoadModule php5_module "D: / php/php5apache2.dll"
Then search for Quindi cercare
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application / x-httpd-php. Php AddType application / x-httpd-php-source. Phps
Note: The last AddType is a nicety. Nota: L'ultimo è un AddType non bastasse. It allows you to view .phps files (php files with extension renamed) in htmlized and colorful format from your browser. Vi permette di visualizzare. Phps file (php file con estensione rinominata) in htmlized e colorato formato dal browser.
Now restart the server. Ora riavviare il server.
Did I say you are done? Ti dico avete finito? Well, you are. Bene, siete. So go out and enjoy. Quindi uscire e godere.
Note: If you are a wimp and you don’t need Subversion you may take the easy way out and install Xampp instead. Nota: Se sei un wimp e non avete bisogno di sovversione si può prendere la via d'uscita facile e installare XAMPP. It will do the dirty work for you. Si farà il lavoro sporco per voi.
Filed under Elencato sotto Headline News Headline News , How To Come , Open Source Software Software open source , PHP , Tech Note Nota tech , Web , Web Hosting Web Hosting , Web Services Servizi Web , Windows | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | questo articolo |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |





September 22nd, 2007 at 4:16 am 22 settembre 2007 a 4:16 am
Thank U very much.. U ringraziare moltissimo ..
October 14th, 2007 at 11:28 pm 14 ottobre 2007 alle 11:28 pm
hi Salve
does this config works on vista? questa configurazione non funziona su Vista?
i download the latest php, but font contian the php5apache2.dll but i have the php5ts, can any1 tell me what to do..please i scaricare l'ultima php, ma il font contian la php5apache2.dll ma ho l'php5ts, any1 può dirmi cosa fare .. ti preghiamo
December 18th, 2007 at 10:50 am 18 dicembre 2007 alle 10:50 am
Awesome, thanks! Awesome, grazie! this was the critical part I needed. questa è stata la parte critica avevo bisogno. Even book installation procedures were off base Anche libro procedure di installazione di base sono stati off
February 24th, 2008 at 9:39 pm 24 febbraio 2008, 9:39 pm
Thanks, Grazie,
That worked well. Che ha funzionato bene.
Extra step to smooth things in Vista Extra buon passo per le cose in Vista
I would add that in the htdocs folder (for those lazy folks who don\’t change the root directory to be something else), that changing the permission ability for USER makes it really simple to add/edit files Vorrei aggiungere che nella cartella htdocs (per coloro pigro gente che don \ 't cambiare la password di root directory da qualcos'altro), che il cambiamento di permesso possibilità per l'utente rende molto semplice aggiungere / modificare i file
go to htdocs directory vai alla directory htdocs
right click and select \”Customize This Folder\” fai clic destro e selezionare \ "Personalizza cartella \"
select \”Security\” tab. selezionare \ "sicurezza \".
select \”Edit\” or \”Advanced\” to change the permissions for USER selezionare \ "Modifica \" o \ "Avanzate \" per modificare le autorizzazioni per l'utente
May 31st, 2008 at 7:17 am 31 maggio 2008, 7:17 am
Hi Salve
Thanks for the info Grazie per le informazioni
Short and good. A breve e buona.
Well done Well done
I have follow you instructions but I get an error: Ho seguito le istruzioni ma mi appare un messaggio di errore:
The specified module could not be found. Il modulo specificato non è stata trovata.
My OS is Vista home premium. OS è il mio Vista Home Premium.
Must say that the file: php5apache2.dll Devo dire che il file: php5apache2.dll
was not part of the PHP package. non faceva parte del pacchetto di PHP.
instead, I have: php5ts.dll invece, sono: php5ts.dll
(Here is a good link to find that missing php5apache2.dll (Qui è un buon link per trovare che manca php5apache2.dll
http://kromann.info/download.php?strFolder=php5_1-Release_TS&strIndex=PHP5_1
)
This is the code lines from my httpd.conf Questo è il codice linee dal mio httpd.conf
I have placed the lines at the end of the LoadModule list. Ho messo le linee alla fine del LoadModule lista.
This line is the last one on the list: Questa linea è l'ultimo della lista:
#LoadModule vhost_alias_module modules/mod_vhost_alias.so # LoadModule vhost_alias_module modules / mod_vhost_alias.so
Then right bellow I have placed the 3 lines as you instructed: Poi a destra qui ho messo il 3 linee come lei ha incaricato:
LoadModule php5_module “php/php5apache2.dll” LoadModule php5_module "php/php5apache2.dll"
AddType application/x-httpd-php .php AddType application / x-httpd-php. Php
AddType application/x-httpd-php-source .phps AddType application / x-httpd-php-source. Phps
Please advice Vi preghiamo di consulenza
Thanks for your help Grazie per il vostro aiuto
Amit C. Amit C.