Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 15
  1. #1
    Utente di HTML.it L'avatar di Rommel
    Registrato dal
    Jun 2004
    Messaggi
    955

    Aiuto configurazione di Apache-Php-MySql

    Salve a tutti,
    sto imparando il php e leggendo la guida x la creazione di pagine php con apache ho trovato un grosso problema:
    dovrei trovare all'indirizzo http://localhost una sfilza di dati, ma....trovo solo la home di apache.
    Come posso fare, vi prego aiutatemi non riesco a capire dov'è l'errore.
    Grazie x le risposte.
    In a world without walls and fences, who needs windows and gates?

  2. #2
    Utente di HTML.it L'avatar di Nosfe
    Registrato dal
    Jan 2004
    Messaggi
    454
    Sequi bene questaguida e vedrai che vai alla grande


  3. #3
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    se vedi la home di apache vuol dire che lui funziona, per vedere se anke il resto è ok devi creare un file ciccio.php da mettere nella root directory:
    <?php
    echo phpinfo();
    ?>

    poi digiti http://localhost/ciccio.php per vedere se va...
    think simple think ringo

  4. #4
    Utente di HTML.it L'avatar di Rommel
    Registrato dal
    Jun 2004
    Messaggi
    955
    Mi esce un download x il file creato, è normale?
    Cmq non esce più l'errore bensì questo download
    In a world without walls and fences, who needs windows and gates?

  5. #5
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    Originariamente inviato da Rommel
    Mi esce un download x il file creato, è normale?
    Cmq non esce più l'errore bensì questo download

    no, nn è normale...hai configurato il file httpd.conf?? devi aggiungere qst righe nel file di configurazione di apache:

    LoadModule php4_module c:/php/sapi/php4apache.dll
    AddType application/x-httpd-php .php
    think simple think ringo

  6. #6
    Utente di HTML.it L'avatar di Rommel
    Registrato dal
    Jun 2004
    Messaggi
    955
    Appunto proprio qui sta l'errore credo (io ho fatto le modifiche a apache).
    In a world without walls and fences, who needs windows and gates?

  7. #7
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    la document root è la stessa sia nel php.ini sia nel httpd.conf?? le righe sopra postate sn state aggiunge?? gli altri file .htm vengono visualizzati correttamente??
    think simple think ringo

  8. #8
    Utente di HTML.it L'avatar di Rommel
    Registrato dal
    Jun 2004
    Messaggi
    955
    la root nn so bene cos'è
    le righe le ho aggiunte
    i files html si vedono bene
    In a world without walls and fences, who needs windows and gates?

  9. #9

    Strano...

    Comunque se non trovi la soluzione, togli tutto (Apache, PHP, MySQL) e installa direttamente questo; io mi trovo bene, e tutto gira perfettamente!
    Nothing To Say :-D

  10. #10
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    Originariamente inviato da Rommel
    la root nn so bene cos'è
    le righe le ho aggiunte
    i files html si vedono bene
    httpd.conf
    #
    # 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 "...."


    php.ini
    ; The root of the PHP pages, used only if nonempty.
    ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    ; if you are running php as a CGI under any web server (other than IIS)
    ; see documentation for security issues. The alternate is to use the
    ; cgi.force_redirect configuration below
    doc_root = "....";



    chiaramente devi indicare la stessa directory
    think simple think ringo

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 © 2024 vBulletin Solutions, Inc. All rights reserved.