Problem with PHP and PHP.ini

Sireal

Verified User
Joined
Aug 5, 2008
Messages
9
Hi to all,
i've a problem with php,
so, i've a debian sarge with directadmin

when i launch php -v it says:

Code:
admin@server:~$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library './php_gd2.dll' - ./php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.2.5 (cli) (built: Mar 22 2008 00:16:18)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Why it say php_gd2.dll ? Dll is for windows, isnt it ?

so this is what appear when i launch locate php.ini

Code:
admin@server:~$ locate php.ini
/etc/php4/apache/php.ini
/etc/php5/apache2/php.ini
/usr/local/lib/php.ini

So, i think that the exactly php.ini is /usr/local/lib/php.ini

This is my php.ini on pastebin
http://pastebin.com/m259b2e20

Someone can help me ?
 
Edit /usr/local/lib/php.ini. Find:
Code:
extension=php_gd2.dll

Replace with:
Code:
;extension=php_gd2.dll
 
but, i want gdl support,
my question is:

this php.ini is for windows or not?
 
i checked and gd is not mentioned...

i used i script to view if gd works but nothing...
 
Please post an output of:
Code:
/usr/local/bin/php --info | grep GD
 
admin@server:~$ /usr/local/bin/php --info | grep GD
admin@server:~$

it says nothing..
 
Do:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build php n
 
:S I think that this command will be dangerous because two months ago whith this command my server was crashed... and i had to format the server,

do you think this command is not dangerous ?
 
Format? It's not possible. This command just reinstalls PHP.
 
If you'll have any problems - you can contact me and I'll take a look at your problem for free.
 
thank you, i will try this command tomorrow becouse if i have some problem i have time for resolve it

i'm italian
 
Back
Top