Toon posts:

[W2003] Webserver en PHP incl. GD2 support en native jpeg

Pagina: 1
Acties:

Verwijderd

Topicstarter
- Ik gebruik Windows 2003 Server.
- En IIS 6.0.
- Ik heb nu PHP 5.02 geinstalleerd met de installer van www.php.net.

Ik heb de korte handleiding van http://www.visualwin.com/PHP/ gevolgd.

Ik kan prima simpele PHP-scriptjes uitvoeren.
Maar het gaat om dit script: http://www.jappe.net/temp/index.txt

Als ik deze wil uitvoeren zegt Internet Explorer:
Error: Sorry, but I couldn't find the GD 2.* functions that I need to convert images. Check the configuration of this script (imagemethod variable) or your system. Make sure that your copy of PHP has been compiled with GD support and native JPEG support eg
configure --with-gd --with-jpeg ...
Ik heb vervolgens in php.ini de extensions php_gd2.dll en php_exif.dll toegevoegd en de fysieke files ook in de extensions directory gezet.

Als ik nu het bovengenoemde script index.php run dan krijg ik eerste geen foutmelding, maar gaat ie voor onegveer 2 minuten iets proberen te laden en dan komt uiteindelijk de volgende foutmelding:
CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.
Hoe kan ik er nu voor zorgen dat IE het script dat het script wel iutvoeren is.
Wat moet ik op de server aanpassen?


Jasper

  • mrFoce
  • Registratie: Augustus 2004
  • Laatst online: 25-08 19:32
Welke code probeer je uit te voeren ?

  • mr_obb
  • Registratie: Juni 2001
  • Laatst online: 21-08 12:59

mr_obb

Lakse Perfectionist

gideon82 schreef op 08 november 2004 @ 14:18:
Welke code probeer je uit te voeren ?
Hij zegt :
Maar het gaat om dit script: http://www.jappe.net/temp/index.txt
Lees eerst even voordat je zo reageert.

  • Bergen
  • Registratie: Maart 2001
  • Laatst online: 18-08 10:58

Bergen

Spellingscontroleur

Da's een oud script... Ik zie nog dingen als "$HTTP_POST_VARS" staan enzo. Ik zou eerst zelf even een klein scriptje maken, met een GD-functie die bijvoorbeeld wat tekst in een hokje schrijft.

  • PowerSp00n
  • Registratie: Februari 2002
  • Laatst online: 30-07 19:50

PowerSp00n

There is no spoon

Bergen schreef op 08 november 2004 @ 14:29:
Da's een oud script... Ik zie nog dingen als "$HTTP_POST_VARS" staan enzo. Ik zou eerst zelf even een klein scriptje maken, met een GD-functie die bijvoorbeeld wat tekst in een hokje schrijft.
Nog beter: gewoon even een file met
PHP:
1
<?php phpinfo(); ?>
om te zien waar je nou daadwerkelijk mee te maken hebt.

Verwijderd

Network Troubleshooting -> Software Algemeen

Webservers zijn gewoon software en hebben dus niets met Network Troubleshooting te maken.

Verwijderd

Topicstarter
<?php phpinfo(); ?>
PHP Version 5.0.2

System Windows NT JAPSER 5.2 build 3790
Build Date Sep 24 2004 01:24:24
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API CGI/FastCGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini
PHP API 20031224
PHP Extension 20040412
Zend Extension 220040412
Debug Build no
Thread Safety enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.2, Copyright (c) 1998-2004 Zend Technologies

[ Voor 5% gewijzigd door Verwijderd op 08-11-2004 15:50 ]


Verwijderd

Topicstarter
En op deze server doet ie t wel:
www.jappe.net/fotoalbum

PHP Version 4.3.9

System Linux server1.blueyellow.biz 2.4.27-DNetNOC-5.i4.32u1-73 #1 Mon Aug 9 13:10:16 EDT 2004 i686
Build Date Oct 29 2004 14:16:57
Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-mcrypt' '--enable-magic-quotes' '--with-mysql' '--enable-discard-path' '--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, compress.zlib

  • kamerplant
  • Registratie: Juli 2001
  • Niet online
Verwijderd schreef op 08 november 2004 @ 15:44:
[...]

PHP Version 5.0.2

System Windows NT JAPSER 5.2 build 3790
Build Date Sep 24 2004 01:24:24
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API CGI/FastCGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini
PHP API 20031224
PHP Extension 20040412
Zend Extension 220040412
Debug Build no
Thread Safety enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.2, Copyright (c) 1998-2004 Zend Technologies
Geef liever het URL waarop je phpinfo.php bestand draaid, dit is niet de volledige informatie die PHPInfo geeft. :)

🌞🍃


  • Tjark
  • Registratie: Juni 2000
  • Laatst online: 23-08 13:31

Tjark

DON'T PANIC

Wil je perse IIS gebruiken?
Ik ben van IIS (W2K + IIS 5) overgestapt naar XAMPP for windows package: apache,php,mysql en alles in 1. Is mij goed bevallen en zaken als GD zitten meegebakken. M'n reden van overstappen was dat IIS soms rare zaken bij mij deed en ik sommige dingen met apache beter zou kunnen instellen, wat later ook bleek.

meer info: http://www.apachefriends.org/en/xampp-windows.html

[ Voor 3% gewijzigd door Tjark op 08-11-2004 16:02 ]

*insert signature here


Verwijderd

Topicstarter
info.php op site waar script (index.php) wel werkt: mijn huidige site
http://www.jappe.net/info.php

info.php op site waar script (index.php) niet werkt: mijn nieuwe webserver
http://www.jappe.net/temp/info.htm
Maar t gekke is dat dit scriptje (info.php en geen enkel script trouwens) het doet als in de php.ini 1 van de extensions geladen wordt. (in dit geval imagick.dll)

......
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.


;Windows Extensions
;Note that ODBC support is built in, so no dll is needed for it.
;

;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
extension=php_imagick.dll
;extension=php_gettext.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll

Verwijderd

Ik weet niet of het nog actueel is, maar met deze handleiding is het mij gelukt om hetzelfde probleem wat jij hebt, bij mij te verhelpen.
Ik gebruik Coppermine om foto's te hosten en dat maakt ook gebruik van PHP en GD.

http://www.design-ireland.../internet/browsing-11.php

Vooral het deel 'Installing PHP 5' en dan stap 4.4 'Installing steps' is erg belangrijk.
Pagina: 1