Error in encoded ScriptCase application on LAMP

Hi,
I developed a project in ScriptCase 6 and encoded source code with IonCube, it is not running on LAMP server. Here is my apache error log file. Any Ideas?


[Sun Jun 09 06:29:55 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch configured -- resuming normal operations
[Mon Jun 10 12:29:22 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:25 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:28 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:29 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:32 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:33 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:35 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:36 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:46 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:46 2013] [error] [client 10.20.50.195] File does not exist: /var/www/scriptcase/prod/lib/img, referer: http://10.20.50.165/scriptcase/prod/lib/php/nm_ini_manager2.php?login
[Mon Jun 10 12:29:47 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:29:49 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:34:42 2013] [notice] caught SIGTERM, shutting down
[Mon Jun 10 12:34:47 2013] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.19 with Suhosin-Patch configured -- resuming normal operations
[Mon Jun 10 12:34:53 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:34:57 2013] [notice] child pid 8047 exit signal Segmentation fault (11)
[Mon Jun 10 12:34:57 2013] [notice] child pid 8048 exit signal Segmentation fault (11)
[Mon Jun 10 12:34:57 2013] [notice] child pid 8049 exit signal Segmentation fault (11)
[Mon Jun 10 12:34:57 2013] [notice] child pid 8050 exit signal Segmentation fault (11)
[Mon Jun 10 12:34:59 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:35:00 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:35:00 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:35:05 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:35:57 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:35:59 2013] [error] [client 10.20.50.195] File does not exist: /var/www/scriptcase/prod/lib/php/devel/conf/img/help.gif, referer: http://10.20.50.165/scriptcase/prod/lib/php/devel/iface/admin_sys_allconections_create_wizard.php?rand=a5300ae3f988a1a3
[Mon Jun 10 12:35:59 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:36:00 2013] [error] [client 10.20.50.195] File does not exist: /var/www/scriptcase/prod/lib/php/devel/conf/img/funil.gif, referer: http://10.20.50.165/scriptcase/prod/lib/php/devel/iface/admin_sys_allconections_create_wizard.php?rand=19c632840b832892
[Mon Jun 10 12:36:00 2013] [error] [client 10.20.50.195] File does not exist: /var/www/scriptcase/prod/lib/php/devel/conf/img/hide_funil.png, referer: http://10.20.50.165/scriptcase/prod/lib/php/devel/iface/admin_sys_allconections_create_wizard.php?rand=19c632840b832892
[Mon Jun 10 12:36:00 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:36:00 2013] [error] [client 10.20.50.195] PHP Notice: Undefined index: url_js_thirddevel in /var/www/scriptcase/prod/lib/php/devel/tpl/scriptcase/body_admin_sys_allconections_create_wizard_dados_rep.tpl.php on line 327, referer: http://10.20.50.165/scriptcase/prod/lib/php/devel/iface/admin_sys_allconections_create_wizard.php?rand=19c632840b832892
[Mon Jun 10 12:36:13 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:36:14 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:36:14 2013] [error] [client 10.20.50.195] PHP Warning: file_put_contents(/var/www/scriptcase/prod/lib/php/../../../conf/prod.config.php): failed to open stream: Permission denied in /var/www/scriptcase/prod/lib/php/devel/class/interface/nmConnection.class.php on line 293, referer: http://10.20.50.165/scriptcase/prod/lib/php/devel/iface/admin_sys_allconections_create_wizard.php?rand=19c632840b832892
[Mon Jun 10 12:36:14 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:36:14 2013] [error] [client 10.20.50.195] File does not exist: /var/www/scriptcase/prod/lib/php/devel/conf/img/help.gif, referer: http://10.20.50.165/scriptcase/prod/lib/php/devel/iface/admin_sys_allconections_create_wizard.php?rand=b39902276a7052ff
[Mon Jun 10 12:36:14 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:36:16 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:37:04 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:37:04 2013] [error] [client 10.20.50.195] File does not exist: /var/www/favicon.ico
[Mon Jun 10 12:37:07 2013] [error] [client 10.20.50.195] File does not exist: /var/www/scriptcase/prod/lib/php/devel/conf/img/help.gif, referer: http://10.20.50.165/scriptcase/prod/lib/php/devel/iface/admin_sys_allconections_create_wizard.php?rand=4166a25d88a1ff15

I see a lot of things: nonexistant files, undefined index, permission problems. It looks like a configuration problem to me. Can you run a simple sample.php?

Re: Error in encoded ScriptCase application on LAMP

Hi,
I created phpinfo file, encrypted and put in the root of server, it is working with no problem.

favicon.ico is requested from various browsers. You can simply put a favicon.ico in the requested location.
The other images you should search for on the server and see if the paths are correct.
You should be able to view the files in the browser directly by entering the complete path to the gif file.
On this one: PHP Warning: file_put_contents(/var/www/scriptcase/prod/lib/php/…/…/…/conf/prod.config.php): failed to open stream: Permission denied in /var/www/scriptcase/prod/lib/php/devel/class/interface/nmConnection.class.php on line 293, referer: http://10.20.50.165/scriptcase/prod/lib/php/devel/iface/admin_sys_allconections_create_wizard.php?rand=19c632840b832892
It is obiously a rights problem, so please check your .htaccess files, your httpd.conf and even your linux dir rights for the requested dir. Your server should have full read rights on the given dir.

Re: Error in encoded ScriptCase application on LAMP

[QUOTE=rr;14863]favicon.ico is requested from various browsers. You can simply put a favicon.ico in the requested location.
The other images you should search for on the server and see if the paths are correct.
You should be able to view the files in the browser directly by entering the complete path to the gif file.
On this one: PHP Warning: file_put_contents(/var/www/scriptcase/prod/lib/php/…/…/…/conf/prod.config.php): failed to open stream: Permission denied in /var/www/scriptcase/prod/lib/php/devel/class/interface/nmConnection.class.php on line 293, referer: http://10.20.50.165/scriptcase/prod/lib/php/devel/iface/admin_sys_allconections_create_wizard.php?rand=19c632840b832892
It is obiously a rights problem, so please check your .htaccess files, your httpd.conf and even your linux dir rights for the requested dir. Your server should have full read rights on the given dir.[/QUOTE]

I have no problem with fevicon.ico file. I gave 777 permissions to www-data but still not working. But sample encrypted snippet working for default permissions.

777 permissions can be overruled by .htaccess and httpd.conf settings.
But did you try to access the file var/www/scriptcase/prod/lib/php/devel/conf/img/help.gif directly via http:// ??
It probably resides in http://yoursite/scriptcase/prod/lib/php/devel/conf/img/help.gif