Comments on Running ownCloud 5.0 On Nginx (LEMP) On Debian Wheezy
This tutorial shows how you can install and run ownCloud 5.0 on a Debian Wheezy system that has nginx installed instead of Apache (LEMP = Linux + nginx (pronounced "engine x") + MySQL + PHP). nginx is a HTTP server that uses much less resources than Apache and delivers pages a lot of faster, especially static files.
5 Comment(s)
Comments
Hi Falko Thanks for the clear tutorial. I would like to point out that you set up PHP-FPM to run using TCP instead of a socket. This makes the vhost configuration inoperable. Specifically, "fastcgi_pass unix:/var/run/php5-fpm.sock;" should be replaced by "fastcgi_pass 127.0.0.1:9000;" or whatever the TCP connection was set up to. Also, php-fpm by default allows for only 2MB upload_max_filesize and 8M for post_max_size. This will limit the upload possibility to 2MB. Maybe make a note to adjust that in the tutorial? As a last remark, I'd advise against using any "if" structures in Nginx vhosts. I commented the rewrite as I was using it for a subdomain but Nginx community generaly advises against using "if" (see http://wiki.nginx.org/IfIsEvil) but to be fair I'm still a newbie user when it comes to Nginx so your use of If is probably completely justified :) regards Dietbrand
The docs actually say (http://wiki.nginx.org/IfIsEvil):
"Directive if has problems when used in location context...." meaning in relation to a location"directive" within a vhost configuration.
And that is not where it is used in this howto.
Good catch on the unix socket.
I followed your How To the letter and even the installation of nginx Before this one...
I tried to login with www.example.com and just got directed to a website and not owncloud.
Thank you so much for writing this. I have been looking for this EXACT example for vhosting owncloud on my existing webpage. I haven't tried it yet, but I plan on trying it today. I'll be bookmarking this page and attempting this on Linux mint along side nginx, in a WordPress based site. Be back tonight to report my success or issues.
I installed LEMP on my debian and now i want to install owncloud but i don't have the folder /var/www