Stopped after Upgrading to Windows 10 - Apache, Nginx, Web server, Wamp, XAMPP, Wampstack



So, you are also one of them who have recently upgraded to Window 10 and enjoying the next generation OS.

But the excitement didn’t last long as soon as you found that your web server has stopped working. Whatever application you might be using Wamp, Wampstack, XAMPP, Wnmp, LAMP, LEMP or Isolated installation of Apache / Nginx. It was stuck. And you also know that it is port 80 which is used by a web server is now being used by some other application. You might be wondering if it’s Skype which also listens to port 80 interrupted you web server and your web server (wamp, wampstack, XAMPP, Apache, Nginx) stopped. But it is also not the case.

Windows 10 comes with an automatically enabled service namely ‘World Wide Web Publishing Service’. ‘World Wide Web Publishing Service’ listens to port 80 and starts automatically. As port 80 is already occupied by ‘World Wide Web Publishing Service’, your Wamp, Wampstack, XAMPP, Apache, Nginx stopped starting.

You can stop the service as well as change its settings to start manually only. Go to services (type ‘services’ in Cortana or run box to find quickly) and stop the service ‘World Wide Web Publishing Service’ and voila your Wamp, Wampstack, XAMPP, Apache, Nginx have now started working. To avoid stopping the service with every boot up, you may also change the settings to Manually start it.

Ubuntu - phpinfo shows old version after PHP 7.0 upgrade

So, you are also among those who took peek sneak of php 7.0 using the ppa:ondrej.

And now after upgrading php7.0 version, you are still seeing old version in your phpinfo file. And, you might be seeing the updated PHP version while viewing in CLI (php -v).

So, all you need to do is to remove php7.0 (yes, remove php7.0) and then install it again. But make sure you run the commands in following order.

$ apt-get remove php7.0
$ apt-get remove php7.0-common
$ apt-get update
$ apt-get autoremove
$ apt-get update
$ apt-get install php7.0 php7.0-common
$ apt-get update
$ service [YOUR WEB SERVER SERVICE] restart

This should resolve your issue of PHP 7.0 version which was not showing correctly in the phpinfo file.

Twitter Errors: Bad Authentication data - Desktop applications only support the oauth_callback

Twitter authentication error:

Errors:
{“errors”:[{“message”:”Bad Authentication data”,”code”:215}]}

Could not retrieve a valid Token response from Token URL: Desktop applications only support the oauth_callback value 'oob' /oauth/request_token?oauth_consumer_key=XXXXXXXX

If you are getting errors like above while using twitter rest API, try below solutions.
1) Change API version from 1.1 to 1.0. So in your configuration options set 'version' => '1.0'
2) Set callback URL in twitter applcation setting. Don't leave it empty.

The above should resolve the errors with twitter Rest API authentication calls.

Sort by New Popular Ratings products Magento 2

How to add sorting options in Magento 2 on product listing and search results pages,

Here is a great extension to do it - http://www.magento2plugins.com/sort-by-new-popular-ratings-extension-for-magento2.html

Adds sorting options worth customers' interest. Allows easy controls in backend to enable/disable/set default sorting options.

Sort by New Popular and Ratings of products

This extension works as a plugin in Magento 2 software. It adds following product sorting options on Magento 2 products listing pages - new products, popular (best selling) products, most reviewed products, top rates products. It will be easier for the customers to see the new items at top and with the other options like sort by best selling and ratings will boost confidence of shopping. 
  • Implemented on Magento 2 plugins only
  • No control breaking configuration
  • 100% open source
  • Easy to enable/disable individual sorting option
  • Easy to manage different default sorting option for category pages