Error on 2-way php enabled feature

Error on 2-way php enabled feature SearchSearch
Author Message
marc bazimon
New member
Username: Marc_orange

Post Number: 32
Registered: 01-2007
Posted on Thursday, June 25, 2015 - 02:53 pm:   

Hi NowSMS team
I want to activate the accounting callback , in order to allow only scap v2 diameter request for only such number and let the subscriber goign on the current charging.
I did install the php , and the extensions
C:\Program Files\PHP>pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.7 stable
Console_Getopt 1.2.3 stable
Mail 1.2.0 stable
Net_SMTP 1.6.2 stable
Net_Socket 1.0.14 stable
PEAR 1.9.1 stable
Structures_Graph 1.0.3 stable
XML_Util 1.2.1 stable

When i want to test it , by clicking on the enable localk php processing , the nowsms program crash , like if the location that have to be found are not.
I set the smsgw.ini with the path of nowsms php but without success . each time the nowsms crash.
Do you have an idea why , the server are not connected to internet by the way.
Thx beforehand for your feedback ,
Br
Marc
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8116
Registered: 10-2002
Posted on Thursday, June 25, 2015 - 04:36 pm:   

Hi Marc,

We haven't seen this type of problem before, but when you enable this setting, the configuration utility scans your system looking for php-cgi.exe. It then saves this path to SMSGW.INI, so that the server can access PHP through the FastCGI interface.

Something must be going wrong with this file scan...although I can't imagine what.

To manually enable the PHP interface, add these settings to the [SMSGW] section of SMSGW.INI:

PHPEnable=Yes
PHP-CGI.EXE=F:\php\php-cgi.exe

Substitute the actual path for the above.

Changing this setting does require restarting the SMS service.

That said, I am concerned that the configuration program is crashing.

To find php-cgi.exe, NowSMS first checks for a directory specified by the PHPRC environmental variable. This is not set on my system, so I'm not sure the PHP installer sets it any more.

Next it checks directories in the PATH environmental variable.

Open a command prompt window, and issue the SET command to see if there are unusual settings for either of these variables. (Don't try to change them with the SET command as that will only affect that window.)

Next, it scans all fixed local hard drives...sort of like dir php-cgi.exe from the root of each hard drive.

Do you notice anything odd looking at dir /s or set?

-bn

Bryce Norwood
Now SMS/MMS Support
marc bazimon
New member
Username: Marc_orange

Post Number: 33
Registered: 01-2007
Posted on Friday, June 26, 2015 - 08:55 am:   

Hi Bryce ,
Thx for your feedback , by adding the PHP-CGI.EXE parameter on smsgw.ini , the nowsms programm don't crash anymore and now i have the location writing below the enablelocal php button.
I could now go forward on the MM9 implementation road^^
Thx
Marc