PHP on new DSM 3.0 doesn't work properly

Questions about hosting a Website, using MySQL and PhP may be posted here.
Forum rules
This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu

PHP on new DSM 3.0 doesn't work properly

Postby JustMy2Cents » Thu Sep 23, 2010 6:44 pm

Since DSM 3.0 my PHP script doesn't work anymore. I get this error:

Fatal error: Call to undefined function socket_create()

It worked before (it is a Wakeup on Lan script)..

Can someone please tell me how to solve this?
JustMy2Cents
Novice
Novice
 
Posts: 59
Joined: Mon Sep 15, 2008 8:34 am

Re: PHP on new DSM 3.0 doesn't work properly

Postby jahlives » Fri Sep 24, 2010 8:31 am

Is it possible that php have been compiled by Syno without --enable-sockets flag? Write a php file with content
Code: Select all
<?php
phpinfo();
?>

and check the output for the --enable-sockets flag.
jahlives
Enlightened
Enlightened
 
Posts: 414
Joined: Thu Nov 29, 2007 10:01 am

Re: PHP on new DSM 3.0 doesn't work properly

Postby JustMy2Cents » Fri Sep 24, 2010 9:18 am

Thanks for your reply.

I've done what you asked. And it reports '--enable-sockets=shared'
JustMy2Cents
Novice
Novice
 
Posts: 59
Joined: Mon Sep 15, 2008 8:34 am

Re: PHP on new DSM 3.0 doesn't work properly

Postby JustMy2Cents » Fri Sep 24, 2010 9:44 am

I've fixed it.

Remove the semicolon in front of the line extension = sockets.so in the file /usr/syno/etc/php/extension.ini
and reboot the system.
JustMy2Cents
Novice
Novice
 
Posts: 59
Joined: Mon Sep 15, 2008 8:34 am

Re: PHP on new DSM 3.0 doesn't work properly

Postby Kristian » Thu Mar 03, 2011 9:40 am

Hi

I had the same problem and have been looking for a solution for days now...

So Great! that you post the solution you found :mrgreen: :mrgreen:
Thumbs up for that :)

/Kristian - Denmark
Kristian
Trainee
Trainee
 
Posts: 15
Joined: Thu Mar 27, 2008 9:10 am


Return to Web Server + PHP / MySQL

Who is online

Users browsing this forum: No registered users and 1 guest