to be very honest… apache is a (complicated) monster… nginx setup also seems to me pretty complicated.

if you don’t need .htaccess support and want a simple to configure and fast webserver… you should have a look a lighttpd.

the full howto in a nicely formatted way can be found here.

my php.ini php.ini

nginx: how to fix the „/var/run/php5-fpm.sock failed (2: No such file or directory)“ error

cat /var/log/nginx/error.log

2014/02/14 19:13:16 [crit] 742#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.217, server: localhost, request: „GET /info.php HTTP/1.1“, upstream: „fastcgi://unix:/var/run/php5-fpm.sock:“, host: „192.168.0.54“

-> vim /etc/php5/fpm/pool.d/www.conf

# change the listen line from

;listen = 127.0.0.1:9000

# to

listen = /var/run/php5-fpm.sock

# restart php5 service

/etc/init.d/php5-fpm restart

-> check with browser if php is working now:

info.php

getting phpmyadmin to work

http://www.howtoforge.com/running-phpmyadmin-on-nginx-lemp-on-debian-squeeze-ubuntu-11.04

speed up things – php opcode caching / ram cache?

APC is a free and open PHP opcode cacher for caching and optimizing PHP intermediate code. It’s similar to other PHP opcode cachers, such as eAccelerator and XCache. It is strongly recommended to have one of these installed to speed up your PHP page.
APC can be installed as follows:

apt-get install php-apc

http://www.oneminuteinfo.com/2013/08/install-apc-opcode-cache-ubuntu-nginx.html

admin