How to install phpmyadmin on nginx, web server .. in Ubuntu 16.04.
Step :
1) sudo apt-get instal phpmyadmin
2) have two choice, apache / lighthttpd.. select none with click ‘tab’ on your keyboard – then enter.
config : dbconfig-common, select no.
3) sudo gedit /etc/nginx/sites-available/default, copy this script in server{ ..copy here.. }
====
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
location ~* ^/phpmyadmin/(.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
==
4) restart nginx, sudo service nginx restart
5) open
if you getting a error, like this :
502 Bad Gateway.
nginx/1.10.0 (Ubuntu)
you must install php-fpm, with :
sudo apt-get install php5.6-fpm
where 5.6 is your php version.
6) restart again nginx, sudo service nginx restart
7) bingo!
===========
See this video for details.
Nguồn: https://codeigniterbrasil.com
Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-php/
Xem thêm Bài Viết:
- MDM là gì??? – Làm thế nào để tắt được MDM trên Macbook | Mẹo Vặt Macbook
- Người lao động nghỉ bị trừ lương || Tư vấn luật lao động
- Learn Emmet In 15 Minutes – Double Your HTML Coding Speed
- Giang Hồ Thanh Toán Nhau Trên Phố – Tập 4 – Giang Hồ Bắn Giết Nhau Trên Đường | Big Bang
- Lập trình Android A-Z – Bài 159: Fragment Create and add XML
Rahmat Aulia
April 23, 2020paten kali, how to combine phpmyadmin with codeigniter to config in nginx?
Иван Андреевич
April 23, 2020mysqli_real_connect(): (HY000/2002): No such file or directory
yash pandey
April 23, 2020what is the default login password
Mano b
April 23, 2020thanks , helped to configure in my cloud server subscribed from www.datasoft.ws
Jb Pido
April 23, 2020Does this work on apache2?
ViShAl UpArE
April 23, 2020Thanks Bro… You saved me from worries regarding phpmyadmin
Rahul Gaikwad
April 23, 2020Thanks man, You just save my day.
Rustam Sariyev
April 23, 2020Thanks bro good job
Charles Campista
April 23, 2020Thanks, the comments on the description help a lot.
CpanelBuzz
April 23, 2020Thanks Brother Worked!!!
Никита Землянухин
April 23, 2020thanks
Maurício Eugênio
April 23, 2020Nice!
Steve Obongo
April 23, 2020That was good
Bùi Thế Đô
April 23, 2020Thank you so much!
tweedie
April 23, 2020i lost 2 days, but u help.
tnx
Omar Elghandour
April 23, 2020thank you its work
Максим Епихин
April 23, 2020Thanks!!!
Jeyhun M
April 23, 2020Thank you very much Ambar!
Kelvin Kibugi
April 23, 2020Thank you man. Worked Perfectly.
AlgoBlog
April 23, 2020THANK YOU!
Mark James
April 23, 2020Nice job. Easy to follow and worked like a charm.
Thank you.
Raaz Kumar Com
April 23, 2020worked thanks can you explain rewriting in nginx
Marvin Skapar
April 23, 2020Thanks.. it's work on me…
keep sharing… 🙂
Marvin Skapar
April 23, 2020Nice Clip….
soldier soldier
April 23, 2020You saved me, man!
Hossein Bajan
April 23, 2020Thanks!
bigot-x
April 23, 20204:49 am… my friend, you saved me 🙂
Web Atom
April 23, 2020I am so gratefull I found this video!!!!!!! Thank you!!! Took me ages to figure out this and could have taken maybe two more ages if I didn't find this! Thank you!!! Awesome help!