Précédent   Forum des professionnels en informatique > PHP > Outils > phpMyAdmin
phpMyAdmin Forum d'entraide sur l'outil phpMyAdmin : installation, utilisation, etc. Avant de poster -> Cours phpMyAdmin
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 15/08/2007, 09h52   #1
Membre éclairé
 
Avatar de Space Cowboy
 
Inscription : avril 2005
Messages : 495
Détails du profil
Informations forums :
Inscription : avril 2005
Messages : 495
Points : 306
Points : 306
Par défaut Autoriser plusieurs IP pour PhpMyAdmin

J'aimerais pouvoir acceder a PhpMyAdmin a partir de deux IP en dehors du localhost.

Apparament dans la doc il faut utiliser : $cfg['Servers'][$i]['AllowDeny']['rules']

http://www.phpmyadmin.net/pma_localized_docs/fr/Documentation.fr.html#config

Mais j'ai un peu de mal à trouverla bonne syntaxe.
Space Cowboy est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 15/08/2007, 11h30   #2
En attente de confirmation mail
 
Inscription : juin 2002
Messages : 6 164
Détails du profil
Informations forums :
Inscription : juin 2002
Messages : 6 164
Points : 6 404
Points : 6 404
Code :
1
2
3
4
5
6
$cfg['Servers'][$i]['AllowDeny']['order'] = 'allow,deny';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
    'allow % from 127.0.0.1/8',
    'allow % from IP1/M',
    'allow % from IP2/M'
);


Mais vous pouvez configurer ces accès directement avec Apache (en admettant que ce soit lui) vu que les contrôles ne portent que sur l'adresse IP/nom.
julp est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/08/2007, 08h07   #3
Membre éclairé
 
Avatar de Space Cowboy
 
Inscription : avril 2005
Messages : 495
Détails du profil
Informations forums :
Inscription : avril 2005
Messages : 495
Points : 306
Points : 306
J'ai oublié que j'utiliser EasyPHP.
Pour les accès avec appache, j'ai fait un
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**/<?php
 
$i = 0;
$i++;
$cfg['blowfish_secret'] = '';
 
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysql';
 
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'MOTDEPASSE';
 
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
 
$cfg['Servers'][$i]['AllowDeny']['order'] = 'allow,deny';
$cfg['Servers'][$i]['AllowDeny']['order'] = array(	'allow % from 127.0.0.1/8',
									'allow % from 192.168.1.34/8'
								);
 
 
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
 
?>
J'ai toujours cette erreur 403
Citation:
Forbidden

You don't have permission to access /home/mysql on this server.
L'erreur vient d'ailleurs ?



EDIT : Elle l'était ...

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://localhost/bar
 
    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
	Alias /images_easyphp "${path}/home/images_easyphp"
	Alias /home/mysql "${path}/phpmyadmin"
	Alias /home/sqlite "${path}/sqlitemanager"
	Alias /home "${path}/home"
 
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
	<Directory "${path}/home/images_easyphp">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
 
	<Directory "${path}/phpmyadmin">
        Options FollowSymLinks Indexes
        AllowOverride None
        Order deny,allow
        allow from 127.0.0.1
        allow from IPXXX.XXX.XXX.XXX
        deny from all
    </Directory>
 
	<Directory "${path}/sqlitemanager">
        Options FollowSymLinks Indexes
        AllowOverride None
        Order deny,allow
        allow from 127.0.0.1
        deny from all
    </Directory>	
 
	<Directory "${path}/home">
        Options FollowSymLinks Indexes
        AllowOverride None
        Order deny,allow
        allow from 127.0.0.1
        allow from IPXXX.XXX.XXX.XXX
        deny from all
    </Directory>
Space Cowboy est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 04h46.


 
 
 
 
Partenaires

Hébergement Web