ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  PHP Setup problem
Posted by Aidan on Apr-04-2012 23:29
Hi,

I'm setting up Chartidrector on a new machine, having succesfully put it on various others before.  But I can't get it to work adn am totally stuck...

When I initially tried to load a chart I got:


Trying to load "phpchartdir520.dll" from the PHP extension directory "C:\\Program Files\\PHP\\ext".
dl(): Not supported in multithreaded Web servers - use extension=phpchartdir520.dll in your php.ini

Also trying to load "phpchartdir520.dll" from "C:\\Aidan\\www\\fleague\\lib".
dl(): Not supported in multithreaded Web servers - use /Aidan\\www\\fleague\\lib/phpchartdir520.dll in your php.ini


So I entered the line "extension=phpchartdir520.dll" in my php.ini.  Now Apache will not start, giving error "The Requested Operation has Failed!".

Here are the further details given in the original error:

System Information
Operating System : Windows NT MV5055 6.1 build 7601
PHP version : 5.2.17
PHP / Web Server interface : apache2handler
PHP configuration file location : "C:\\Program Files\\PHP\\php.ini"
PHP extension directory : "C:\\Program Files\\PHP\\ext"

It is definitely "C:\\Program Files\\PHP\\php.ini" which I am editing (must be the right one anyway, or changing it wouldn't cause Apache to stop working!), and "C:\\Program Files\\PHP\\ext" definitely contains both phpchartdir520.dll and chartdir.dll.

What am I doing wrong?!

Thanks

Aidan

  Re: PHP Setup problem
Posted by Peter Kwan on Apr-05-2012 03:40
Hi Aidan,

To diagnose the problem, please try to see if you can obtain further information using the following methods:

(a) Please check the Apache error log. It may contain the detail cause of the error.

(b) You may consider to start Apache from the command line. See:

http://httpd.apache.org/docs/2.2/platform/windows.html

When Apache is started from the command line, some error messages may appear in the DOS window, so you can see the actual error messages.

(c) Please double check if phpchartdir520.dll and chartdir.dll are readable and executable by Apache (for testing, you may want to configure them so that they are readable and executable by "everyone").

(d) Are you using 64-bit PHP on 64-bit Windows compiled by yourself or a third party? ChartDirector for PHP on Windows currently only support 32-bit PHP, because it is the only officially pre-compiled PHP available. See:

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1332803075#N1332861518

Please kindly let me know what is the result.

Regards
Peter Kwan

  Re: PHP Setup problem
Posted by Aidan on Apr-05-2012 17:08
Hi Peter,

Thanks for the feedback.

The error log just says:

[Thu Apr 05 10:06:04 2012] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

But running from the command line gives a new error window:

"phpchartdir520.dll is wither not designed to run on Windows or it contains an error..."

Any ideas?

Thanks

Aidan

  Re: PHP Setup problem
Posted by Aidan on Apr-05-2012 17:28
Ah, got it!

The clue was in that extra error message... I think I had somehow ended up copying over my Windows version of the dll with the Linux version!

Replaced it and it's working now.

Thanks again for the help!

  Re: PHP Setup problem
Posted by Aidan on Apr-05-2012 17:10
Also, I checked the last two points - All users hve read and execute writes, matching other extensions such as php_curl, and I am running 32 bit.