Amazon Web Services - AWS EC2 - Ubuntu 14.04

PhpMyAdmin

Install phpMyAdmin on AWS Amazon EC2 - Ubuntu 14.04 .

 

 

  1. INSTALACIJA

#apt-get install phpmyadmin

VAŽNO: prilikom instalacije ne odabrati Apache server!!!

 

  1. u /etc/nginx/conf.d/  kreirati fajl  phpmyadmin.conf u koji se stavi

############## phpMyAdmin ########################

server {

      listen          88;
      server_name     localhost;
      root        /usr/share/phpmyadmin;
      index       index.php index.html index.htm;

      if (!-e $request_filename) {
          rewrite ^/(.+)$ /index.php?url=$1 last;
          break;
      }

      location ~ .php$ {
          try_files $uri =404;
          fastcgi_pass unix:/var/run/php5-fpm.sock;
          fastcgi_index index.php;
          include fastcgi.conf;
      }
}

 

 

NAPOMENA: Fajl phpmyadmin.conf automatski učitava direktiva

include /etc/nginx/conf.d/*.conf; u /etc/nginx/nginx.conf fajlu

 

  1. SIMBOLIČKI LINK (nije potreban)

ln -s /etc/nginx/sites-available/phpmyadmin.conf /etc/nginx/sites-enabled/phpmyadmin.conf

 

  1. restart NGINX i FPM

$sudo service php5-fpm restart

$sudo service nginx restart


Sada se phpMyAdminu pristupa sa http://52.28.170.245:88