Start and Stop Nginx – Run Memcached as Daemon


stop nginx (ubuntu)

sudo /etc/init.d/nginx stop

start nginx

sudo /etc/init.d/nginx start

restart nginx

sudo /etc/init.d/nginx restart

start memcached in daemon mode with 128 MB RAM, which listens on localhost port 11211 :

memcached -d -m 128 -l 127.0.0.1 -p 11211

 

Advertisements

PHP’s MIME Type


application/x-httpd-php

if you want to offer your visitor to download php file, send this header:

Content-Disposition: attachment;
Content-Type:application/x-httpd-php