phpnoobie9 Posted February 28, 2008 Share Posted February 28, 2008 Older php versions shows something like: gd GD Support enabled GD Version bundled (2.0.15 compatible) FreeType Support enabled FreeType Linkage with freetype T1Lib Support enabled GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled'' I don't see that on my phpinfo on my current version 5.1.6. I installed it using ssh and it installed. Restarted my vps. Checked my phpinfo and don't see nothing about gd. Quote Link to comment Share on other sites More sharing options...
phpnoobie9 Posted February 28, 2008 Author Share Posted February 28, 2008 Got the below when I try to verify it.. # php -m | less # php -m | grep gd ...skipping... [php Modules] ctype date dom filter hash iconv json libxml pcre PDO pdo_sqlite posix Reflection session SimpleXML SPL SQLite standard tokenizer xml xmlreader xmlwriter Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 28, 2008 Share Posted February 28, 2008 To enabled GD on unix based systems you need to install PHP with the --with-gd=[DIR] flag, change [DIR] to where GD is installed too. Also you'll need to enable the GD extension within the php.ini too. Quote Link to comment Share on other sites More sharing options...
phpnoobie9 Posted February 29, 2008 Author Share Posted February 29, 2008 I've looked through the phpini file and can not find anything showing gd. Quote Link to comment Share on other sites More sharing options...
peranha Posted February 29, 2008 Share Posted February 29, 2008 [php_GD2] extension=php_gd2.dll I had to add that on mine under the variables section at the very bottom. You may need to do the same. Quote Link to comment Share on other sites More sharing options...
phpnoobie9 Posted February 29, 2008 Author Share Posted February 29, 2008 I think the dll is for windows. I'm on a linux. Quote Link to comment Share on other sites More sharing options...
trq Posted March 1, 2008 Share Posted March 1, 2008 What distro? And how did you install php, from source? Quote Link to comment Share on other sites More sharing options...
phpnoobie9 Posted March 1, 2008 Author Share Posted March 1, 2008 What distro? And how did you install php, from source? I'm on centos 4 and plesk 8.3.0 I asked vpsland to update my php for me several days ago because I was hosted with them, but I've been trying to do things myself so I can learn personally learn it. Quote Link to comment Share on other sites More sharing options...
trq Posted March 1, 2008 Share Posted March 1, 2008 Never used centos, but its likely that gd is a seperate package. On Debian I would use.... apt-get install php5-gd to install gd, and in fact something lilke.... apt-get install \ make \ gcc \ g++ \ apache2-prefork-dev \ libapache2-mod-php5 \ php5-dev \ php-pear \ php5-sqlite3 \ php5-gd \ php5-cli \ php5-memcache \ php5-mysql \ php5-pgsql \ php5-sqlite3 \ php5-tidy to install the entire *amp stack. I'm not even sure which package management system centos uses (yum maybe?) but you will need to search for a gd package and install it. Quote Link to comment Share on other sites More sharing options...
phpnoobie9 Posted March 1, 2008 Author Share Posted March 1, 2008 Never used centos, but its likely that gd is a seperate package. On Debian I would use.... apt-get install php5-gd to install gd, and in fact something lilke.... apt-get install \ make \ gcc \ g++ \ apache2-prefork-dev \ libapache2-mod-php5 \ php5-dev \ php-pear \ php5-sqlite3 \ php5-gd \ php5-cli \ php5-memcache \ php5-mysql \ php5-pgsql \ php5-sqlite3 \ php5-tidy to install the entire *amp stack. I'm not even sure which package management system centos uses (yum maybe?) but you will need to search for a gd package and install it. Yeah I used yum and it is installed, just don't know why I can't enable it. According to yum it's installed. I can't find the gd directory in the main file directories. I also can't find it in php.ini Quote Link to comment Share on other sites More sharing options...
trq Posted March 1, 2008 Share Posted March 1, 2008 Once again, I'm not sure how centos lays out its php configurations. In Debian all packages that are not installed by default get there own ini file within /etc/php5/conf.d my /etc/php5/conf.d/gd.ini file looks simply like... extension=gd.so You could simply at that line to your main php.ini file in the [extensions] section then restart your server. From there it'll just be a matter of finding out where the configuration is actually meant to go. For all I know centos may use a monolithic setup, and the main php.ini file may be the place to put such configuration changes. Quote Link to comment Share on other sites More sharing options...
phpnoobie9 Posted March 1, 2008 Author Share Posted March 1, 2008 Is the php.ini file only suppose to be like 4kb? I then have a phpbackup.ini at like 50kb This is my php.ini file? ; Valid range 0 - 2147483647. Default = 4096. ;mssql.textsize = 4096 ; Limits the number of records in each batch. 0 = all records in one batch. ;mssql.batchsize = 0 ; Specify how datetime and datetim4 columns are returned ; On => Returns data converted to SQL server settings ; Off => Returns values as YYYY-MM-DD hh:mm:ss ;mssql.datetimeconvert = On ; Use NT authentication when connecting to the server mssql.secure_connection = Off ; Specify max number of processes. -1 = library default ; msdlib defaults to 25 ; FreeTDS defaults to 4096 ;mssql.max_procs = -1 [Assertion] ; Assert(expr); active by default. ;assert.active = On ; Issue a PHP warning for each failed assertion. ;assert.warning = On ; Don't bail out by default. ;assert.bail = Off ; User-function to be called if an assertion fails. ;assert.callback = 0 ; Eval the expression with current error_reporting(). Set to true if you want ; error_reporting(0) around the eval(). ;assert.quiet_eval = 0 [Verisign Payflow Pro] ; Default Payflow Pro server. pfpro.defaulthost = "test-payflow.verisign.com" ; Default port to connect to. pfpro.defaultport = 443 ; Default timeout in seconds. pfpro.defaulttimeout = 30 ; Default proxy IP address (if required). ;pfpro.proxyaddress = ; Default proxy port. ;pfpro.proxyport = ; Default proxy logon. ;pfpro.proxylogon = ; Default proxy password. ;pfpro.proxypassword = [COM] ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs ;com.typelib_file = ; allow Distributed-COM calls ;com.allow_dcom = true ; autoregister constants of a components typlib on com_load() ;com.autoregister_typelib = true ; register constants casesensitive ;com.autoregister_casesensitive = false ; show warnings on duplicate constat registrations ;com.autoregister_verbose = true [mbstring] ; language for internal character representation. ;mbstring.language = Japanese ; internal/script encoding. ; Some encoding cannot work as internal encoding. ; (e.g. SJIS, BIG5, ISO-2022-*) ;mbstring.internal_encoding = EUC-JP ; http input encoding. ;mbstring.http_input = auto ; http output encoding. mb_output_handler must be ; registered as output buffer to function ;mbstring.http_output = SJIS ; enable automatic encoding translation accoding to ; mbstring.internal_encoding setting. Input chars are ; converted to internal encoding by setting this to On. ; Note: Do _not_ use automatic encoding translation for ; portable libs/applications. ;mbstring.encoding_translation = Off ; automatic encoding detection order. ; auto means ;mbstring.detect_order = auto ; substitute_character used when character cannot be converted ; one from another ;mbstring.substitute_character = none; ; overload(replace) single byte functions by mbstring functions. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), ; etc. Possible values are 0,1,2,4 or combination of them. ; For example, 7 for overload everything. ; 0: No overload ; 1: Overload mail() function ; 2: Overload str*() functions ; 4: Overload ereg*() functions ;mbstring.func_overload = 0 [FrontBase] ;fbsql.allow_persistent = On ;fbsql.autocommit = On ;fbsql.default_database = ;fbsql.default_database_password = ;fbsql.default_host = ;fbsql.default_password = ;fbsql.default_user = "_SYSTEM" ;fbsql.generate_warnings = Off ;fbsql.max_connections = 128 ;fbsql.max_links = 128 ;fbsql.max_persistent = -1 ;fbsql.max_results = 128 ;fbsql.batchSize = 1000 [exif] ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS. ; With mbstring support this will automatically be converted into the encoding ; given by corresponding encode setting. When empty mbstring.internal_encoding ; is used. For the decode settings you can distinguish between motorola and ; intel byte order. A decode setting cannot be empty. ;exif.encode_unicode = ISO-8859-15 ;exif.decode_unicode_motorola = UCS-2BE ;exif.decode_unicode_intel = UCS-2LE ;exif.encode_jis = ;exif.decode_jis_motorola = JIS ;exif.decode_jis_intel = JIS [Tidy] ; The path to a default tidy configuration file to use when using tidy ;tidy.default_config = /usr/local/lib/php/default.tcfg ; Should tidy clean and repair output automatically? ; WARNING: Do not use this option if you are generating non-html content ; such as dynamic images tidy.clean_output = Off [soap] ; Enables or disables WSDL caching feature. soap.wsdl_cache_enabled=1 ; Sets the directory name where SOAP extension will put cache files. soap.wsdl_cache_dir="/tmp" ; (time to live) Sets the number of second while cached file will be used ; instead of original one. soap.wsdl_cache_ttl=86400 ; Local Variables: ; tab-width: 4 ; End: Quote Link to comment Share on other sites More sharing options...
trq Posted March 1, 2008 Share Posted March 1, 2008 That is definately not a complete php.ini. You can see where your php.ini is by creating a page displaying your phpinfo. Quote Link to comment Share on other sites More sharing options...
phpnoobie9 Posted March 1, 2008 Author Share Posted March 1, 2008 That's weird according to phpinfo that's my phpini file. Well I spent too much time researching this subject. I just ended up contacting the host to enable it...that's why I pay them I guess. Just thought I'd give it a try. Quote Link to comment Share on other sites More sharing options...
trq Posted March 1, 2008 Share Posted March 1, 2008 According to that image, I would create a file /etc/php.d/gd.ini and place... extension=gd.so in it. Remove any other lines like it you may have added to any ini files. Then restart. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.