Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Modifica file httpd

  1. #1

    Modifica file httpd

    Salve, sono nuovo completamente di programmazione php, e quindi seguendo la guida di questo sito ho cominciato a istallarmi le varie componenti necessarie per creare l'ambiente di programmazione, ma quando mi trovo a modificare il file httpd come descritto nella guida riscontro due difficoltà:
    1 se aggiungo le righe di codice

    #Start Php integration
    LoadModule php4_module "c:/php/php4apache2.dll"
    AddType application/x-httpd-php .php
    PhpIniDir "C:/php"
    #End Php integration

    non si riavvia apache che evidentemente mi riscontra un errore se non ho ancora modificato la riga
    DirectoryIndex index.html index.html.var
    in
    DirectoryIndex index.html index.html.var index.php

    2 problema
    nel file httpd originale non compare la parte

    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    # The index.html.var file (a type-map) is used to deliver content-
    # negotiated documents. The MultiViews Option can be used for the
    # same purpose, but it is much slower.
    #
    DirectoryIndex index.html index.html.var

    come dice nella guida ma bensì

    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    <IfModule dir_module>
    DirectoryIndex index.html
    </IfModule>

    e modificando queste in
    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    <IfModule dir_module>
    DirectoryIndex index.html index.html index.html.var
    </IfModule>

    apache continua a non funzionare...

    cosa devo fare?

    Ps apache versione 2.2.4

  2. #2
    ho risolto:
    il problema è che io avendo istallato apache 2.2.4 (o credo in generale 2.2.x) potevo utilizzare solo apche 5.2.3 e le ricghe di codice sopra

    #Start Php integration
    LoadModule php4_module "c:/php/php4apache2.dll"
    AddType application/x-httpd-php .php
    PhpIniDir "C:/php"
    #End Php integration

    una volta istallato il 5.2.x vanno modificate così

    #Start Php integration
    LoadModule php5_module "c:/php/php5apache2_2.dll"
    AddType application/x-httpd-php .php
    PhpIniDir "C:/php"
    #End Php integration

    Inoltre il mio secondo problema non lo era inrealtà, infatti anche se compare (diversamente dalla guida

    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    <IfModule dir_module>
    DirectoryIndex index.html
    </IfModule>

    basta modificarlo in

    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    <IfModule dir_module>
    DirectoryIndex index.html index.html index.html.var
    </IfModule>

    Spero che questo topic sia utile a chi incontra questo problema dopo di me... ghgh

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.