How to install Composer on Debian / Ubuntu Linux

Posted on in Categories , , , , last updated August 2, 2016

I‘m trying to upgrade my Mediawiki installation and I’m getting an error that read as follows:
    Error: your composer.lock file is not up to date, run “composer update” to install newer dependencies
How do I install composer command for my PHP installation on Debian or Ubuntu Linux running LAMP or LEMP stack? How do I Install and use Composer on running Ubuntu Linux server and fix this problem for mediawiki installation and/or manage and install PHP packages and dependencies for my project?

Nginx: Allow All But Block Certain POST Request URLS For Selected Spammer IP Address/CIDR

Posted on in Categories , , , last updated December 2, 2013

I am a small business and ecom site owner. I also run a WordPress based blog to connect with my customers. However, I get too much spam from certain IPs and net-blocks. How do I block access to certain url(s) such as example.com/blog/wp-comments-post.php for selected IP address and CIDRs? How do I allow everyone including IP address 1.2.3.4 to access my blog but block IP address 1.2.3.4 accessing only example.com/blog/wp-comments-post.php? How do I block POST requests for selected IPs/CIDR on nginx?