Visualizzazione dei risultati da 1 a 7 su 7
  1. #1

    Problemi post aggiornamento Apache e PHP

    Ciao,
    Per poter installare Wordpress in locale ho dovuto fare un aggiornamento di PHP e ne ho approfittato anche per installare l'ultima versione di Apache.
    Ho avuto un sacco di difficoltà che non sto ad elencare.
    Alla fine il server funziona, php è installato correttamente e anche phpmyAdmin. Anche WP si è installato.

    Solo che se cerco di aprire un sito in locale mi appare una pagina bianca!!

    Non riesco a capire quale sia il problema o se ho dimenticato/sbagliato qualche impostazione....

  2. #2
    Boh alla fine in un modo o nell'altro sono riuscito a farlo andare, anche se non ho capito come.

    Però ho ancora un sito in locale che non si vede, la index è bianca e le altre pagine appaiono senza formattazione, solo testo. è come se non interpretasse gli "include". Devo abilitare qualche parametro nel php.ini?

  3. #3
    boh, oggi per qualche motivo non parte apache!

  4. #4
    Che son morti tutti qui dentro?

  5. #5
    Prima prova a vedere se è wordpress che non va o manca qualcosa al server, installa qualsiasi altra cosa dello stesso tipo...magari drupal boh!
    Se Drupal funziona è un problema di Wordpress: il white screen of death!

    http://wordpress.org/support/topic/w...een-of-death-7

    Dovrebbe togliersi facendo qualche modifica al file functions.php

  6. #6
    Grazie per la risposta.
    Dopo 2 sere di smanettamenti sono riuscito a far funzionare apache (anche se ho dovuto reinstallare la 2.2) e wordpress funziona.

    Solo che il sito che già dicevo continua a non funzionare come se gli include non fossero interpretati e non so più cosa fare...

  7. #7
    Utente di HTML.it L'avatar di Enoa
    Registrato dal
    Jul 2005
    Messaggi
    573
    Scusa ma lo smanettamento è inutile

    Il log degli errori di apache cosa riporta?
    Le versioni recenti di php, di default hanno la visualizzazione degli errori disabilitata.
    Nel tuo php.ini ci dovrebbero essere dei commenti:
    codice:
    ..............
    ;;;;;;;;;;;;;;;;;;;
    ; Quick Reference ;
    ;;;;;;;;;;;;;;;;;;;
    ; The following are all the settings which are different in either the production
    ; or development versions of the INIs with respect to PHP's default behavior.
    ; Please see the actual settings later in the document for more details as to why
    ; we recommend these changes in PHP's behavior.
    
    ; display_errors
    ;   Default Value: On
    ;   Development Value: On
    ;   Production Value: Off
    
    ; display_startup_errors
    ;   Default Value: Off
    ;   Development Value: On
    ;   Production Value: Off
    
    ; error_reporting
    ;   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
    ;   Development Value: E_ALL
    ;   Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
    
    ; html_errors
    ;   Default Value: On
    ;   Development Value: On
    ;   Production value: On
    
    ; log_errors
    ;   Default Value: Off
    ;   Development Value: On
    ;   Production Value: On
    
    ...............
    non devi decommentare, ma andare a cercare le varie direttive e abilitare la visualizzazione degli errori. ad esempio:
    codice:
    ; This directive controls whether or not and where PHP will output errors,
    ; notices and warnings too. Error output is very useful during development, but
    ; it could be very dangerous in production environments. Depending on the code
    ; which is triggering the error, sensitive information could potentially leak
    ; out of your application such as database usernames and passwords or worse.
    ; It's recommended that errors be logged on production servers rather than
    ; having the errors sent to STDOUT.
    ; Possible Values:
    ;   Off = Do not display any errors
    ;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
    ;   On or stdout = Display errors to STDOUT
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/display-errors
    display_errors = On
    se poi vuoi approfondire, le direttive sono tutte documentate dal manuale php :
    http://php.net/manual/en/ini.php
    http://www.php.net/manual/en/ini.list.php
    http://www.php.net/manual/en/errorfu...rror-reporting
    http://www.php.net/manual/en/errorfu...display-errors
    etc.

    La pagina bianca molto probabilmente è un Fatal Error di php che non viene visualizzato, ma senza vedere nemmeno una riga di php...
    Lo stesso vale per il fatto che apache non partiva: controlla il log degli errori o posta la configurazione del virtualhost

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.