KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

We are getting error "Could not execute phantomjs" #481

Open Matt Ford opened this topic on on Sep 25, 2018 - 10 comments

Matt Ford commented on Sep 25, 2018

We have migrated project on new centos server. Koolreport is not working here. We are getting below error

PHP Fatal error: Uncaught exception 'Exception' with message 'Could not execute phantomjs' in /home/zadmin/public_html/vendor/koolreport/packages/export/Handler.php:57

We checked with shell_exec("ls") command. It is working. Means shell_exec is working.

Let us know what we need to do to resolve same.

KoolReport commented on Sep 26, 2018

Could you please check the execute permission of the phantomjs execution file. Most of the time is the problem of permission

Matt Ford commented on Sep 26, 2018

Thanks for reply. File permission is set to 777. Still same issue.

KoolReport commented on Sep 26, 2018

Let try to go to folder "koolreport/packages/export/bin" and run

phantomjs --version

Please let me know if it returns version of phantomjs.

Matt Ford commented on Sep 26, 2018

[root@ip-172-31-25-12 bin]# ls

phantomjs

[root@ip-172-31-25-12 bin]# phantomjs --version

bash: phantomjs: command not found

KoolReport commented on Sep 26, 2018

I see, another test, if you insert the full path to the phantomjs;

/path/to/export/bin/phantomjs --version

does it run?

Matt Ford commented on Sep 26, 2018

[root@ip-172-31-25-12 ~]# /home/zadmin/public_html/vendor/koolreport/packages/export/bin/phantomjs --version

Segmentation fault

KoolReport commented on Sep 26, 2018

May I know about your Centos is 64 bit or 32 bit. The phantomjs version on our website is all 64bit. Also the phantomjs requires GLIBCXX_3.4.9 and GLIBC_2.7.

Matt Ford commented on Sep 27, 2018

Its x86_64.

Package glibc-2.17-222.el7.x86_64 already installed and latest version

Package libstdc++-4.8.5-28.el7_5.1.i686 already installed and latest version

As you can see both the packages are available still error.

PHP Fatal error: Uncaught exception 'Exception' with message 'Could not execute phantomjs' in /home/user/public_html/vendor/koolreport/packages/export/Handler.php:57

Matt Ford commented on Sep 27, 2018

Thanks a lot lot for your support. phantomjs was not installed on server. So command was not working. After installing phantomjs it koolreport worked.

KoolReport commented on Sep 27, 2018

Oh that's great :)

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
solved

None