Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Thanks
    0
    Thanked 9 Times in 9 Posts

    Installing GD for PHP 4.3.10 WinXP IIS

    I'd like to hear from any members who have recent experience installing the PHP GD extension on a windows system.

    After 2 hrs of searching, I can't find any straight forward install instructions for my current test server configuration: WinXP; PHP 4.3.10; IIS 5.x

    The www.boutell.com/gd/ website offers no insight, too much unix-speak. The site also doesnt host a php_gd2.dll for download. What is available is the win32 package for v2.0.33 but it's not for use with PHP.

    As a possible solution, I downloaded PHP 4.3.2, unzipped the extensions folder to my php dir, and reconfigured php.ini to use this folder. However uncommenting the gd2 extension line results in permission errors, 'Access Denied'.

    The extensions folder has appropriate permissions for IWAM and IUSR accounts - but no joy.

    Any help getting the GD library working would be appreciated.
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.

  • #2
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by php site
    To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd.

    In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
    Quote Originally Posted by gd site
    it includes a version of gd as "standard equipment." php_gd2.dll is included in a standard PHP installation for Windows, it's just not enabled by default.
    http://www.boutell.com/gd/faq.html
    CATdude about IE6: "All your box-model are belong to us"

  • #3
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Thanks
    0
    Thanked 9 Times in 9 Posts
    Yes I have read that at a few sources, however it does not apply to PHP 4.3.10

    "configure option --with-gd" means absolutely nothing to me.

    The 4.3.10 standard windows installation does not include the gd2.dll and as I posted before, by including it from the 4.3.2 package, I'm confronted with permisson errors.

    Any others who may have experience with this particular configuration?
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.

  • #4
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by meth
    The 4.3.10 standard windows installation does not include the gd2.dll
    Yes lol it does.
    http://rapidshare.de/files/5056593/php_gd2.zip.html
    CATdude about IE6: "All your box-model are belong to us"

  • #5
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did you try looking in your php.ini? It my be installed, but commented out in you php.ini . Try searching for 'gd' in your php.ini file and see if its commented out.
    Mine was:
    ;extension=php_gd2.dll

    Changed to this:
    extension=php_gd2.dll

    Then restarted the server and created a php file(called gd_info.php) with:
    PHP Code:
    <?php
       var_dump
    (gd_info());
    ?>
    in it to test it.

    It should have something like this in it:
    array(12) { ["GD Version"]=> string(27) "bundled (2.0.28 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(true) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }

    Hopefully this works for you.

  • #6
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Thanks
    0
    Thanked 9 Times in 9 Posts
    I did a standard installation of 4.3.10 and no GD functionality was included. No gd2.dll file was included with the install. I have used a previous version of gd2.dll and uncommented the extension line but receive permission errors when php tries to load the extension file.

    As already mentioned, I gave both the .ddl file IUSR and IWAM permissions to read & execute, but the access errors persist. Any other ideas?
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.

  • #7
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Thanks
    0
    Thanked 9 Times in 9 Posts
    OK- problem solved. The IUSR and IWAM accounts were domain accounts. With the test server running locally, these accounts had to be objects of the local machine. Once the accounts were changed over to local and not network, bang, everything works fine.

    Thx for ur suggestions guys.
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •