It is currently Tue Jun 18, 2013 2:20 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Adding PHP extensions
PostPosted: Sat Jun 25, 2011 8:11 pm 
Regular Tonidoid
Regular Tonidoid
Joined: Sat Jun 25, 2011 7:29 pm
Posts: 15

Hi all,

I'm trying to work out how to add PHP extensions to the windows version of Tonido.

I've added the required extension lines to php.ini, in the order they appear in another full php install i have running on apache.
extension=php_mbstring.dll
extension=php_exif.dll

I've also added equivilent lines to the main manifest.xml
<File Checksum="5f333569bdfdd5f13f1d6cac196b20d7" Path="php/ext/php_mbstring.dll" Executable="0">php_mbstring.dll</File>
<File Checksum="4e56546816b5a18a195a2c74c83cabb7" Path="php/ext/php_exif.dll" Executable="0">php_exif.dll</File>

As a last resort i copied a full PHP "install" to the root Tonido folder. Tonido loaded, however phpdevplugin pages simply timed out.

I'm wanting to get php_exif working because the "phpdevplugin" comes with sfgallery.php, which uses exif data.

Has anyone managed to add extensions?
Thanks


Offline
 Profile  
 Post subject: Re: Adding PHP extensions
PostPosted: Sat Jun 25, 2011 11:13 pm 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7397
Location: Dallas, USA

In theory all you need to do is to drop the extension dll in the extension directory and add it to the ini file.

Now the problem you might be running into is that there is a version mismatch between the PHP version we ship and then extension you have. You need to have the same version as what ships with Tonido.


Offline
 Profile  
 Post subject: Adding PHP extensions
PostPosted: Sun Jun 26, 2011 5:58 am 
Regular Tonidoid
Regular Tonidoid
Joined: Sat Jun 25, 2011 7:29 pm
Posts: 15

Ok, so Tonido is running PHP 5.3.2, I was using extensions from 5.3.1 so that's why they didn't work?

If I download 5.3.6 and replace the existing Tonido PHP files it should work ?


Offline
 Profile  
 Post subject: Re: Adding PHP extensions
PostPosted: Sun Jun 26, 2011 8:47 am 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7397
Location: Dallas, USA

Better if you get 5.3.2 extensions. But you could try 5.3.6.


Offline
 Profile  
 Post subject: Adding PHP extensions
PostPosted: Sun Jun 26, 2011 8:02 pm 
Regular Tonidoid
Regular Tonidoid
Joined: Sat Jun 25, 2011 7:29 pm
Posts: 15

5.3.6 didn't work, should I update manifest.xml with new checksums, or try to track down 5.3.2?


Offline
 Profile  
 Post subject: Re: Adding PHP extensions
PostPosted: Sun Jun 26, 2011 9:51 pm 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7397
Location: Dallas, USA

No you don't need to update manifest.xml at all. That is only for updates.
What is the error you are seeing. You can enable the logging in PHP.ini and see what error is reported when you try to start PHP. It might be best to get exact PHP version.


Offline
 Profile  
 Post subject: Adding PHP extensions
PostPosted: Sun Jun 26, 2011 11:51 pm 
Regular Tonidoid
Regular Tonidoid
Joined: Sat Jun 25, 2011 7:29 pm
Posts: 15

There isn't an error message, the test pages just sit there trying to load.
I'll try to track down 5.3.2, and also try logging and see what I get


Offline
 Profile  
 Post subject: Adding PHP extensions
PostPosted: Wed Jun 29, 2011 2:46 am 
Regular Tonidoid
Regular Tonidoid
Joined: Sat Jun 25, 2011 7:29 pm
Posts: 15

Still having issues with adding extensions, I've downloaded 5.3.2 and copied DLLs over but with no luck.

Any other ideas?
Was php compiled specifically to work with the Tonido server, or was it a standard download?


Offline
 Profile  
 Post subject: Re: Adding PHP extensions
PostPosted: Wed Jun 29, 2011 9:32 am 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7397
Location: Dallas, USA

nope, this was a standard download. We didn't compile PHP.
Unfortunately, I don't have any other ideas at this time. Does the PHP as CGI work under any other web server?


Offline
 Profile  
 Post subject: Adding PHP extensions
PostPosted: Wed Jun 29, 2011 8:58 pm 
Regular Tonidoid
Regular Tonidoid
Joined: Sat Jun 25, 2011 7:29 pm
Posts: 15

I'll try it under apache, tonight (Australia time)


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: