Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problemi con phpmyadmin [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
sometimes
n00b
n00b


Joined: 25 Jun 2005
Posts: 52

PostPosted: Tue Feb 07, 2006 5:08 pm    Post subject: problemi con phpmyadmin [risolto] Reply with quote

scusate se non è la sezione adatta.

Ho installa phpmyadmin (senza la USE vhosts).
Uso apache2.
Se mi ci connetto da localhost tutto ok.
Se mi ci connetto da remoto, non mi fa vedere nessuna immagine (quella del titolo per esempio)
Da quello che ho capito io accade perchè l'immagine punta a http://localhost/phpmyadmin/imm.jpg
non a http://160.111.111.111/phpmyadmin/imm.jpg

Accade lo stesso anche con Drupal per esempio...

Qualche consiglio?


Last edited by sometimes on Tue Feb 07, 2006 5:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
x-dd
n00b
n00b


Joined: 19 Aug 2005
Posts: 68

PostPosted: Tue Feb 07, 2006 5:17 pm    Post subject: Reply with quote

Penso che dovresti editare questo file:
/usr/share/webapps/phpmyadmin/2.7.0_p1/htdocs/config.default.php

in particolare la riga:
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address

Non sono sicuro perchè io avevo fatto in un altro modo ma non mi ricordo, comunque la soluzione che ti ho proposto dovrebbe essere la più pulita.
Back to top
View user's profile Send private message
sometimes
n00b
n00b


Joined: 25 Jun 2005
Posts: 52

PostPosted: Tue Feb 07, 2006 5:21 pm    Post subject: Reply with quote

ma l'ip non è statico.
dovrei editare il file ogni volta che riavvio la macchina?
:cry:
Back to top
View user's profile Send private message
x-dd
n00b
n00b


Joined: 19 Aug 2005
Posts: 68

PostPosted: Tue Feb 07, 2006 5:28 pm    Post subject: Reply with quote

ehm forse è un altro il file da editare:
nano -w /var/www/localhost/htdocs/phpmyadmin/config.default.php

Per l'altro problema non saprei che dirti, ma penso che dovresti usare un ip statico.
Back to top
View user's profile Send private message
sometimes
n00b
n00b


Joined: 25 Jun 2005
Posts: 52

PostPosted: Tue Feb 07, 2006 5:46 pm    Post subject: Reply with quote

da niubbo penso che sia qualche impostazione di apache...
Back to top
View user's profile Send private message
Dun
Apprentice
Apprentice


Joined: 17 Apr 2004
Posts: 172
Location: Amsterdam (NL) / Venice (IT)

PostPosted: Thu Feb 09, 2006 6:09 pm    Post subject: Reply with quote

x-dd wrote:
Penso che dovresti editare questo file:
/usr/share/webapps/phpmyadmin/2.7.0_p1/htdocs/config.default.php

in particolare la riga:
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address

Non sono sicuro perchè io avevo fatto in un altro modo ma non mi ricordo, comunque la soluzione che ti ho proposto dovrebbe essere la più pulita.



Lascia stare la riga (lasica il valore di default ovvero localhost)
Code:

$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address



Per risolvere il tuo problema setta nel modo seguente la variabile PmaAbsoluteUri:
Code:

$cfg['PmaAbsoluteUri'] = '';
Back to top
View user's profile Send private message
Dun
Apprentice
Apprentice


Joined: 17 Apr 2004
Posts: 172
Location: Amsterdam (NL) / Venice (IT)

PostPosted: Thu Feb 09, 2006 6:11 pm    Post subject: Reply with quote

Dimenticavo, ovviamente devi prima:

Code:

cp config.default.php config.inc.php


E quindi modifica solo config.inc.php


Last edited by Dun on Thu Feb 09, 2006 9:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Thu Feb 09, 2006 8:58 pm    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
sometimes wrote:
scusate se non è la sezione adatta.

Bah se sapevi che la sezione non era adatta allora potevi postare subito in quella giusta...
Cos'è sadismo nei confronti dei moderatori?
O forse chiedevi scusa preventivamente? (mi ricorda un po' Benigni e Troisi che scrivono la lettera a Savonarola...)
Bah ogni tanto resto basito... :?

Comunque lo sposto perché mi sembra che non sia un thread contenente richieste di supporto per gentoo ma per apache...
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum