Author Topic: phpShield error just with php call  (Read 1867 times)

adam35413

  • Newbie
  • *
  • Posts: 93
phpShield error just with php call
« on: May 08, 2009, 10:05:45 AM »
(Moved from main boards)

I just upgrade my box from Ubuntu 7.10 to Ubuntu 8.04.  The php version is 5.2.4, which I believe is identical to 7.10.  I went to make sure everything still worked with my phpMotion server, and the site seemed fine.  However, when php is invoked directly, I am getting the well-known error:

Code: [Select]
Warning: dl(): Dynamically loaded extensions aren't enabled in /var/www/phpmotion/classes/config.php on line 2

I know there are plenty of posts about this.  The thing that mystifies me is that I have never had to mess with phpshield before I upgraded the server.  When I installed phpmotion the first time, I didn't need to touch up any php.ini file to make sure phpshield extensions were loaded explicitly.  When I tried to follow http:///how-to-install-phpshield-loaders/ to specify the extension explicitly, my apache error log complained, saying:

Code: [Select]
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs//var/www/phpmotion/phpshield/phpshield.5.2.lin'
I took out the extension declarations in the php.ini file and this error went away.  I don't see any other phpshield errors in the error.log.  I also tried copying the phpshield.5.2.lin file into my /usr/lib/php5/20060613+lfs folder, but that did not help either.

UPDATE: So it appears that the issue is not with apache.  I can display pages perfectly.  The issue is when php is invoked directly, such as when convertor.php is called.  I made a test file with a string declaration and then include ("classes/config.php").  I executed this with php, and I got the dynamic load error.

Any ideas?  ???
« Last Edit: May 08, 2009, 10:08:47 AM by adam35413 »

candeller

  • Newbie
  • *
  • Posts: 4
Re: phpShield error just with php call
« Reply #1 on: May 24, 2009, 05:59:42 AM »
Hi,

I got the same problem on ubuntu 9.0.4 server edition.

Pages load perfectly, but when the script 'convertor.php' is being called I am getting the phpshield error...

If anyone has resolved this, please, let us now.
Thanks.

riger99

  • Full Member
  • ***
  • Posts: 299
Re: phpShield error just with php call
« Reply #2 on: February 26, 2010, 01:12:32 PM »
I get almost the same error on 8 different physical servers:

Quote
PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/phpshield.5.2.lin' - /usr/lib/php5/20060613/phpshield.5.2.lin: wrong ELF class: ELFCLASS32 in Unknown on line 0

This from the very first attempt to load the page.

The plugin is enabled in the correct php.ini file directives:

Quote
extension_dir = "/usr/lib/php5/20060613/"
extension=phpshield.5.2.lin

Upon examination, using command:

Code: [Select]
php -i |grep extension_dir
Outputs:

Quote
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/phpshield.5.2.lin' - /usr/lib/php5/20060613/phpshield.5.2.lin: wrong ELF class: ELFCLASS32 in Unknown on line 0 extension_dir => /usr/lib/php5/20060613/ => /usr/lib/php5/20060613/
Quote

All are Ubuntu (9.x)/Debian based.

Anyone have a solution?
« Last Edit: February 26, 2010, 01:15:10 PM by riger99 »

riger99

  • Full Member
  • ***
  • Posts: 299
Re: phpShield error just with php call
« Reply #3 on: February 26, 2010, 02:15:06 PM »
Also, I found out that files like phpshield.5.2.lin, etc are NO LONGER AVAILABLE FOR DOWNLOAD from phpshield.com. Instead the formats are completely changed. The files look like "ixed.5.2.lin", etc.

I asked another coder and he suggested that the phpshield.5.2.lin that came with php motion is probably only 32 bit.

Anyone now where I can get a clean phpshield.5.2.lin 64Bit file?

frankie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5948
  • PHPmotion Developer
Re: phpShield error just with php call
« Reply #4 on: February 28, 2010, 03:06:53 PM »

here's the default 64 bit loaders