Questions about hosting a Website, using MySQL and PhP may be posted here.
by 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

-
- Posts: 59
- Joined: Mon Sep 15, 2008 8:34 am
by 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

-
- Posts: 414
- Joined: Thu Nov 29, 2007 10:01 am
by 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

-
- Posts: 59
- Joined: Mon Sep 15, 2008 8:34 am
by 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

-
- Posts: 59
- Joined: Mon Sep 15, 2008 8:34 am
by 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
Thumbs up for that

/Kristian - Denmark
-
Kristian
- 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 2 guests