View previous topic :: View next topic |
Author |
Message |
sometimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Jun 2005 Posts: 52
|
Posted: Tue Feb 07, 2006 5:08 pm Post subject: problemi con phpmyadmin [risolto] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
x-dd n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/149486187944018995470b0.png)
Joined: 19 Aug 2005 Posts: 68
|
Posted: Tue Feb 07, 2006 5:17 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
sometimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Jun 2005 Posts: 52
|
Posted: Tue Feb 07, 2006 5:21 pm Post subject: |
|
|
ma l'ip non è statico.
dovrei editare il file ogni volta che riavvio la macchina?
![Crying or Very sad :cry:](images/smiles/icon_cry.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
x-dd n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/149486187944018995470b0.png)
Joined: 19 Aug 2005 Posts: 68
|
Posted: Tue Feb 07, 2006 5:28 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
sometimes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Jun 2005 Posts: 52
|
Posted: Tue Feb 07, 2006 5:46 pm Post subject: |
|
|
da niubbo penso che sia qualche impostazione di apache... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Dun Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/9117618404081c6c67dcc8.gif)
Joined: 17 Apr 2004 Posts: 172 Location: Amsterdam (NL) / Venice (IT)
|
Posted: Thu Feb 09, 2006 6:09 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Dun Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/9117618404081c6c67dcc8.gif)
Joined: 17 Apr 2004 Posts: 172 Location: Amsterdam (NL) / Venice (IT)
|
Posted: Thu Feb 09, 2006 6:11 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Cazzantonio Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/195356323743686d76373d8.jpg)
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Thu Feb 09, 2006 8:58 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|