Home › Forum › Problemi Vari con WP › Avere due siti wordpress in locale (database distinti)
-
AutorePost
-
-
27 Novembre 2010 alle 16:57 #15795bacoPartecipante
Salve ragazzi, ho qualche problemino a creare in locale due siti separati.
Ho seguito passo passo la vostra ottima guida e sono riuscito a realizzare tranquillamente il primo sito, ora però vorrei creare un altro, non legato al primo.
Ho riseguito la guida un’altra volta creando quindi due database, riscaricando wordpress ecc, però quando vado in http://localhost/-> Your Projects-> sitonumero2 mi esce la schermata: The requested URL /sitonumero2/wp-admin/install.php was not found on this server.
Andando (come fatto la prima volta) sul file install.php mi esce la schermata: Error: PHP is not running
Con più sotto scritto: ‘ . __( ‘Already Installed’ ) . ‘
‘ . __( ‘You appear to have already installed WordPress. To reinstall please clear your old database tables first.’ ) . ‘
Ora il php dovrebbe essere apposto credo dato che tutte le schermate di verifica proposte nella guida mi danno esito positivo. Inoltre il sito numero 1 funziona tranquillamente ancora adesso.
Nella guida non ho avuto chiaro però la sezione Host Virtuali, magari è lଠil mio errore. Io ho editato cosà¬:
Host Virtuali
<VirtualHost 127.0.0.1>
DocumentRoot “C:wampwww”
ServerName localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot “C:wampwwwsitonumero1.com”
ServerName local.sitonumero1.com
ErrorLog logs/sitonumero1_error.log
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot “C:wampwwwsitonumero2.com”
ServerName local.sitonumero2.com
ErrorLog logs/sitonumero2_error.log
</VirtualHost>
Questi link riportati nella guida funzionano cosଠcome per il sitonumero1:
http://local.sitonumero2.com/phpinfo.php
http://local.sitonumero2.com/test.php
Dove sbaglio secondo voi?
Spero qualcuno possa aiutarmi,
buona serata Nicola:)
-
28 Novembre 2010 alle 15:38 #79024bacoPartecipante
Copiando tutto il database del sitonumero1 nel database del sitonumero2.
Facendo cosଠil sitonumero2 finalmente si vede (una copia del 1) ma se tento il log in mi porta al log in del sitonumero1. Quindi segno che ci sta un conflitto tra i due wordpress.
-
28 Novembre 2010 alle 16:52 #79028SteveAglAmministratore del forum
Inella tabella option del DB ci sono dei riferimenti alla URL del blog.. cambiando quella o usando le spiegazioni dell’articolo mamma ho perso il sito sul nostro blog.. voilà
-
28 Novembre 2010 alle 17:16 #79029bacoPartecipante
Ciao Steve, grazie per la risposta.
edit:
Ho cambiato sia home sia siteurl. Adesso finalmente vedo il sito con il suo nome, però se tento di raggiungere il pannello admin (http://localhost/WordpressII/wp-login) mi esce fuori questo messaggio:
The requested URL /WordpressII/wp-login.php was not found on this server.
edit: sଠci sono riuscito! Grazie^_^
Era un errore stupido, praticamente avevo chiamato il tutto “wordpress II” e lo spazio creava problemi come è ovvio che sia quando si parla di URL.
Grazie ancora, che vergogna^^
-
28 Novembre 2010 alle 17:46 #79030SteveAglAmministratore del forum
QUello è un messaggio del serve non Ddi WP quindi è qualche configurazione del server…
-
21 Febbraio 2011 alle 23:36 #81589bacoPartecipante
Salve ragazzi, mi permetto di uppare questo topic perchè è sorto un nuovo problema.
Il mio secondo sito funziona, posso entrare nel pannello admin, creare articoli ecc.
Vi è però un problema. Se nell’homepage clicco sul titolo di un articolo viene caricata una pagina 404 con il template del mio primo sito…
Non so proprio cosa dover cambiare e da cosa è determinato l’errore. Si apre la schermata 404 del primo sito, anche se nell’url in alto nella barra degli indirizzi il sito resta il secondo (nel senso localhost.wordpressII ecc però viene caricato wordpressI).
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.