« Previous Next »

Thread: PHP 5.3.0 released!

Last post 07-28-2009 5:03 PM by justgoodcars. 23 replies.

Average Rating Rate It (5)

RSS

Page 1 of 2 (24 items) 1 2 Next >

Sort Posts:

  • 06-30-2009, 6:01 PM

    • pierrejoye
    • Top 75 Contributor
    • Joined on 02-12-2009, 10:52 PM
    • Germany
    • Posts 72

    PHP 5.3.0 released!

    Locked Reply Contact

    The PHP development team is proud to announce the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X series, which includes a large number of new features and bug fixes.

    Some of the key new features include: namespaces, late static binding, closures, optional garbage collection for cyclic references, new extensions (like ext/phar, ext/intl and ext/fileinfo), over 140 bug fixes and much more.

    For users upgrading from PHP 5.2 there is a migration guide available here, detailing the changes between those releases and PHP 5.3.0.

    Further details about the PHP 5.3.0 release can be found in the release announcement, and the full list of changes are available in the ChangeLog.

    --
    Pierre

    http://blog.thepimp.net | http://windows.php.net
  • 06-30-2009, 9:44 PM In reply to

    Re: PHP 5.3.0 released!

    Great work Pierre! Those who have been using PHP/IIS for years should note that PHP ISAPI has been dropped from 5.3, so if you haven't already migrated to the FastCGI API you will need to incorporate this into your upgrade plan to the 5.3 branch.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 07-01-2009, 11:23 AM In reply to

    Re: PHP 5.3.0 released!

     I had a nice How To for doing PHP for 5.2.x with MySQL in IIS and on Windows 2003 for setting up a PHPBB forum manually with the PHP zip file.  I always update my site every time a new PHP and MySQL are released but was surprised of all the changes made to 5.3.0 and don't even know where to start now that files have been dropped and are no longer used.

     My issue now is since they dropped everything my How To no longer works because now you don't have to copy anything but my question is now how do you set it up properly to work with MySQL and PHPBB forum. 

     Normally you'd just extract the PHP to say C:\PHP you'd then edit the .ini file and then you'd copy a dll file to System32, you'd also have to set up several things within IIS for ISAPI for PHP.  I also already had set up FastCGI along with everything else and everything works fine.

     I tried doing all of this with PHP 5.3.0 but there no longer is a libmysql.dll and there no longer is the php_xxxx.dll file needing set up in IIS.  So how do you go about setting everything up manually to work with the new PHP 5.3.0???  Any help would be greatly appreciated. 

  • 07-02-2009, 4:52 AM In reply to

    • pierrejoye
    • Top 75 Contributor
    • Joined on 02-12-2009, 10:52 PM
    • Germany
    • Posts 72

    Re: PHP 5.3.0 released!

    Cellar Dweller:
    My issue now is since they dropped everything

     The mysql extensions use now a bundled driver called mysqlnd, maintained by the mysql connectivity team. libmysql is not necessary anymore. That's not exactly 'everything' :-)

    To setup php (5.2 or 5.3) on IIS6 see:

     http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/

     You can as well use the Web Platform Installer, it will do everything for you:

     http://microsoft.com/php

    Cheers,

     

    --
    Pierre

    http://blog.thepimp.net | http://windows.php.net
  • 07-02-2009, 8:14 PM In reply to

    Re: PHP 5.3.0 released!

     I've had 5.2.10 setup and functioning fine it's 5.3.0 that has actually changed.  I've had all the 5.2.x versions working of course with the libmysql way of doing it.  I've also had the FastCGI set up on the same server now as well since it was released without any issues. 

     My issue or the thing I'd like to do is re-write my How To for the PHP.  I tried using the 5.3.0 and renamed the libmysql in system32 and tried to reverse the original way of doing everything from the 5.2.x versions but I keep getting a Module Not Found error on the page for my forum and how do you set up PHP 5.3.0 manually now is what I really need to know.

     Do you simply extract everything to say C:\PHP then do the path items within the ini and un-comment the mysql items needed and that is it?  Or is it because the FastCGI is not configured properly or IIS. 

     I guess I'd have to remove all the items in IIS that pointed to the php stuff of 5.2.x such as the php_isapi.dll since it no longer exists?  I'm just needing some small How To for doing PHP from this point forward since most of the files no longer exist, I'm sure the new way of doing things is much easier, no coping files and setting up the extensions etc. in IIS like you had to originally?  

  • 07-02-2009, 9:46 PM In reply to

    Re: PHP 5.3.0 released!

     Here is what I used to do to set up my forum or How To:  

    Copy php.ini-recommended and paste in same place and rename php.ini edit these lines only by using find

    extension_dir = "c:\php\ext\"

    doc_root = "c:\inetpub\wwwroot"  or whatever your root is on server

    uncomment by removing (;) from in front of extension=php_mysql.dll

    Copy the file libmysql.dll from C:\php to your system32 folder

     Then:

    Go to Default Web site and right click and pick properties and select Home Directory Tab Set Execute Permissions to Scripts
    Only and click configuration button and pick Add and point to C:\PHP\php5isapi.dll and .php  click OK Twice and then pick Documents Tab and click Add button and type index.php and Add it and move to top with arrow on left or with Move Up

    You will also have to highlight Web Service Extension in IIS and highlight All Unknown ISAPI Extensions on the Right pane and choose Allow they are Prohibited by default

    Create a basic text file in the root of your webserver called test.txt with this in it <?php phpinfo(); ?> and then rename the .txt file test.php and use your browser and type http://domainname/test.php

     OK

    Now I've reverted everything I had up above and did exactly to the letter everything for doing the FastCGI from the link you've provided and now I can not even open up the test file.  It wants to download or save the file and will not open in a browser.  Any help would be greatly appreciated.

  • 07-02-2009, 9:50 PM In reply to

    Re: PHP 5.3.0 released!

     For some reason your Edit button does not work on this site.  To add to what was in my How To mentioned before was the environment variable for PHPRC.  I even removed it during my revert back to no PHP before following the new PHP directions for FastCGI.

  • 07-03-2009, 11:51 AM In reply to

    Re: PHP 5.3.0 released!

     Ok I got it all sorted now.  Everything is working but with the latest 5.3.0 it caused a date issue and also a permissions problem came up with my PHPBB forum but I've fixed everything and all is now well.  Thanks for the help.

    Here is the New How To:  PHP 5.3.0, MySQL 5.4.x, IIS 6, and PHPBB Forum.

    Install everything

    Install Visual C++ 2008 SP1 Runtimes

    Install fcgisetup32.msi - v1.5

    Install MySQL by running mysql-5.4.1-beta-win32.msi

    Extract php-5.3.0-Win32-VC9-x86.zip to C:\PHP

    Install MySQL Administrator by running mysql-gui-tools-5.0-r17-win32.msi

    Extract PHPBB3 to your Web Server root example: c:\inetpub\wwwroot\phpbb3 and rename to forum or whatever you'd like

    Go to C:\PHP

    Copy php.ini-production and paste in same place and rename php.ini edit these lines only by using find

    extension_dir = "c:\php\ext\"

    doc_root = "c:\inetpub\wwwroot"  or whatever your root is on server


    uncomment by removing (;) fastcgi.impersonate = 1


    uncomment by removing (;) cgi.fix_pathinfo = 1


    uncomment by removing (;) cgi.force_redirect = 0

    uncomment by removing (;) date.timezone =
    and add this to the end "America/New_York" or search for your desired timezone here: http://www.php.net/manual/en/timezones.america.php

    uncomment by removing (;) from in front of extension=php_mysql.dll

    Configure PHP:

    Open command prompt and cd c:\windows\system32\inetsrv and type:

    cscript fcgiconfig.js -add -section:"PHP" -extension:php -path:"C:\PHP\php-cgi.exe"

    then type

    cscript fcgiconfig.js -set -section:"PHP" -InstanceMaxRequests:10000

    then type

    cscript fcgiconfig.js -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000


    MySQL Administrator = (Host Name) localhost - (Username) root - (Password) blank - (Port) 3306

    Create a Schema with MySQL with the MySQL Administrator call it forum or whatever you'd like by clicking Catalog after logging
    in and then highlight any schema on lower left usually test or mysql - Once highlighted then click in white area below the
    highlighted item and pick Create Schema

    Start up your webserver and have MySQL service set up and running

    Go to Default Web site and right click and pick properties and select Home Directory Tab Set Execute Permissions to Scripts
    Only and click configuration button and pick Add and point to C:\windows\system32\inetsrv\fcgiext.dll and .php  make sure both Script Engine and Verify that files exists are checked click OK Twice and then pick Documents Tab and click Add button and type index.php and Add it and move to top with arrow on left or with Move Up

    You will also have to highlight Web Service Extension in IIS and highlight All Unknown ISAPI Extensions on the Right pane and choose Allow they are Prohibited by default

    Create a basic text file in the root of your webserver called test.txt with this in it <?php phpinfo(); ?> and then rename the .txt file test.php and use your browser and type http://domainname/test.php if you only see the code above then PHP is not installed or working correctly but if you see an information page full of information about PHP then it's up and functioning properly - check within it to see that all the proper paths are set for MySQL and that there is a section for MySQL and if there is then both PHP and MySQL are up and functioning properly

    Now go to http://domainname/forum and it should auto bring up the Install for PHPBB3 fill it out and place all proper items in this and hit install and you should get installed successful screen

    If you are doing this locally it will ask you to ftp or download your config.php - download and just move this file to your forum folder

    Now log into your newly created forum with what you set up for your admin username and password and you may get another error about deleting two folders - just go to your webserver and delete the two folders it mentions Install and Contrib

    You have now succesfully set up your PHPBB Forum

    In Windows give Full Control to the Cache folder within your forum folder to your IUSR_XXXXX user (Internet Guest) - this clears an error Unable to remove .cache files.

    Written by Cellar Dweller

  • 07-16-2009, 2:27 PM In reply to

    • hydn
    • Top 100 Contributor
    • Joined on 02-27-2008, 9:45 PM
    • Posts 59

    Re: PHP 5.3.0 released!

    What about opcode caching on 5.3? eA, xcache, apc? Have you got any working?

    I'm on 5.3 also but only have memcache working. I can tell you that 5.3 seems a lot faster than 5.2.10 even without caching.

    For example my memcache use to avg abou:

    400 cache requests/second

    As for the last 3 days uptime its at:

    630.66 cache requests/second

    I guess this may be due to fast script /db interactions with php. Also my CPU load has droped (a FIRST with php since new version always seem heavier in past)

  • 07-21-2009, 7:14 PM In reply to

    • hydn
    • Top 100 Contributor
    • Joined on 02-27-2008, 9:45 PM
    • Posts 59

    Re: PHP 5.3.0 released!

    In the last 2 days both APC and xcache has release 5.3 versions for win32 (IIS)

     I've been testing. Awaiting eA which will be ready within a week. 

  • 07-22-2009, 5:14 AM In reply to

    • pierrejoye
    • Top 75 Contributor
    • Joined on 02-12-2009, 10:52 PM
    • Germany
    • Posts 72

    Re: PHP 5.3.0 released!

     For APC, you can fetch it here:

     http://downloads.php.net/pierre/php_apc-trunk-20090717-5.3-nts-vc9-x86.zip

     

    There is no release yet for APC with full support of 5.3.0, this is a SVN snaphost build.

     

    Cheers,

    --
    Pierre

    http://blog.thepimp.net | http://windows.php.net
  • 07-22-2009, 10:14 AM In reply to

    • hydn
    • Top 100 Contributor
    • Joined on 02-27-2008, 9:45 PM
    • Posts 59

    Re: PHP 5.3.0 released!

    Thanks Pierre. I tested that on Monday but can't get it to work:

    apc.stat = 1 results in blank pages and apc.stat = 0 results in blank pages plus fastcgi errors: [error Number: -2147467259 (0x80004005)]

     I thought it should (choice of words due to sites like: http://docs.moodle.org/en/Installing_APC_in_Windows which report blank pages issues with setting of 0) be the other way around where apc.stat = 0 results in blank pages and apc.stat = 1 works.

    As you said not compatible with 5.3 yet for sure. I've been using xcache's trunk for 5.3 here (100% stable thus far.):
    http://xcache.lighttpd.net/pub/snapshots/trunk-r653/

    The only issue I have with both xc and apc where for many eacelerator becomes the choice is that they don't allow caching to the file system instead of only shared memory. This is useful in eA because unlike apc and xc you will not end up with multiple instances of xcache running or more importantly RELOADING with fast-cgi's processes.

     Plus, all of the duplicate caches use the same settings in php.ini and since php-cgi.exe are set to recycle it means the cache is cleared very often of our box and thus we await eacelerator which caches to the file system (eg. e:\cache\ea ) we have a 128GB solid state drive which we use for eA.

    My main interest on Monday was to see if there was a file caching option. 

    Online discussions confirm that NTS PHP is a bit faster on avg over PHP TS (without any opcode caching). Since, eA thus fast comes only thread safe it been a draw back. So we have xcache still running as we would like to stick with the NTS php install.

    Hopefully Bart's eA updates for 5.3 will include a nts solution.

  • 07-22-2009, 5:21 PM In reply to

    Re: PHP 5.3.0 released!

     This is good news, there are some new features on there I have been waiting for.

    Strange I dont normally miss when the updates come out :)

  • 07-22-2009, 8:43 PM In reply to

    Re: PHP 5.3.0 released!

    What I want to know is when the 64 bit version will be out? Surely this the the most needed feature (for admin at least) in 2009.

    There are implied links in the http://windows.php.net/download/#php-5.3-ts-VC9-x64 in the dropdown but the don't go anywhere.

    Oh someone delete the spammer justgoodcars

  • 07-26-2009, 5:20 AM In reply to

    • JulienTLD
    • Top 200 Contributor
    • Joined on 12-16-2008, 5:50 PM
    • Marseille
    • Posts 29

    Re: PHP 5.3.0 released!

    Hi,

    I just tried APC 3.1.3-dev provided by Pierre with the NTS VC9 x86 release of PHP 5.3.0 (php_apc-trunk-20090717-5.3-nts-vc9-x86.zip) under my IIS 6.0 + FastCGI 1.0 webserver.

     I do not obtain any errors with my main website. It seems to run fine except that only 2 scripts appear on the StatsSystem Cache Entries page of apc.php. The two scripts are apc.php and the last php page I have opened. Do not know it it is normal that others scripts disapear...

    With the same config, PHPMyAdmin returns the error Fatal error: Call to undefined function PMA_getenv().

     Just a question Pierre, what do you exactly mean by "Added ACL Cache support on Windows" in th news.txt file of PHP 5.3.0 ? ACL ??

     Bye.

Page 1 of 2 (24 items) 1 2 Next >