Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: roman.styler on October 04, 2010, 06:00:04 AM

Title: Problem with php5. Couldn't add sockets extension.
Post by: roman.styler on October 04, 2010, 06:00:04 AM
Hey guys!
I have a problem. I want to use php5 extension. But I need to have possibility to use sockets extension.
At /usr/local/lib/php.ini I saw string below:
extension=php_sockets.dll

I think it's mistake, because linux uses *.so libs. And finally I didn't find php_sockets.so at folder:
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/

Please help me. How can I add possibility to use sockets in php5. Thanks.
Title: Re: Problem with php5. Couldn't add sockets extension.
Post by: gutmensch on October 04, 2010, 10:40:25 AM
if php5.tcz was compiled with --enable-sockets, then it should work right out of the box without any "extension=sockets.so" command. phpinfo() should tell you the configure command. apache2-mod-php5 is compiled with builtin sockets, atm I'm "exporting" some of those.
Title: Re: Problem with php5. Couldn't add sockets extension.
Post by: roman.styler on October 04, 2010, 11:38:40 AM
As I found out, php wasn't complied with --enable-sockets. Because at output of phpinfo(); I didn't find any information about sockets. And If I try to use functions for create sockets I get errors. Php interpreter tells me that this function doesn't exist.
If it's true, I will have big problems because I don't how to compile application for linux.

>> apache2-mod-php5 is compiled with builtin sockets, atm I'm "exporting" some of those.
What do you mean. Can you tell mo about this?
Title: Re: Problem with php5. Couldn't add sockets extension.
Post by: gutmensch on October 04, 2010, 11:52:38 AM
if you use apache2 and apache2-mod-php5 you should be able to use sockets. if you run cli php scripts of course that is not helping ;-)

anyway you could contact the php5.tcz maintainer and kindly ask for resubmission with enabled sockets.
Title: Re: Problem with php5. Couldn't add sockets extension.
Post by: roman.styler on October 04, 2010, 12:36:38 PM
Thank you for help! Now I understand situation. Unfortunately, creator of php5.tcz is php.net. So it'll be hard to get version of php with socket support.
I think, I should read information about compiling software for tinycore (
Title: Re: Problem with php5. Couldn't add sockets extension.
Post by: gutmensch on October 04, 2010, 01:06:43 PM
You're welcome! The maintainer of php5.tcz is robc, you can contact him right here in this forum ;-)
Title: Re: Problem with php5. Couldn't add sockets extension.
Post by: roman.styler on October 04, 2010, 01:10:56 PM
Thanks a lot! Cool. I will try to do this right now.