Configurare un server locale con Windows 7

Installare un server locale sul proprio computer di casa è una operazione fondamentale se si vuole creare siti internet con piattaforme come wordpress o template per forum come phpbb. L’operazione è semplicissima anche con il nuovo sistema operativo microsoft.

Un programma utilissimo: easy php

Basta scaricare l’ultima versione di Easyphp: download (http://www.easyphp.org/download.php). Una volta installato sara sufficiente avviare il programma come amministratore . Attenzione questo particolare è fondamentale se volete evitare di incappare in errori di mysql.

Un vecchio trucchetto

EasyPHP installa automaticamente il vostro sito internet nella cartella www (..\Program Files (x86)\EasyPHP5.3.0\www) piuttosto scomoda da raggiungere.

Se volete cambiarla vi basterà procedere come segue:

  • tasto destro sull’icona di notifica della taskbar di windows 7
  • dal menu a tendina scegliere Configurazione>Apache
  • Vi si aprirà il file httpd.config
  • Alla linea 184 trovate
    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "C:/Program Files/EasyPHP/www"

Sostituite con la directory che preferite, ora salvate il file e riaviate il programma

Setting up a local server with Windows 7

if you want to create websites with platforms like Wordpress or template for forums like phpBB install a local server on your home computeris a fundamental operation. The operation is very easy with the new Microsoft operating system.

A program useful: easy php

Just download the latest version of EasyPHP: download (http://www.easyphp.org/download.php). Once installed it will just start the program as administrator. Warning This is particularly important if you want to avoid encountering any errors in mysql.

An old trick

EasyPHP automatically installs your website in the www folder (.. \ Program Files (x86) \ EasyPHP5.3.0 \ www) is rather difficult to achieve.

If you want to change you just follow these steps:

  • Right click the taskbar icon notification in Windows 7
  • From the drop down menu, click Configuration> Apache
  • We will open the file httpd.config
  • At line 184 find
    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "C:/Program Files/EasyPHP/www"

Replace with the directory of your choice, now save the file and restarted the program

Nessun commento »

Non c’è ancora nessun commento.

Lascia un commento



  • Mail (che non verrà pubblicata) (obbligatorio)