BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 24th, 2005, 09:24 AM
Roman2005 Roman2005 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 19 Roman2005 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 53 m 28 sec
Reputation Power: 0
How enable-sockets on php 4.4.0 under FreeBSD 6.0

Hi, All

How can I enable-sockets on php 4.4.0 with Apache/1.3.33 I installed on FreeBSD 6.0 ?

How recompile php4.4.0 with enable socket support? I use ftp installation via sysinstall. Could somebody explain me with details. I am new in FreeBSD/Unix.

I found php.ini-distr under user/local/etc but can't understand how should I edit it in order to enable socket support.

Here is my configure output from phpinfo():
./configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--with-regex=php' '--with-apxs=/usr/local/sbin/apxs' '--prefix=/usr/local' 'i386-portbld-freebsd6.0'

It is strange for me that default php 4.4.0 installation does not support sockets and socket function like socket_create(AF_INET, SOCK_STREAM, SOL_TCP)


Please, help

Thanks in advance,
Roman

Reply With Quote
  #2  
Old November 26th, 2005, 01:55 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 52 m 24 sec
Reputation Power: 189
Quote:
Originally Posted by Roman2005
It is strange for me that default php 4.4.0 installation does not support sockets and socket function like socket_create(AF_INET, SOCK_STREAM, SOL_TCP)

Strange? It would be a huge security problem otherwise. Supporting sockets allows you to surf anonymously, spam mail servers, waste bandwidth, and such.

But the real reason probably is that PHP extensions have got their own port... /usr/ports/lang/php4-extensions. Did you install it? If yes, you probably have to activate the module in /usr/local/php/extensions.ini.

Note: I have only used FreeBSD 4 and 5, but I don't think the ports system is any different with FreeBSD 6.

M.
Comments on this post
gimp agrees: Holiday rep -
http://forums.devshed.com/the-outhouse-138/spreading-christmas-cheer-312638-2.html?pp=15
LinuxPenguin agrees: Happy christmas
carrie_a_tune agrees: Spreading late Christmas cheer from the Outhouse! Rock on M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > How enable-sockets on php 4.4.0 under FreeBSD 6.0

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap