|
Reg dll error |
Posted by kannanraju on May-27-2011 20:01 |
|
Dear peter,
We have shared Linux server. We are working with your open source chart directory. We have worked in local host along with procedures stated. It worked well. But we need to host it in our shared linux server. Please help to go further. When we have communicated with with help desk they told that it is not possible to load your .dll files since we have a shared hosting. We don?t have any idea to go further. With help of you we believe that we can go a head.
the error is
Error Log
Trying to load "phpchartdir520.dll" from the PHP extension directory "c:/wamp/bin/php/php5.3.3/ext/".
Fatal error: Call to undefined function dl() in C:\\wamp\\www\\chartdirector\\lib\\phpchartdir.php on line 44 |
Re: Reg dll error |
Posted by Peter Kwan on May-28-2011 01:50 |
|
Hi kannanraju,
I assume the error message you mentioned is not the real error message. (It seems to be from a Windows machine, not the "Linux" server you mentioned.)
Many of our customers are using ChartDirector on shared Linux servers. The followings are some suggestions:
(a) If you have not yet chosen a hosting company (or if you can change host), you can always choose a host that can support custom "php.ini". Recently, we have seen a few hosting companies mount the user hard disk partitions with the "noexec" flag. The "noexce" is a Linux OS feature and it disables all binary executables (including all shared objects) in that disk partition. So you would need to ask the hosting company to ensure the hard disk is not mounted as "noexec".
(b) You may also consider to use a "virtual private server" hosting plan allowing root access. Nowadays, the cost of this type of hosting is competitive with traditional shared hosting. With root access, you can perform anything you like as if the machine is owned by you, so you can freely install ChartDirector or anything you like.
(c) If you must use a certain hosting company and must use shared hosting, many hosting companies nowadays allow their customers to use a custom "php.ini". You may search the support forum of your hosting company (eg. using the keyword "custom php.ini") to see if there are any instructions. Some hosting companies may provide a "control panel" to allow you to enable a custom "php.ini". Some hosting companies will enable this feature only if you ask. By being able to use your own "php.ini", you can install any PHP extension (such as ChartDirector) easily (assuming the hard disk partition is not mounted with "noexec").
(d) You can consider to use PHP 4.x or PHP 5.2.4 or below if such option is available. Many hosting companies nowadays allow a choice of PHP 4 or PHP 5. These PHP versions allow you to install PHP in your private directory. (These features are removed in PHP 5.2.5 or above.)
(e) If your web site supports CGI (99.5% of hosting accounts support CGI), you may configure your system to use a private instance of the PHP interpreter instead of the default PHP interpreter provided by your system. The usual method is to use ".htaccess" to redirect the PHP request to your own CGI script. In your CGI script, you may forward the request to the CGI PHP interpreter, with an environmental variable to tell it to use your own private "php.ini".
Finally, if you can private a guest account to me to allow me to upload files to your web server document and CGI directories, I can try to install ChartDirector for you. You may email the details to me at pkwan@advsofteng.net.
Regards
Peter Kwan |
Re: Reg dll error |
Posted by Peter Kwan on Jun-03-2011 06:22 |
|
Hi kannanraju,
Thanks for providing me with an account. I have just uploaded ChartDirector for PHP for Linux (i386) to your host, and then added a private "php.ini" to the "/ChartDirector/phpdemo" subdirectory, and ChartDirector works normally. The private "php.ini" contains two lines for the "extension_dir" and "extension"
You may go to the "/ChartDirector/phpdemo/index.php" of your site to see how it works.
You may look at the "php.ini" in the "/ChartDirector/phpdemo" subdirectory to see the exact lines.
Hope this can help.
Regards
Peter Kwan |
Re: Reg dll error |
Posted by Kevin Yilmaz on Aug-31-2011 23:58 |
|
Hi Peter,
On Linux:
I just added (extension=phpchartdir530.dll ) to php.ini under "...asoc.us/cgi-bin/php.ini".
(How can I restart Apachi in a shared hosting?)
http://asoc.us/ChartDirector/
"http://asoc.us/chart1.php" Gives this error:
---------------------------------------------------------------------------
Error Log
Trying to load "phpchartdir520.dll" from the PHP extension directory "/hsphere/shared/apache/libexec/php5ext/".
dl(): Unable to load dynamic library '/hsphere/shared/apache/libexec/php5ext/phpchartdir520.dll' - /hsphere/shared/apache/libexec/php5ext/phpchartdir520.dll: cannot open shared object file: No such file or directory
System Information
Operating System : Linux web909.opentransfer.com 2.6.18-274.el5xen #1 SMP Fri Jul 22 05:31:07 EDT 2011 x86_64
PHP version : 5.2.17
PHP / Web Server interface : cgi-fcgi
PHP configuration file location : "/hsphere/local/home/c33142/asoc.us/cgi-bin/php.ini"
PHP extension directory : "/hsphere/shared/apache/libexec/php5ext/"
----------------------------------------------------------------------
My hosting company support desk said:
(According to our system administrators main partition is not mounted with "noexec" flag. Only /tmp partition is mounted with this flag. That is common practice used due to security reasons and it has no effect on your account.)
I can edit php.ini under my websites cgi folder.
I don't have access to "/hsphere/shared/apache/libexec/php5ext/"
Is there any solution without pushing my hosting company to install lib folder under "/hsphere/shared/apache/libexec/php5ext/" ?
Thank you
Kevin |
Re: Reg dll error |
Posted by Kevin Yilmaz on Sep-01-2011 00:30 |
|
Hi Peter,
My PHP Version is 5.2.17
so I changed to extension=phpchartdir520.dll
PHP Info is here:
http://asoc.us/phpinfo.php
Thank you
Kevin |
Re: Reg dll error |
Posted by Peter Kwan on Sep-01-2011 05:33 |
|
Hi Kevin,
As according to the "ChartDirector for PHP" documentation, you would need to copy "everything" from "ChartDirector/lib" to your PHP extension directory.
Your PHP extension directory is currently at "/hsphere/shared/apache/libexec/php5ext/". If you do not want to use that directory (because you cannot access it), please change the PHP extension directory to another directory. (Since you have control of "php.ini", you can change the PHP extension directory to any path you like.) For example:
#Change the existing extension_dir line in your "php.ini" to the followings.
#If there is no existing extension_dir line, please add one as follows.
extension_dir=/hsphere/local/home/c33142/asoc.us/ChartDirector/lib
Hope this can help.
Regards
Peter Kwan |
Re: Reg dll error |
Posted by Kevin Yilmaz on Sep-01-2011 06:29 |
|
Thank you Peter,
We added these 2 line to php.ini and problem is resolved.
(
My domain is 'asoc.us'
'MyId' is my userId
)
include_path = .:/hsphere/local/home/MyID/asoc.us/ChartDirector/lib/:/hsaphere/shared/apache/libexec/php5ext/php/
extension_dir =/hsphere/local/home/MyId/asoc.us/ChartDirector/lib/
You can check yourself:
http://asoc.us/chart1.php
Thank you
Kevin |
|