4月14日
本日はPhpmyadminのインストール。
を参考にインストールし
表示できるところまで行きました。
肝は設定ファイルでした。location phpmyadminの部分を切り貼りした場所がうまくなく何度か失敗しましたが、だいぶ勘所も復活し4回目くらいでうまくいきました。
cat /etc/nginx/sites-available/t-design
server {
listen 80;
server_name t-design1 www.t-design-lab.jp;
root /var/www/t-design;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
location ~ /\.ht {
deny all;
}
location /phpmyadmin {
root /usr/share;
index index.php;
location ~ ^/phpmyadmin.+\.php$ {
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
︙