cURL post JSON data on Windows

On Windows, the key to send JSON data is double-quotes like this -d "{\"name\":\"Spring Forever\"}" cURL to POST a JSON data curl -X POST localhost:8080/books -H "Content-type:application/json" -d "{\"name\":\"Spring Forever\",\"author\":\"pivotal\"}" References cURL – Post JSON data to Spring REST

PHP + Windows – Call to undefined function mysql_connect()

Install WordPress and hits the following error message : Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\nginx-1.12.1\www\wordpress\wp-includes\wp-db.php… Tested PHP 7.1.10 WordPress 4.8.3 Nginx 1.12.1 MySQL 5.7.17 Windows 10 Solution To install WordPress, PHP needs Mysql extension, to fix this, loads php_mysqli.dll in php.ini file. php.ini ; Directory in which the loadable extensions …

Read more

Nginx + PHP on Windows

This article shows you how to install and integrate Nginx and PHP on Windows. Tested Nginx 1.12.1 PHP 7.1.10 Windows 10 1. Install Nginx + PHP Basically, just download zip file and extracts it, no installation. To install Nginx Visit http://nginx.org/en/download.html Download nginx/Windows-1.12.2 Extract to C:\nginx-1.12.1 To Install PHP Visit http://windows.php.net/download/ Download PHP7.1 download VC14 …

Read more

php-cgi.exe – The application was unable to start correctly

Run php-cgi.exe and hits a pop up dialog showing the following error message : Application Error : The application was unable to start correctly (0xc000007b) Terminal c:\php7.1>php-cgi.exe -b 127.0.0.1:9123 Tested with PHP 7.1.10 on Windows 10 Solution To run PHP on Windows, you need to install Redistributable for Visual Studio, refer to the official PHP …

Read more

Windows 10 – Edit Hosts file

In this tutorial, we will show you how to add a mapping of IP addresses to host names in the Windows Hosts file. Windows Hosts file C:\Windows\System32\drivers\etc\hosts 1. Notepad – Run as Administrator In desktop, left-bottom search box, type notepad, right click on the notepad icon and select run as administrator. 2. Edit hosts 2.1 …

Read more

How to install Apache Ant on Windows

To install Apache Ant on Windows, you just need to download the Ant’s zip file, and Unzip it, and configure the ANT_HOME Windows environment variables. Tools Used : JDK 1.7 Apache Ant 1.9.4 Windows 8.1 1. JAVA_HOME Make sure JDK is installed, and JAVA_HOME is configured as Windows environment variable. 2. Download Apache Ant Visit …

Read more

Windows 8.1, black screen with movable cursor

Here’s the scenario, morning wake up and find out my Windows 8.1 is displaying a black screen upon boot, no login screen, but a movable white cursor, random clicks will display the small loading icons? Problem : Black screen upon boot, movable cursor. Unable to display the Windows login screen. Detail : Windows 8.1 64 …

Read more

How to run MongoDB as Windows Service

This Article is outdated! Please refer to this latest guide to install MongoDB as Windows Service. A guide to show you how to installed MongoDB on Windows. 1. mongod –help Get to know all the Windows service related commands by typing “mongod –help“. C:\MongoDB\bin>mongod –help Windows Service Control Manager options: –install install mongodb service –remove …

Read more

How to install MongoDB on Windows

In this tutorial, we will show you how to install MongoDB on Windows. MongoDB 2.2.3 Windows 7 Note The MongoDB does not require installation, just download and extracts the zip file, configure the data directory and start it with command “mongod“. 1. Download MongoDB Download MongoDB from official MongoDB website. Choose Windows 32 bits or …

Read more

How to access Windows shares in Ubuntu

Problem Ubuntu doesn’t has build-in tool for browsing or accessing the Windows share in network. Is there any ways to access the Windows share in Ubuntu? Solution Ubuntu has smb installed by default, you can use smb to access the Windows shares. 1. File Browser Open “Computer – File Browser”, Click on “Go” –> “Location…” …

Read more

How to install Apache Http server in Windows

Installing Apache Http server in Windows is more easier than Linux. See my following posts for installing Apache http server in Linux system 1) How to install Apache Http server in Fedora Core 2) How to install Apache Http server in Ubuntu The steps are quite straight forward, download the binary installation and install it. …

Read more