Fedora Linux Support Community & Resources Center
  #1  
Old 14th June 2012, 02:15 PM
Vanitas Offline
Registered User
 
Join Date: Mar 2011
Posts: 7
linuxubuntufirefox
Apache: php sockets not working

I've just set up a php + mysql server at my Fedora 17 32-bit and I've got one big problem, every php function which uses sockets just doesn't work: stream_socket_client or fopen(used with file url) always returns false. My code is correct because when I run it on different OS everything is ok.
  1. I turned off SELinux and firewall.
  2. In phpinfo() sockets are enabled.
  3. mod_ssl is installed.
What else I can do?
Reply With Quote
  #2  
Old 14th June 2012, 05:46 PM
droidhacker Offline
Registered User
 
Join Date: Oct 2009
Posts: 827
linuxfirefox
Re: Apache: php sockets not working

Quote:
Originally Posted by Vanitas View Post
I've just set up a php + mysql server at my Fedora 17 32-bit and I've got one big problem, every php function which uses sockets just doesn't work: stream_socket_client or fopen(used with file url) always returns false. My code is correct because when I run it on different OS everything is ok.
  1. I turned off SELinux and firewall.
  2. In phpinfo() sockets are enabled.
  3. mod_ssl is installed.
What else I can do?
Apache user have the right to access those files?
Reply With Quote
  #3  
Old 14th June 2012, 05:58 PM
Vanitas Offline
Registered User
 
Join Date: Mar 2011
Posts: 7
linuxubuntufirefox
Re: Apache: php sockets not working

Quote:
Originally Posted by droidhacker View Post
Apache user have the right to access those files?
fopen used file accessable at given url.
If you're talking about local files than yes, apache has proper rights.
Reply With Quote
  #4  
Old 16th June 2012, 02:12 PM
Vanitas Offline
Registered User
 
Join Date: Mar 2011
Posts: 7
linuxchrome
Re: Apache: php sockets not working

Refresh with new clue.
In different location where my netbook is using wired connection everything works well.
Previously I've been using wifi (but changing OS worked there too).
Reply With Quote
Reply

Tags
apache, php, sockets, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mtr: unable to get raw sockets DesiSniper Servers & Networking 4 20th February 2012 08:24 PM
Mingw sockets on w7 tristen Programming & Packaging 2 23rd November 2010 01:29 AM
Java and MTS sockets tashirosgt Programming & Packaging 1 24th July 2007 10:06 AM
sockets are hanging nimbius Servers & Networking 12 19th May 2007 12:37 PM
upgrade php with -sockets sadouk Using Fedora 0 5th March 2005 07:38 PM


Current GMT-time: 11:32 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Tokar Travel Photos - Grevenbroich - Shizilu Instagram Photos