Page 1 of 1

[SOLVED] phpinfo() and ImageCreateFromPng() failure??

Posted: Wed Jul 25, 2007 4:43 pm
by Jaxolotl
Hi people
Can anybody help me to find out where's the problem here?

On a testing server (not mine) with this configuration.
Main server IIS to handle the port 80, emulating APACHE on port 4000 accessing the apache HTTP docs directory as virtual directory to output the pahache parsed output.

Note: I have absolutly no knoledge on server administration, so upper explanation is what the admin explains to me.

the problem
when the URI http://domainame.xx/myscript.php is called any call of phpinfo() or ImageCreateFromPng() fails without returning any kind of error even if error_reporting(E_ALL) is called before running the script.

BUT when http://ROOTDOMAIN.xx:4000/site_folder/myscript.php is called all the funtions works fine

Any idea of where to look for to find the problem?

the following libraries are installed and working
php_bz2
php_exif
php_gd2
php_iconv
php_mbstring
php_pdf
php_zip

Posted: Wed Jul 25, 2007 4:58 pm
by feyd
I would have to guess they are using different php.ini files.

Posted: Wed Jul 25, 2007 5:14 pm
by Jaxolotl
oh Master feyd! it's been a long time! good to read you :)
feyd wrote:I would have to guess they are using different php.ini files.
The answer is yes ; I'm asking for both php.ini files, and will check them out line by line. If I find something the could make problems I'll post the lines here

Posted: Wed Jul 25, 2007 5:34 pm
by Jaxolotl
So I deduce that when you call the por 80 one php.ini is used and on the port 4000 the otherone is used, the quastion which path is the wright one.


The differences I found are on the path callings (so I guess this is the problem)

Working on port 80 (malfunction)

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"  
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"




AND

Code: Select all


; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"



working on port 4000 (works ok)

Code: Select all

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"  
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;${path}\php\pear\"


AND

Code: Select all

; Directory in which the loadable extensions (modules) reside.
extension_dir = "${path}\php\extensions\"


so I guess the failing behaviour is because it can't reach the extensions folder library

I'll try to fix it and if not success, I'll be back here.
Thanks for the suggestion feyd

Posted: Fri Jul 27, 2007 4:29 pm
by Jaxolotl
Problem is solved, thank you feyd, it was the library wrong path on the IIS php.ini used file.
I'll kill the server admin for this kind of mistakes.