Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
780 views
in Technique[技术] by (71.8m points)

mysql - Adminer Nginx try to login but "Permission Denied"

So when my I already setup server and installed centOS 7.6, php 7.4.14, nginx 1.16.1, mariadb, and testing the server http://server_host_or_IP/info.php, and it worked.

After that I decided to setup Adminer, I put adminer-4.7.8.php to /usr/share/nginx/html/ and try to login using username:root & password, the respond was "session is expired please try to login again".

So I checked the info.php to check where the location of session.save_path I commit this command:

chown nginx:nginx /var/lib/php/session

And then:

 sudo chmod -R 777 /var/lib/php/session

When I try to login using username:root & pass it says permission denied. I even try to use:

sudo chmod -R 640 /var/lib/php/session

but its still says permission denied. Any solutions?

question from:https://stackoverflow.com/questions/65832738/adminer-nginx-try-to-login-but-permission-denied

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...