Pelajaran berharga dalam menjaga domain & hosting

Beberapa hari lalu, website co.id kantor istri gue tiba-tiba mati, dead, muerte, innalillahi. Otomatis mail-nya juga ngikutin (orang sejoli haha)…

Nah, setelah gue cek, ternyata expired. Gue bilang ke CEO kantornya kalau perlu diperpanjang. Masalahnya, si CEO ga tau apa-apa tentang domain dan hosting, soalnya si pendaftar domain-hosting udah resign, dan ga bisa dihubungi.

Continue reading

Accessing Drupal resources using an external file

I created an external PHP file and I wan’t to access all of my Drupal resources within that file. The path for the file might be like this:

  1. http://mydrupal.com/myfile.php, OR
  2. http://mydrupal.com/myfolder/myfile.php

Basically the file must be within Drupal’s directory. If outside, than it’s better to go with Drupal’s Services module.

Continue reading

Testing a three-legged and two-legged OAuth REST using Drupal 7.x, Services 7.x-3.2, Oauth 7.x-3.0, and PHP Client

This article is based on my drupal community documentation at http://drupal.org/node/1839550.

System
  • CentOS 6.3
  • PHP 5.3.18
  • PECL Oauth extension (install it via command pecl install oauth)
  • Drupal-7.17
  • Server URL: http://core.zeus.lan (you can use any URL BUT You SHOULD really going for HTTPS). You can read about setting up SSL certificate here
  • Client URL: http://localhost/oauth.php (this will be used below)
Modules

Continue reading

Connect Drupal-7.x (Linux) with SQL Server 2008R2 via NodeJS (Windows) Part 2 of 3

Part 2: Installation & Configuration of SSL for NodeJS.
Table of Content:
  1. Part 1: Installation & Configuration of SQL Server Driver for NodeJS.
  2. Concept
  3. Note
  4. Requirement
  5. Create Certificates
  6. Deploy NodeJS test server
  7. PHP Curl script example
  8. Part 3
Concept

In order to communicate securely, we need to encrypt the connection between our client (PHP) and server (NodeJS) via SSL protocol.

Continue reading

Connect Drupal-7.x (Linux) with SQL Server 2008R2 via NodeJS (Windows) Part 1 of 3

Part 1: Installation & Configuration of SQL Server Driver for NodeJS.

This EXPERIMENTAL article works only if you’re connecting to SQL Server with Drupal in Linux. If you use Windows for your Drupal, that’s another story (a lot simpler). Also if the Drupal module DBLIB is mature enough (pushed to main project) than this article might be obsolete.

Table of Content:
  1. Concept
  2. Why NodeJS
  3. Some drawbacks using this method
  4. System used for this build
  5. Requirements
  6. Driver Installation
  7. Driver Testing
  8. Part 2: Installation & Configuration of SSL for NodeJS.
Concept

Drupal communicates with SQL Server via a bridge in the form of custom module and custom server. This module will send query to the server and receive the results for further processing.

Continue reading