Nginx won't update on Centos
9 Replies
Do a
whereis nginx
and it'll tell you where they are.
I assume you compiled the new version, if so find the old version's path (say it's /usr/sbin/nginx) then add –prefix=/usr to your configure line.
I did a whereis nginx and got this:
nginx: /usr/sbin/nginx /etc/nginx /usr/local/nginx /usr/share/nginx /usr/share/man/man3/nginx.3pm.gz
What should I do now?
so it'll be
./configure –prefix=/usr
the default for nginx is /usr/local/nginx.
rm -rf /usr/local/nginx
What do you mean by print out the new nginx path?
The binary will be installed in /usr/sbin/nginx
Any fix for it?
> location /phpmyadmin {
root /usr/share;
index index.php;
}
location ~ ^/phpmyadmin.+.php$ {
root /usr/share;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgiparam SCRIPTFILENAME /usr/share/phpmyadmin$fastcgiscriptname;
include fastcgi_params;
fastcgi_param HTTPS on;
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}