Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Apr 18, 2010 11:00 am 
Offline
Junior Member

Joined: Sat Feb 27, 2010 12:43 am
Posts: 23
I currently have nginx/0.6.39 on centos. I tried installing the latest version 0.7.6.5 on the server. When I check the version using nginx -v, it still shows the old version. But when I do -v on the sbin it shows the latest version. How can I fix this problem? Is my server successfully updated?


Top
   
 Post subject:
PostPosted: Sun Apr 18, 2010 5:29 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
No your server isn't succesfully updated, I imagine you now have two copies of nginx.

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.


Top
   
 Post subject:
PostPosted: Sun Apr 18, 2010 9:56 pm 
Offline
Junior Member

Joined: Sat Feb 27, 2010 12:43 am
Posts: 23
Yes, I compiled from source for the new nginx.

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?


Top
   
 Post subject:
PostPosted: Mon Apr 19, 2010 12:44 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
did you restart it?


Top
   
 Post subject:
PostPosted: Mon Apr 19, 2010 1:34 am 
Offline
Junior Member

Joined: Sat Feb 27, 2010 12:43 am
Posts: 23
I tried restarting but doesn't help


Top
   
 Post subject:
PostPosted: Mon Apr 19, 2010 3:26 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You need to specify your prefix when comiling to /usr

so it'll be

./configure --prefix=/usr

the default for nginx is /usr/local/nginx.


Top
   
 Post subject:
PostPosted: Mon Apr 19, 2010 4:07 am 
Offline
Junior Member

Joined: Sat Feb 27, 2010 12:43 am
Posts: 23
Cool now it works after i recompile. THank you! How can i print out the new nginx path? Do I need to remove the old nginx files?


Top
   
 Post subject:
PostPosted: Mon Apr 19, 2010 4:20 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You might as well remove the old files just do

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


Top
   
 Post subject:
PostPosted: Mon Apr 19, 2010 4:38 am 
Offline
Junior Member

Joined: Sat Feb 27, 2010 12:43 am
Posts: 23
k done. I am now trying to add phpmyadmin to http://mywebsite.com/phpmyadmin but when I go to the url, I got the following error: "No input file specified. "

Any fix for it?

Quote:
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;
fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
include fastcgi_params;
# fastcgi_param HTTPS on;
}

location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;

}


Top
   
 Post subject:
PostPosted: Tue Apr 20, 2010 2:25 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
A quick google tells me that means php can't find the file you're trying to send to it (it's the equivalent of a 404 not found) so you're file paths are probably wrong. I personally don't use CentOS, or PHP FCGI so I'm not sure exactly what the issue is.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group