Programming/Bitnami WAMP

[Bitnami WAMP] phpMyAdmin 외부 접속 설정

DOTI 2016. 1. 15. 18:05
[Bitnami WAMP] phpMyAdmin 외부 접속 설정
반응형

Bitnami WAMP 의 phpMyAdmin 외부 접속을 위한 설정 방법




D:\Bitnami\wampstack\apache2\conf\original\httpd.conf


1
2
3
4
5
6
7
8
9
10
11
12
13
14
...
 
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
Listen 3306
 
...
cs


12번 라인 Listen 3306 추가 후 저장





D:\Bitnami\wampstack\apache2\conf\bitnami\bitnami.conf


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
...
 
<VirtualHost _default_:3306>
  DocumentRoot "D:/Bitnami/wampstack/apps/phpmyadmin/htdocs"
  <Directory "D:/Bitnami/wampstack/apps/phpmyadmin/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    <IfVersion < 2.3 >
      Order allow,deny                          
      Allow from all
    </IfVersion>
    <IfVersion >= 2.3 >
      Require all granted
    </IfVersion>
  </Directory>
 
  # Error Documents
  ErrorDocument 503 /503.html
 
  # Bitnami applications installed with a prefix URL (default)
  Include "D:/Bitnami/wampstack/apache2/conf/bitnami/bitnami-apps-prefix.conf"
</VirtualHost>
cs


기존 파일 내용의 마지막에 3~22번 라인의 내용을 추가 후 저장

D:/Bitnami/wampstack/apps/phpmyadmin/htdocs 부분은 설치 경로를 참고하여 수정





D:\Bitnami\wampstack\apps\phpmyadmin\conf\httpd-app.conf


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Directory "D:\Bitnami\wampstack/apps/phpmyadmin/htdocs">
    
    
# AuthType Basic
# AuthName phpMyAdmin
# AuthUserFile "D:/Bitnami/wampstack/apache2/users"
# Require valid-user
AllowOverride None
php_value upload_max_filesize 80M
php_value post_max_size 80M
 
<IfVersion < 2.3 >
Order allow,deny
Allow from 127.0.0.1
Satisfy all
</IfVersion>
<IfVersion >= 2.3>
#Require local
Require all granted
</IfVersion>
ErrorDocument 403 "For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname."
 
    
</Directory>
cs


기존의 18번 라인을 #(주석)처리 #Require local 한 후 19번라인 Require all granted을 추가 후 저장







아파치 서버를 재시작 한다






반응형