Resolve Laravel and Node.js Integration Issue

Job ID: 39680205

Budget: ₹600 – ₹1,500 INR

Title: Fix Laravel + Node.js Integration for Call Masking on cPanel Server
Project Description:
We have a Laravel-based project hosted on cPanel (admin.reachb4u.com). It includes a controller that calls a Node.js script (direct_call.js) using Symfony’s Process component to initiate call masking between delivery agents and customers.

The Node.js script works locally, but on the server, it fails to initiate the call and returns a 404 or 500 error. We believe it is due to path issues, permissions, or incorrect configuration of the Node.js binary on cPanel.

What We Need:
Investigate and fix the Laravel controller that runs the Node.js script using Process.

Ensure the Node.js script runs successfully on the cPanel server.
Configure correct Node binary path (e.g., /opt/cpanel/ea-nodejs18/bin/node).
Ensure proper file and execution permissions for the Node.js script.

Test with sample API POST request and confirm masked call initiation.

Provide clear documentation of changes for future reference.

Tech Stack:
Laravel (PHP 8+)

Node.js (hosted on cPanel)

Symfony Process

API Endpoint: /api/v1/masked-call

Server: Shared Hosting with cPanel (Terminal/SSH access available)

Node.js Script Path: piopiy_node_example/direct_call.js

Access You’ll Get:
cPanel access

SSH access (if needed)

Laravel project code

Node.js script

API test parameters

Expected Outcome:
Node.js script is successfully triggered from Laravel controller on the server.

API call returns proper JSON response (success or failure with debug info).

Error Failed to initiate call is resolved.

Node environment is correctly configured on cPanel.

Timeline:
ASAP – Preferably within 1 day