Jump to content

PHP Version 5.1.6 phpinfo doesn't show gd?


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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:


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.