Home › Forum › Installazione WP › WP 2.3.3 non si configura: colpa di PHP5?
-
AutorePost
-
-
12 Febbraio 2008 alle 6:55 #5782salvomicPartecipante
salve,
in uno dei miei server (Debian 4 Etch, con PHP5) ho messo in passato due blog WordPress (2.2) ed è andato tutto ok, ora ho creato un altro blog e messo la 2.3.3 (allo stesso modo di come avevo fatto prima), ma non parte lo script di configurazione, invece dà una pagina bianca indicando errori tipo “il server potrebbe essere occupato”.
I dati di wp-config.php dovrebbero essere corretti (infatti se ne metto uno errato vedo i messaggi dello script di configurazione). Nei log del server sembra solo che WP cerchi le tabelle nel database senza trovarle: ma non dovrebbe crearle prima?
Visto che da quando abbiamo messo PHP 5 abbiamo problemini con altri sistemi, mi chiedo: non è che anche WP 2.3.3 ha problemi con PHP5, e quali?
Idee?
grazie, ciao
salvo
-
12 Febbraio 2008 alle 7:29 #50512SteveAglAmministratore del forum
Personalmente ho il server locale per test su PHP5 e se non erro anche WPIT sta girando su PHP5 (non ricordo se ho già scambiato su dreamhost.
Probabilmente qualche cosa sulla configurazione del tuo server, ma dire quale.. al momento non saprei.
-
13 Febbraio 2008 alle 18:39 #50559salvomicPartecipante
grazie SteveAgi,
mi consola saperlo.
Però non riesco a venirne a capo: sembra tutto a posto, ma lo script di installazione non si avvia, non scrive le tabelle nel DB, anzi sembra cercarle, e se ne esce sempre come “pagina non disponibile”…
grazie ugualmente
ciao
salvo
-
13 Febbraio 2008 alle 20:54 #50566salvomicPartecipante
Se può essere utile, nei logs il tentativo di installazione lascia la seguente riga:
«WordPress database error Table ‘dbasemioovviamentefalso.wp_options’ doesn’t exist for query SELECT option_value FROM wp_options WHERE option_name = ‘siteurl’»
Certo che la tabella non esiste: non l’ha mica ancora creata…
Idee?
-
14 Febbraio 2008 alle 7:11 #50572SteveAglAmministratore del forum
CHe quel messaggio appaia prima di aver creato le tabelle come fai a saperlo? Se fosse davvero cosଠTUTTI non riuscirebbero a fare l’installazione. Prova l’installazione alternativa, non creare a mano il file config ma lancia l’installazione ed il file verrà creato da WP dopo che ti avrà chiesto i vari parametri.
-
14 Febbraio 2008 alle 13:47 #50607salvomicPartecipante
Il messaggio lo leggo nei logs, e lo scrive contestualmente allo script di installazione (che non prosegue). E` facile saperlo (avendo accesso ai logs del proprio server)
Provato a fare la configurazione come dici tu (dopo aver dato alla cartella del blog i diritti di scrittura): scrive i dati, poi si ferma con “wp-admin/install.php” che non riesce a scrivere nulla nel database (che pure funziona).
Bah…
ciao
salvo
-
14 Febbraio 2008 alle 13:54 #50610wollyAmministratore del forum
i log di mysql ?
l’utente ha i permessi per creare il db ?
-
14 Febbraio 2008 alle 14:05 #50611salvomicPartecipante
sà¬, l’utente è abilitato a creare il DB e amministrarlo.
Nei log mysql nulla.
grazie, ciao
-
14 Febbraio 2008 alle 14:11 #50613SteveAglAmministratore del forum
SI ferma senza messaggi? strano.. visto che hai accesso a tutto abilita tutti i messaggi di errore in PHP e vediamo che spara fuori.
-
14 Febbraio 2008 alle 14:22 #50614wollyAmministratore del forum
provato a riavviare sia il server che mysql ?
ormai si va per tentativi
-
14 Febbraio 2008 alle 14:30 #50615salvomicPartecipante
@ Steve Angel:
grazie, ma non ho accesso proprio a tutto (ok ftp, creazione database via phpmyadmin, ecc…, ma non SSH e shell, purtroppo).
Provo a fare qualcosa, come dici…
@ wolly
non posso farlo io, chiedo a chi me lo amministra
vada per i tentativi, magari ci riusciamo
salvo
-
14 Febbraio 2008 alle 14:42 #50616wollyAmministratore del forum
potresti fare un’altra prova (na schifezza lo so) installalo su un server dove hai già installato wp funzionante, poi fai il backup come da wiki e lo importi nel nuovo db, modifichi i path in wp-option e vediamo se funziona il blog.
-
14 Febbraio 2008 alle 14:45 #50617salvomicPartecipante
Farò anche questa prova, ok.
Provo a metterlo dove già ci sono i due blog precedenti (il server è lo stesso, il dominio no)…
-
14 Febbraio 2008 alle 14:49 #50618wollyAmministratore del forum
domandona ma il dominio è già attivo ?
perchè già un altra volta abbiamo perso n sacco di tempo e poi il dominio non era attivo
-
14 Febbraio 2008 alle 15:24 #50623salvomicPartecipante
wolly, non sono cosଠstupido
certo che è attivo, ci mancherebbe
Fatta la prova: la 2.3.3 non si installa neppure nel dominio dove già funzionano i due blog WP (2.2), provato anche a cambiare utente nel config: neppure con root si configura (stessi errori e pagina vuota)
Ho anche rimesso tutto daccapo…
un mistero.
Cercherò di capirne con gli amministratori.
Grazie dell’aiuto, presente e futuro
ciao
salvo
-
14 Febbraio 2008 alle 15:29 #50625wollyAmministratore del forum
aspetta un attimo.
altro test fatti aumentare la memoria in php.ini almeno a 32mb
-
14 Febbraio 2008 alle 15:33 #50626ArturoPartecipante
wp 2.3.3 con php5 funziona, in locale ho la 2.3.3 e php5 e funziona tutto. sul mio server (linux) ho php5.2.5 e anche li con wp2.3.3 funziona tutto alla perfezione, per info maggiori ho provato anche php5 con il modulo fastcgi e anche in quel caso funzionava tutto.
magari non serve a risolvere il problema pero’ certifica che magari il problema e’ a livello del server…
-
14 Febbraio 2008 alle 15:42 #50627salvomicPartecipante
@ wolly
ok, in effetti memory_limit (ti riferisci a questo?) è 16 mb, la faccio portare a 32 o più.
@ Arturo
grazie del check.
era l’ipotesi da cui partivo, ma forse i problemi sono altri, o parametri php.ini o scrittura sul database, forse…
letto il post di ricman in merito a “dominio terzo livello”, ho controllato: sia con blog.miodominio.org sia con miodomino.org/blog stessa cosa, quindi – almeno qui – il dominio terzo livello non dovrebbe entrarci. Forse
ciao
-
14 Febbraio 2008 alle 16:05 #50629SteveAglAmministratore del forum
Se identifichi il problema faccelo sapere che eventualmente apro un ticket per corrggerlo nelle future versioni, se fosse colpa di WP. Grazie
-
14 Febbraio 2008 alle 16:10 #50630salvomicPartecipante
Se identifichi il problema faccelo sapere che eventualmente apro un ticket per corrggerlo nelle future versioni, se fosse colpa di WP. Grazie
certamente!
spero non sia colpa di WP.
Intanto ho chiesto di aumentare il memory_limit in php.ini, come suggerisce wolly, e riprovare.
Vi farò sapere appena risolvo, se non ci saranno altri suggerimenti.
Grazie
-
14 Febbraio 2008 alle 17:10 #50632SteveAglAmministratore del forum
potrebbe dipendere da mysql, prova a vedere anche i log di mysql.
O i permessi dell’utente non sono corretti e o script non riesce a creare le tabelle e inserirvi i nuovi record oppure è il server mysql che non accetta connessioni remote, guarda qui
http://lists.mysql.com/mysql/200438
Cmq, hai provato ad installare phpmyadmin e vedere se riesci a interagire con il database?
-
14 Febbraio 2008 alle 17:22 #50633salvomicPartecipante
sà¬, phpmyadmin è ciò che uso; il database lo vedo e amministro bene, l’utente ha tutti i permessi (e anche con altri utenti c’è lo stesso problema), sembrano corretti; il database è locale (localhost) sullo stesso server; i log mysql non dicono niente…
per questo mi sembra tutto cosଠstrano.
I db e relative tabelle degli altri due blogs WP (2.2) stanno sullo stesso server (solo su un diverso dominio virtuale) e funzionano. Questo perché no?
grazie anche a te
ciao
-
14 Febbraio 2008 alle 19:12 #50634salvomicPartecipante
Aggiungo altri elementi.
Tanto per essere precisi, ho creato – sempre dentro la cartella del blog – un piccolo script per creare una tabella nel database (con gli stessi dati, utente, password, ecc…). Tutto ok: l’utente ha i permessi giusti, crea la tabella ecc…
Allora perché non funziona con gli script di WP?
Escluso, quindi, che utente, password, database (e quindi configurazione di wp-config.php) siano errati, esclusa la mancanza dei permessi dell’utente per il DB.
Sono dunque problemi di WP? Spero di no
salvo
-
14 Febbraio 2008 alle 20:36 #50638SteveAglAmministratore del forum
A questo punto potrebbe essere lo script di installazione che interagisce male con qualche configurazione del server. Per avere la conferma dovresti:
– installare il blog in locale (o da qualsiasi parte tu riesca ad installarlo)
– fare un export, tramite phpmyadmin, delle tabelle del blog che hai creato
– importare in file .sql nel database remoto
– copiare i file di WP da locale a remoto
in questo modo fai semplicemente uno spostamento di una installazione già funzionante da locale a remoto.
Ricordati di cambiare, tramite phpmyadmin, i due valori nella tabella wp_options: url e home devono avere come valore l’URL del blog remoto senza lo slash finale.
-
14 Febbraio 2008 alle 20:44 #50639salvomicPartecipante
thanks mrbrown, potrei pure fare cosଠ(e forse lo farò pure), ma mi interessa capire come fare a installare il blog direttamente sul server, visto che ne devo installare anche altri, poi.
Perché le versioni precedenti si sono installate (non ho mica cambiato nulla, intanto) e questa no?
Qualcosa che interagisce male? Tornerei a pensare a qualche configurazione di PHP5…
@ wolly
abbiamo aumentato memory_limit a 32 mb, ma non cambia nulla
salvo
-
14 Febbraio 2008 alle 20:54 #50640SteveAglAmministratore del forum
Tu fai una prova, giusto per vedere se è l’installazione che non va.
A quel punto restringi il campo delle ipotesi.
-
14 Febbraio 2008 alle 21:37 #50642salvomicPartecipante
D’accordo, farò la prova, appena risistemo mySQL sul mio Mac.
Intanto ho fatto anche questa prova: installata la versione 2.2 di WP con gli stessi dati, e funziona, l’installazione parte, ecc…
Dunque???
Che c’è di nuovo in 2.3.3 che non va, con la stessa configurazione?
Capita solo a me questo problema?
Ah, ho preso ovviamente qui la distribuzione: <http://www.wpitaly.it/wiki/Main/WordPressInItaliano>
ciao
salvo
-
14 Febbraio 2008 alle 21:59 #50643wollyAmministratore del forum
prova con la versione inglese da wordpress.org
-
14 Febbraio 2008 alle 22:03 #50644salvomicPartecipante
Provato oggi, ma non cambia. Però proverò di nuovo, chissà …
A quanto pare non sono il solo ad avere avuto questi problemi: guardate qui
<http://wordpress.org/support/topic/154648>
problemi connessi non solo a PHP5, ma anche a MySQL5 (ed è questo il mio caso)
però uno dice di averli avuti con la 2.3.1 e 2.3.2 e …risolti con la 2.3.3 (quella che non va qui…)
grrrr, che mistero!
salvo
-
15 Febbraio 2008 alle 12:33 #50655salvomicPartecipante
hola,
mettendo “error_reporting(E_ALL);” nel file di configurazione ho ottenuto questo errore:
Warning: Cannot modify header information – headers already sent by (output started at /home/******/www/blog/wp-config.php:4) in /home/*******/www/blog/wp-includes/pluggable.php on line 390 (
header("Location: $location");
)
riporto sotto il blocco che contiene la riga 390 di pluggable.php
intanto, che ne pensate?
salvo
---
// Cookie safe redirect. Works around IIS Set-Cookie bug.
// http://support.microsoft.com/kb/q176113/
if ( !function_exists('wp_redirect') ) :
function wp_redirect($location, $status = 302) {
global $is_IIS;
$location = apply_filters('wp_redirect', $location, $status);
if ( !$location ) // allows the wp_redirect filter to cancel a redirect
return false;
$location = wp_sanitize_redirect($location);
if ( $is_IIS ) {
header("Refresh: 0;url=$location");
} else {
if ( php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups
header("Location: $location");
}
}
endif;
-
15 Febbraio 2008 alle 12:59 #50656SteveAglAmministratore del forum
Che come si vede bene da quel pezzo di codice si cerca di ovviare a problemi con IIS e certe configurazioni FastCGI, siccome le configurazioni sono migliaia, tu ne hai una che da qualche problema.
Oltretutto quel tipo messaggio di errore normalmente appare sui server, quindi già di base il tuo server nasconde tutti gli errori… anche se la cosa non influisce sul funzionamento o meno.
Direi che occorre di certo indagare sulla configurazione del server ed eventualmente se identificate un problema con una data configurazione assolutamente immodificabile mi segnali i dettagli e vediamo di aprire un ticket o una discussione sulle mailing list tecniche per cercare una soluzione. Certo è che la versione è installata in centinaia di migliaia se non milioni di copie su migliaia di server differenti quindi capirai che non posso imputare la cosa a WordPress
-
15 Febbraio 2008 alle 13:09 #50658SteveAglAmministratore del forum
controlla se in
wp-config.php
ci sono righe vuote all’inizio e alla fine del testo, cioè prima e dopo i<?php
e?>
e poi, cosa c’è scritto nella riga 4 di
wp-config.php
? Mica c’è qualcheecho
o qualcheprint
? -
15 Febbraio 2008 alle 14:00 #50662SteveAglAmministratore del forum
aggiungo, che se puoi, dovresti far impostare l’error reporting di php a livello di php.ini cosà¬:
error_reporting = E_ALL & ~E_NOTICE
e togliere quella riga da wp-config.php
giusto per capire se ci sono errori… il mio sospetto è che c’è qualcosa che non va in wp-config.php.
Eventualmente puoi postare il contenuto qui?
-
15 Febbraio 2008 alle 14:57 #50666salvomicPartecipante
Salve,
rispondo ad entrambi, intanto con un grazie per la consulenza.
Per quanto riguarda l’errore suddetto ho anche toppato io, infatti avevo messo la riga “error_reporting(E_ALL);” subito all’inizio del file wp-config.php seguita da un echo, e ovviamente questo genera un header prematuro, scusate la sciocchezza, ehm.
Al momento non posso intervenire in php.ini, quindi penso di mettere l’error_reporting da qualche parte e vedere se spuntano errori (ma in effetti non ne spuntano mica).
Il wp-config.php, escludendo quelle cose, è come tanti altri, niente di più, e niente righe vuote prima e dopo i tags php.
Non voglio mica dare la colpa *ipso facto* a WP, ovvio, ma capire se ci sono idiosincrasie con la nuova versione, nel mio caso, visto che le vecchie funzionano bene (anche con lo stesso wp-config).
grazie, ciao
-
15 Febbraio 2008 alle 20:28 #50675salvomicPartecipante
…continuano le prove (abbiate pazienza):
Provando ad installare sullo stesso server e dominio WP 2.2 (con gli stessi dati del wp-config del WP 2.3.3 che vorrei installare) ottengo la creazione delle tabelle, ma i sottostanti warning, che magari possono aiutarci a capire cosa non va nel mio server o nella sua configurazione PHP.
Spero vogliate aiutarmi a capire, grazie
Ah, i warning compromettono qualcosa?
ciao
—
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in …/blog/wp-includes/capabilities.php on line 190
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in …/blog/wp-includes/capabilities.php on line 192
Warning: array_keys() [function.array-keys]: The first argument should be an array in …/blog/wp-includes/capabilities.php on line 235
Warning: array_reduce() [function.array-reduce]: The first argument should be an array in …/blog/wp-includes/capabilities.php on line 235
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /…/blog/wp-includes/capabilities.php on line 190
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in …/blog/wp-includes/capabilities.php on line 192
-
17 Febbraio 2008 alle 17:40 #50725salvomicPartecipante
Sviluppi:
non sono il solo ad avere questo problema:
sul forum di supporto: <http://wordpress.org/support/topic/155883>
qualcuno individua problemi nei files /includes/script-loader.php e wp-db.php con alcuni server.
Provato, come si consiglia, a commentare la riga 263 di wp-db.php, ma non cambia nulla.
Si suggerisce anche di sostituire (provvisoriamente) il file script-loader.php della 2.3 all’attuale (2.3.3), ma io non ce l’ho.
Dovrei fare la prova. Ma mi sto demoralizzando un po’, sigh.
ciao
salvo
-
17 Febbraio 2008 alle 18:00 #50726SteveAglAmministratore del forum
Le versioni precedenti italiane sono disponibili non pacchettizzate sull’SVN ufficiale:
-
17 Febbraio 2008 alle 18:56 #50732salvomicPartecipante
ok, grazie SteveAgl!
provo
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.