compile php with gd ?
I didnīt get the php package that came with the installation to work, so I compiled php4 from source and it worked great until now when I want to use some php functions that needs gd http://www.boutell.com/gd/ , Iīve tried adding extension=gd.so into php.ini and restarted apache, but still didnīt work, do I have to compile php with gd, if so how do I do that ?
Also is the php package from slackware.com compiled with gd ? Slackware 10 kernel 2.6... |
The Slackware package comes with gd, and PHP comes with gd boundled, just pass --with-gd to the configure script.
cccc828 |
Yes indeed I found this in confiure
--with-gd[=DIR] Include GD support where DIR is GD install prefix. If DIR is not set, the bundled GD library will be used." so I guess itīs ok ? but it doesnīt work. Fatal error: Call to undefined function: imagecreate() thatīs what Iīm trying to run, which needs gd... :/ Another thing is that when I restart apache it says itīs skipping the php4 module since itīs already loaded, how do I restart php ? |
Quote:
The makefile for PHP has likely added the module to your httpd.conf file again. It does that everytime you run "make install". Also watch the configure process for any errors related to the inclusion of GD and check the config.log. You'll also probably want to have a look at phpinfo() in your browser. The GD info and formats it supports will be listed there if present: Code:
<?php Code:
#! /bin/sh |
All times are GMT -5. The time now is 05:46 AM. |