Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I heard that nginx is faster and since im on a VPS with low ram i thought id try it out.

I got through this tutorial http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian

But I now get the following error:

unknown directive "fastcgi_split_path_info" in /etc/nginx/sites-enabled/default:28

Anyone know what might be causing the problem? I cant find any reference to the problem on Google

Also I have heard conflicting things about Nginx vs Apache. Some say use one, some say the other. Im using allsorts such as rewrite rules, proxies etc. Am I setting myself up for a fall by using Nginx?

If I go for apache, does anyone know of anyway to tweak it so that it performs better on a low ram VPS?

Cheers Ke

share|improve this question
    
I have also tried that tutorial. I failed but not with the same error: serverfault.com/questions/122316/… –  Jonas Mar 19 '10 at 12:14

1 Answer 1

Because your repository uses an outdated version of nginx.

http://wiki.nginx.org/NginxHttpFcgiModule#fastcgi_split_path_info

As the manual states fastcgi_split_path_info requires >= 0.7.31 and your repo most likely ships 0.6.x.

Nginx has such rapid development that most default repos fail. Compile from source or find a repo that keeps it updated.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.