|
PHP Installation debian 7 php 5.6 |
Posted by Jorge Eduardo on Jan-27-2015 09:44 |
|
Hi Peter I've just upgrade my debian 7 server, running on apache 2.2 and php 5.6.
However after updating the php.ini and copying the chartdir.lic, libchartdir.so and
phpchartdir540.dll to the new extension directory, I cant get chartdirector running
properly.
Checking the apache errror log I noticed this:
PHP Warning: PHP Startup: ChartDirector PHP API: Unable to initialize module\\nModule
compiled with module API=20100525\\nPHP compiled with module API=20131226\\nThese
options need to match\\n in Unknown on line 0
Thanks for your advice, What is missing here?
Jorge |
Re: PHP Installation debian 7 php 5.6 |
Posted by Jorge Eduardo on Jan-27-2015 10:56 |
|
Hi Peter some updates: I downloaded chartdirector latest version, uploaded the lib
contents to the extension folder, included the extension=phpchardirector560.dll line on
php.ini, uploaded the phpchartdir.php to the proper folder.
Again not working, here es is the error log, just after restarting apache2:
PHP Warning: PHP Startup: ChartDirector PHP API: Unable to initialize module\\nModule
compiled with build ID=API20131226,NTS PHP compiled with build
ID=API20131226,TS\\nThese options need to match\\n in Unknown on line 0
Operating System : Linux datelligent001 3.18.1-x86_64-linode50 #1 SMP Tue Jan 6
12:14:10 EST 2015 x86_64
PHP version : 5.6.4-1~dotdeb.1
PHP / Web Server interface : apache2handler
PHP configuration file location : "/etc/php5/apache2/php.ini"
PHP extension directory : "/usr/lib/php5/20131226-zts" |
Re: PHP Installation debian 7 php 5.6 |
Posted by Jorge Eduardo on Jan-27-2015 11:09 |
|
Last update, I uploaded the phpchartdir560mt.dll file, updated php.ini, restarted and is
working. Good, however I read in another post that TS or *mt.dll files put more load on
the server, so my question is, How can I use the NTS version instead of the TS version?
Does it really mean a larger load to the server?
Thanks, Jorge. |
Re: PHP Installation debian 7 php 5.6 |
Posted by Peter Kwan on Jan-27-2015 22:46 |
|
Hi Jorge,
The TS (thread-safe) and NTS (non-thread-safe) version refers to the type of your PHP
interpreter. The ChartDirector DLL needs to match the type of PHP, otherwise PHP will
refuse to load it. That's why there are phpchartdir56.dll (NTS) and phpchartdir56mt.dll (TS)
versions of the DLL.
If you want to use NTS, please change your system to use the NTS type of PHP. In this
case, you must use phpchartdir56.dll.
I am curious where do you obtain your Apache/PHP. Does it come as part of the Debian 7,
or is it a third party distribution?
Regards
Peter Kwan |
Re: PHP Installation debian 7 php 5.6 |
Posted by Peter Kwan on Jan-27-2015 23:04 |
|
Hi Jorge,
The TS and NTS edition of the ChartDirector DLL is of the same efficiency. In fact, there
are virtually the same, and the difference is in the "signature" which is used just to satisfy
the PHP. (As NTS PHP can only load DLL with the NTS signature, and TS PHP can only load
DLL with the TS signature.)
The efficiency difference is referring to your PHP interpreter. It is not sure why there needs
to be a "non-thread-safe" (NTS) edition of PHP. It could be due to efficiency reasons.
Traditionally Linux/Apache does not use multi-threading (it uses forking), so the NTS PHP is
sufficient. There is why the majority of PHP distribution on Linux is of the NTS type.
However, in your case, the PHP is of the TS type, so I am curious where does the PHP
distribution come from.
The NTS and TS types of PHP have been around for many years. May be there is no longer
any practical efficiency differences nowadays, so your Linux distribution uses TS PHP, or
may be your Linux Apache is using muti-threading in addition to forking.
Regards
Peter Kwan |
Re: PHP Installation debian 7 php 5.6 |
Posted by Jorge Eduardo on Jan-27-2015 23:28 |
|
Hi Peter, about tye question of where did I get my PHP version, its a third party, dotdeb,
https://www.dotdeb.org/, those guys provide new packages to debian in a way that can
be enhanced safely. Actually they keep the pace of latest releases, and I have updated
my server with latest release of php and mysql, very easy and well documented.
So thanks for your answer, |
|