Nginx vs Apache

Ask questions about Arch Linux ARM. Please search before making a new topic.

Nginx vs Apache

Postby WarheadsSE » Mon Nov 14, 2011 1:48 pm

I know we've had to say this many time before, but I'll say it again: Apache is a hungry beast.

Please, review this article on ars technica as to the difference between Apache and our oft-recommended Nginx:
http://arstechnica.com/business/news/2011/11/a-faster-web-server-ripping-out-apache-for-nginx.ars

Did you know that the entire Arch Linux ARM website runs under Nginx?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Nginx vs Apache

Postby pepedog » Mon Nov 14, 2011 6:22 pm

I have a great fondness for apache. Think I might swap.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Nginx vs Apache

Postby eljohnsmith » Fri Dec 02, 2011 6:31 pm

Are there any guides on installing Nginx on Pogo Plug?
eljohnsmith
 
Posts: 10
Joined: Mon Jun 20, 2011 9:09 pm

Re: Nginx vs Apache

Postby johnnyvibrant » Fri Dec 02, 2011 8:44 pm

johnnyvibrant
 
Posts: 20
Joined: Mon Oct 18, 2010 9:20 pm

Re: Nginx vs Apache

Postby devr » Fri Jan 06, 2012 6:16 pm

Just a sanity check... anyone else using nginx ? Seems some of my requests get truncated.. and I see workers exiting in the error.log. Won't even get into issues with php-fpm.

$this->bbcode_second_pass_code('', '2012/01/06 13:13:25 [alert] 3405#0: worker process 3442 exited on signal 11
2012/01/06 13:13:25 [notice] 3405#0: start worker process 3443
2012/01/06 13:13:31 [notice] 3405#0: signal 17 (SIGCHLD) received
2012/01/06 13:13:31 [alert] 3405#0: worker process 3443 exited on signal 11
2012/01/06 13:13:31 [notice] 3405#0: start worker process 3444
2012/01/06 13:13:35 [info] 3444#0: *133 client 127.0.0.1 closed keepalive connection
2012/01/06 13:13:46 [notice] 3405#0: signal 17 (SIGCHLD) received
')
devr
 
Posts: 87
Joined: Wed May 11, 2011 12:22 am

Re: Nginx vs Apache

Postby jamez » Tue Jan 17, 2012 3:40 am

Yes, I'm running nginx and php-fpm, and I'm seeing the "worker process NNNN exited on signal 11". Actually I was googling that error when I found this post.

I basically followed the instructions in the wiki posted in this thread as far as nginx/php-fpm setup. I used localhost and port 9000 rather than unix sockets (took me a while to figure out that 'listen' param in php-fpm.conf defaults to unix scockets, so had to change that).

Anyway, php is not working well, presumably because of whatever is causing this error. Some scripts, such as one that just runs 'phpinfo()' will give me 'connection reset' on first attempt, but will give me correct output when I click 'try again' in browser (both generate the signal 11 error). Some basic 'hello world' scripts don't work at all.

This is running on my pink pogoplug.

Btw, I am also running Arch linux on x86, and setting things up in parallel between Arch/x86 and Arm/pogo, and the Arch nginx is not giving me errors. I installed nginx and php-fpm the same way, and they are using the same config files and php scripts. The versions are slightly different however:

Arm/pogo:
# pacman -Q nginx php-fpm
nginx 1.0.6-2
php-fpm 5.3.8-6

Arch/x86:
# pacman -Q nginx php-fpm
nginx 1.0.11-1
php-fpm 5.3.9-1
jamez
 
Posts: 6
Joined: Mon Jan 02, 2012 4:39 pm

Re: Nginx vs Apache

Postby kmihelich » Tue Jan 17, 2012 4:44 am

Try upgrading your system, versions should match up then.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Nginx vs Apache

Postby greenfly » Wed Jan 18, 2012 9:14 pm

Hi,

I also followed the guide in the archwiki to setup nginx and php-fpm.
nginx works fine, but php doesn't.

All I get is "File not found." In the error log I get
$this->bbcode_second_pass_code('', '2012/01/18 15:02:46 [alert] 1017#0: accept4() failed (38: Function not implemented)')

I googled this and got here: http://www.ruby-forum.com/topic/568054.
But this is from 2010 and, as I understood, already fixed?

I already upgraded everything to the newest version (via pacman -Syu)

--------------------
nginx 1.0.6-2

php 5.3.9-1
php-cgi 5.3.9-1
php-fpm 5.3.9-1

before, I was experimenting with cherokee and php, but then purged it. Maybe I left something that's now disturbing the fpm-php?

Thanks for your Help!
Sebastian
greenfly
 
Posts: 14
Joined: Thu Dec 01, 2011 7:26 pm

Re: Nginx vs Apache

Postby WarheadsSE » Wed Jan 18, 2012 9:16 pm

You've got an oxnas plug ? Maybe a device with a kernel < 2.6.38?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Nginx vs Apache

Postby greenfly » Wed Jan 18, 2012 9:25 pm

I got an Pogoplug Pro

2.6.31.6_SMP_820

ah okai... so I have to compile nginx myself then?
greenfly
 
Posts: 14
Joined: Thu Dec 01, 2011 7:26 pm

Next

Return to User Questions

Who is online

Users browsing this forum: No registered users and 37 guests