EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Problem Install extension php_sbb.dll in PHP 5.5.x

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#33835
Posted: 06/30/2015 05:40:22
by Sergio  (Basic support level)
Joined: 06/30/2015
Posts: 11

1. I copy the file php_sbb.dll
in the C: \ Program Files \ php \ ext

2. I copy the file libsbbphp.php
in the C:\Program Files\php\ext

3. I put it in your php.ini
extension = "C:\Program Files\php\ext\php_sbb.dll"
sbb.license_key = 6D52E ...

4. I checked the file phpinfo ()
but it does not load the library

5. I tested with HTTPBlackbox
result: SecureBlackbox extension NOT available

how do I fix?
Thank you in advance
#33839
Posted: 06/30/2015 10:38:46
by Dmytro Bogatskyy (EldoS Corp.)

Thank you for contacting us.

Quote
2. I copy the file libsbbphp.dll
in the C:\Program Files\php\ext

You should either add this path to the PATH system environment variable or you can copy this "libsbbphp.dll" library into same directory as the executable (for example, if you are running php-cgi it should be php binary directory and if you are running php-cli under apache it would be the same directory as httpd.exe). But adding this path to PATH system variable is the simplest way.
Quote
4. I checked the file phpinfo ()
but it does not load the library

After above changes you need to restart httpd server. If, still, there is no info about SecureBlackbox components in phpinfo() then please check error_log file.
#33848
Posted: 07/01/2015 15:11:49
by Sergio  (Basic support level)
Joined: 06/30/2015
Posts: 11

I'm back, that's what I did:


environment variables
C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Php;C:\Program Files\Apache\bin;C:\Program Files\Java\jre7\bin

file in the folder
C:\Program Files\Apache\bin\libsbbphp.dll

C:\Program Files\Php\ext\php_sbb.dll



PHP.ini

[PHP_ELDOS]
extension = "C:\Program Files\Php\ext\php_sbb.dll"

sbb.license_key = "6D52...6ADA"

file PHPINFO
https://www.dropbox.com/sh/0cc33daov7wpegw/AAC7qlL1Bfl6r1-psU0KOevZa?dl=0

http://dati.localhost/secure/http/Get/HTTPS_Get.php
Result:
SecureBlackbox extension NOT available



error.log
[Wed Jul 01 20:50:13.579215 2015] [mpm_winnt:notice] [pid 2208:tid 608] AH00455: Apache/2.4.7 (Win32) PHP/5.5.7 configured -- resuming normal operations
[Wed Jul 01 20:50:13.579215 2015] [mpm_winnt:notice] [pid 2208:tid 608] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Wed Jul 01 20:50:13.579215 2015] [core:notice] [pid 2208:tid 608] AH00094: Command line: 'C:\\Program Files\\Apache\\bin\\httpd.exe -d C:/Program Files/Apache'
[Wed Jul 01 20:50:13.579215 2015] [mpm_winnt:notice] [pid 2208:tid 608] AH00418: Parent: Created child process 2484
AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::bcee:ca48:78de:ffd5. Set the 'ServerName' directive globally to suppress this message
AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::bcee:ca48:78de:ffd5. Set the 'ServerName' directive globally to suppress this message
PHP Warning: PHP Startup: in Unknown on line 0
[Wed Jul 01 20:50:14.031616 2015] [mpm_winnt:notice] [pid 2484:tid 556] AH00354: Child: Starting 64 worker threads.

access.log
127.0.0.1 - - [01/Jul/2015:20:50:42 +0200] "GET /info.php HTTP/1.1" 200 94960
127.0.0.1 - - [01/Jul/2015:21:10:39 +0200] "GET /secure%5Chttp%5CGet HTTP/1.1" 404 213
127.0.0.1 - - [01/Jul/2015:21:10:51 +0200] "GET /secure%5Chttp%5CGet%5CHTTPS_Get.php HTTP/1.1" 404 227
127.0.0.1 - - [01/Jul/2015:21:11:02 +0200] "GET /secure/http/Get/HTTPS_Get.php HTTP/1.1" 200 3408
127.0.0.1 - - [01/Jul/2015:21:11:04 +0200] "POST /secure/http/Get/HTTPS_Get.php HTTP/1.1" 200 38
#33851
Posted: 07/01/2015 16:16:16
by Dmytro Bogatskyy (EldoS Corp.)

Hi,

Quote
environment variables
...

According to your phpinfo() there is no such path. See the "Apache Environment" section the "PATH" variable or "Environment" section and the "Path" variable.
You may follow this how-to to set the PATH system environment variable: http://php.net/manual/en/faq.installa....addtopath
Quote
extension = "C:\Program Files\Php\ext\php_sbb.dll"

According to your phpinfo() you are using 64-bit operating system and using 32-bit php and apache. The 32-bit process may not be able to access 64-bit "Program Files" folder. Therefore, it is better to place the extension outside of the "Program Files" or "Program Files (x86)" folder.

If you still having an issue with loading the extension, then please try to copy files:
Extensions\All\5.5\Release-x86\php_sbb.dll (as you have php 5.5 x86 and thread safety is enabled)
and
Libraries\All\Win32\libsbbphp.dll

to the C:\Windows\System32 folder.
and in php.ini set:
extension=php_sbb.dll

Also, you may try to modify some other options in php.ini to ensure that the correct php.ini file is loading.
#33862
Posted: 07/02/2015 08:47:02
by Sergio  (Basic support level)
Joined: 06/30/2015
Posts: 11

works ok now :-)
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.

Reply

Statistics

Topic viewed 1253 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!