23060 PHP 5.3.2 (was: php 5.3.0) - Page 3 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Closed Thread
 
Thread Tools Display Modes
  #51  
Old December 1st, 2009, 07:49
Voltar Voltar is offline
Member
 
Join Date: Dec 2008
Location: Bakersfield, California, US
Posts: 191
Thanks: 9
Thanked 23 Times in 17 Posts
Default

Quote:
Originally Posted by amitabh View Post
Can anybody confirm if php port for 8.0 comes with 5.3 version?
As far as I know, the port has not been updated yet.
__________________
...
  #52  
Old December 1st, 2009, 12:01
Voltar Voltar is offline
Member
 
Join Date: Dec 2008
Location: Bakersfield, California, US
Posts: 191
Thanks: 9
Thanked 23 Times in 17 Posts
Default

Looks like something to try out: http://lists.freebsd.org/pipermail/f...er/058016.html
__________________
...
  #53  
Old December 1st, 2009, 16:55
MissileSilo MissileSilo is offline
Junior Member
 
Join Date: Feb 2009
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Voltar View Post
This command didn't work:

Code:
cd /usr/ports && patch -p0 -E ~/php53.diff
I think it is missing a < character, because this worked:

Code:
cd /usr/ports && patch -p0 -E < ~/php53.diff
  #54  
Old December 1st, 2009, 17:51
MissileSilo MissileSilo is offline
Junior Member
 
Join Date: Feb 2009
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
Wink

Success. I am now running PHP 5.3.1 with all the extensions (php5-extensions) working using ports. Thank you Alex Dupre.

  #55  
Old December 1st, 2009, 19:57
Traskalas Traskalas is offline
Junior Member
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

and that to type then after this command "cd /usr/ports && patch -p0 -E < ~/php53.diff" show: FILE to Patch: ???? That i have here write? Sorry im new, 3 day with freebsd
  #56  
Old December 1st, 2009, 22:05
MissileSilo MissileSilo is offline
Junior Member
 
Join Date: Feb 2009
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Save the file in your home directory.

Example:

Code:
wget http://www.alexdupre.com/php53.diff
mv php53.diff ~/
cd /usr/ports
patch -p0 -E < ~/php53.diff
  #57  
Old December 2nd, 2009, 11:52
amitabh amitabh is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by MissileSilo View Post

Code:
wget http://www.alexdupre.com/php53.diff
mv php53.diff ~/
cd /usr/ports
patch -p0 -E < ~/php53.diff
Wouldn't using fetch rather than wget be better? Would not require any extra ports.
Code:
fetch http://www.alexdupre.com/php53.diff
mv php53.diff ~/
cd /usr/ports
patch -p0 -E < ~/php53.diff
  #58  
Old December 2nd, 2009, 18:18
MissileSilo MissileSilo is offline
Junior Member
 
Join Date: Feb 2009
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Yes. My bad. fetch would be better. I'm just used to using wget.
  #59  
Old December 2nd, 2009, 18:23
CodeBlock's Avatar
CodeBlock CodeBlock is offline
Member
 
Join Date: Jul 2009
Location: United States
Posts: 218
Thanks: 21
Thanked 11 Times in 11 Posts
Default

Wow, about time; Better late than never, I guess. I'll wait for it to be committed to the ports tree though.
__________________
Proud FreeBSD 8-RELEASE user.

CodeBlock on irc.freenode.net and irc.eighthbit.net.
  #60  
Old December 3rd, 2009, 08:52
amitabh amitabh is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Tried it on my test server successfully, but would still wait for the official port version for my production boxes.
  #61  
Old December 19th, 2009, 20:33
KGB KGB is offline
Junior Member
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any news on when 5.3.* will be added to the ports system? Just tried the patch on a brand new 8.0 system, and it gives me the following errors building mysqli:
Code:
/usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli.c:35:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory
/usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli_api.c:34:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory
I'm guessing it has something to do with the new mysqlnd driver, although searching for the error on the net I found a bug report on the php site which said not to mix 5.2 with 5.3 code...
  #62  
Old December 23rd, 2009, 11:06
MarS MarS is offline
Junior Member
 
Join Date: Nov 2008
Posts: 21
Thanks: 7
Thanked 3 Times in 2 Posts
Default

Code:
/usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli.c:35:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory
/usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli_api.c:34:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory
Same here on a box running FreeBSD 7.2.
  #63  
Old December 24th, 2009, 02:26
guest2 guest2 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli.c:35:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory
/usr/ports/databases/php5-mysqli/work/php-5.3.1/ext/mysqli/mysqli_api.c:34:45: error: ext/mysqlnd/mysqlnd_portability.h: No such file or directory
you can `fix it` by manually adding "--with-mysqli=shared,mysqlnd" to /usr/ports/lang/php5/Makefile CONFIGURE_ARGS:
Code:
PORTNAME=       php5
PORTVERSION=    5.3.1
PORTREVISION?=  0
CATEGORIES?=    lang devel www
MASTER_SITES=   ${MASTER_SITE_PHP}
MASTER_SITE_SUBDIR=     distributions
DISTNAME=       php-${PORTVERSION}

MAINTAINER=     ale@FreeBSD.org
COMMENT=        PHP Scripting Language

LATEST_LINK=    ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}

USE_BZIP2=      yes
MAKE_JOBS_SAFE= yes
.if !defined(PKGNAMESUFFIX)
USE_AUTOTOOLS=  autoconf:262

CONFIGURE_ARGS= \
                --with-layout=GNU \
                --with-config-file-scan-dir=${PREFIX}/etc/php \
                --disable-all \
                --enable-libxml \
                --with-libxml-dir=${LOCALBASE} \
                --with-mysqli=shared,mysqlnd \
                --program-prefix=""

....
next:
Code:
cd /usr/ports/lang/php5 && make clean 
/usr/local/etc/rc.d/apache22 stop
[/usr/ports/lang/php5] make deinstall
[/usr/ports/lang/php5] make
[/usr/ports/lang/php5] make install
after this there should be mysqli shared obj:
Code:
ls /usr/local/lib/php/20090626-zts/ |grep mysql
mysql.so
mysqli.so
add extension=mysqli.so to /usr/local/etc/php/extensions.ini
start apache and check phpinfo()

it works on my machine (7.2-RELEASE FreeBSD i386)
have fun

Last edited by DutchDaemon; December 24th, 2009 at 03:48.
  #64  
Old December 29th, 2009, 01:18
jaymax jaymax is offline
Member
 
Join Date: Jul 2009
Posts: 166
Thanks: 18
Thanked 1 Time in 1 Post
Default

Has the update occurred yet?

A couple of weeks ago, I was doing a fresh install of php5-5.2.11_1 (apparently the latest in the ports). It failed, complaining of a vulnerability. So I have no php on my system and had to bring my whole system down.

Still, waiting for either an upgrade to the php5-5.2.11_1 or to 5.3 but not hearing anything, I don't quite know what to do. Was advised against downloading source and compiling to avoid problems down in the future.
  #65  
Old December 29th, 2009, 12:29
jaymax jaymax is offline
Member
 
Join Date: Jul 2009
Posts: 166
Thanks: 18
Thanked 1 Time in 1 Post
Default

Guest2
Did the manual fix as recommended
and got a
Code:
/usr/ports/lang/php5
"Makefile", line 37: Unassociated shell command "--program-prefix="""
make: fatal errors encountered -- cannot continue
instead - any idea why ?

Last edited by DutchDaemon; December 29th, 2009 at 21:44. Reason: use [code] tags!
  #66  
Old December 29th, 2009, 15:40
crsd crsd is offline
Member
 
Join Date: Nov 2008
Location: Russia, Krasnodar
Posts: 420
Thanks: 8
Thanked 92 Times in 82 Posts
Default

Missing \ at the end of previous line?
  #67  
Old December 29th, 2009, 19:54
phospher phospher is offline
Junior Member
 
Join Date: May 2009
Location: Milwaukee, Wi
Posts: 75
Thanks: 12
Thanked 1 Time in 1 Post
Default

just ran portsnap. looks like it's been updated to 5.2.12
__________________
http://www.reasonproject.org/
  #68  
Old December 30th, 2009, 02:54
jaymax jaymax is offline
Member
 
Join Date: Jul 2009
Posts: 166
Thanks: 18
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by crsd View Post
Missing \ at the end of previous line?
??

Code:
sed -n 35,40p Makefile
                --enable-reflection \
                --with-mysqli=shared,mysqlnd \
                --program-prefix=""

USE_GNOME=      libxml2
Missing \ surely got me confused now

Last edited by DutchDaemon; December 30th, 2009 at 05:03.
  #69  
Old January 29th, 2010, 19:02
peterlcole peterlcole is offline
Junior Member
 
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Has anyone heard anything about an updated ETA?
  #70  
Old January 30th, 2010, 08:19
amitabh amitabh is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It should come out with 5.3.2 release. See this mail by the maintainer:

http://docs.freebsd.org/cgi/getmsg.c....freebsd-ports
  #71  
Old February 2nd, 2010, 20:34
peterlcole peterlcole is offline
Junior Member
 
Join Date: Nov 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by amitabh View Post
It should come out with 5.3.2 release. See this mail by the maintainer:

http://docs.freebsd.org/cgi/getmsg.c....freebsd-ports
Oh cool, hopefully 5.3.2 isn't too far away. Thanks!
  #72  
Old February 7th, 2010, 23:37
apenkop123 apenkop123 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

"Oh cool, hopefully 5.3.2 isn't too far away. Thanks! "

As far as i can see this is:

2010-05-01 that is far away , see this website:

http://en.wikipedia.org/wiki/PHP

there is the release date:

5.3.2 2010-05-01
  #73  
Old February 11th, 2010, 06:15
chrcol chrcol is offline
Member
 
Join Date: Nov 2008
Posts: 325
Thanks: 23
Thanked 9 Times in 8 Posts
Default

guys you all realise right 5.2.x is not EOL.

from a productivity point of view 5.3 is essentially beta, it has no zend support and I am not sure about ioncube support, the configuration has major changes and various apps break.

If we are to get php-5.3 in ports I hope it appears as a new port eg. lang/php5-testing as 5.2.x still has development and is the mature version.
  #74  
Old February 11th, 2010, 08:58
amitabh amitabh is offline
Junior Member
 
Join Date: Nov 2008
Posts: 24
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by chrcol View Post
guys you all realise right 5.2.x is not EOL.

from a productivity point of view 5.3 is essentially beta, it has no zend support and I am not sure about ioncube support, the configuration has major changes and various apps break.

If we are to get php-5.3 in ports I hope it appears as a new port eg. lang/php5-testing as 5.2.x still has development and is the mature version.
Zend is anyway not releasing any more versions for FreeBSD. There is a link to the Zend forum in this thread.

As for separate ports, Alex (PHP port maintainer) has clearly said that he won't be maintaining two different ports of PHP. So unless someone forks a new port, it would be a one way upgrade.

With regards

Amitabh Kant
  #75  
Old February 11th, 2010, 09:11
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default

Quote:
Originally Posted by chrcol View Post
guys you all realise right 5.2.x is not EOL.

from a productivity point of view 5.3 is essentially beta, it has no zend support and I am not sure about ioncube support, the configuration has major changes and various apps break.

If we are to get php-5.3 in ports I hope it appears as a new port eg. lang/php5-testing as 5.2.x still has development and is the mature version.
Alex also mentioned that support for PHP 5.2 will be dropped soon: http://lists.freebsd.org/pipermail/f...ry/059169.html

Quote:
PHP devs already told me it will be dropped soon (probably just before
summer), so creating a port for a few months has no sense. Anyway I have
no plan for lang/php52.
Closed Thread

Tags
patches, pear, php5, php5.3

Thread Tools
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
PHP Error dpalme Web & Network Services 11 December 20th, 2010 02:28
non-PHP CMS dougy Installation and Maintenance of FreeBSD Ports or Packages 3 January 20th, 2010 17:05
help! php won't build wonslung Installation and Maintenance of FreeBSD Ports or Packages 6 June 4th, 2009 12:40
[PHP][solved][/PHP] General question sossego General 0 April 9th, 2009 23:36
Php 5.2.9 MissileSilo Installation and Maintenance of FreeBSD Ports or Packages 8 March 8th, 2009 14:39


All times are GMT +1. The time now is 21:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0