Ubuntu 12.04.2 LTS 환경에서 작성하였습니다.


apt-get install phpmyadmin


1. apache, lighttpd 둘 중 아무거나 선택
2. Configure database for phpmyadmin with dbconfig-common - NO


3. nginx.conf 파일의 server {} 사이에 넣어줌


location /phpmyadmin {
    root /usr/share/;
    index index.php index.html index.htm;
    location ~ ^/phpmyadmin/(.+\.php)$ {
        try_files $uri =404;
            root /usr/share/;
            fastcgi_pass unix:/var/run/php5-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME /usr/share$fastcgi_script_name;
            include fastcgi_params;
      }
    location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
            root /usr/share/;
          }
}
location /phpMyAdmin {
    rewrite ^/* /phpmyadmin last;
}

'Study > Ubuntu' 카테고리의 다른 글

Ubuntu - 디스크 정보 확인  (0) 2015.08.13
https 보안서버 구축 (SSL 사설 인증서 설치)  (0) 2015.05.27
Ubuntu - MariaDB 설치  (0) 2013.03.24
Ubuntu - nginx 컴파일 설치  (0) 2013.03.22
CentOS - eth0 자동 활성화 시키기  (0) 2013.02.23
Posted by theqoo
,