Uutiset:

Join the Facebook Fan Page.

Main Menu
Advertisement:

Trouble uploading avatars

Aloittaja robrose, tammikuu 19, 2005, 01:18:04 IP

« edellinen - seuraava »

robrose

 ???
We're running Apache on Linux 8.0.
I get the error:
imagecreatetruecolor(): requires GD 2.0 or later
when attempting to upload an avatar.

I verified we're running 1.8.4-9 (through Webmin).
The only way I know how to install is through a RPM file through Webmin.  I attempted to download and install from the official GD site hxxp:www.boutell.com/gd/ [nonactive], but got thouroughly confused.

Does anyone know where I can download the GD 2.0 rpm file for Linux 8.0.
I looked on hxxp:rpmfind.net [nonactive], but the 2.0 versions didn't seem to apply to the Red Hat 8.0 (except for the older 1.8.4-9 version).

If anyone can please direct me in the right direction, It would be most appreciated!

-Rob
Watch out for those ID-10-T errors. You might end up looking like an ID10T...

andrea

Is GD not included in PHP install packages?

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



robrose

I wasn't aware that it was.   ::)
We're running php version 4.2.2 at the moment.
...
I just noticed today (via this site) that we need to upgrade php due to vulnerabilities.
Can you recommend the best location and/or method of upgrading.
By that, I mean easiest and least likely to cause our site to be down.

-Rob
Watch out for those ID-10-T errors. You might end up looking like an ID10T...

[Unknown]

Great place for rpms:
http://rpm.pbone.net/

Anyway, I suggest you just get PHP off php.net and compile it manually.  It's really this simple:

./configure (configure string; you can find this using a phpinfo)
make
su
make install
/etc/init.d/httpd restart
exit

What is phpinfo.php?

-[Unknown]

robrose

Are you telling me that I need to issue the ./configure command with all of the settings like the existing phpinfo shows...

Or are most of them set by default?
Looking at phpinfo on site has all of the following...

'./configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs'
Watch out for those ID-10-T errors. You might end up looking like an ID10T...

[Unknown]

'./configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs'

That should be fine.  I took out a couple of the more extraneous options.

-[Unknown]

robrose

I finally got a chance to attempt the install of php v4.3.10.
We're currently running Apache 2.0.40.  (Determined through Webmin interface.)

unfortunately I get the error:

./configure: line 5086: /usr/sbin/apxs: no such file or directory
configure: error: Aborting

I thought this was strange since the phpinfo.php on the site as it is now shows that location (/usr/sbin/apxs).

I'm trying to find out what apxs is, any info/help is appreciated... Do I even need this option?
Watch out for those ID-10-T errors. You might end up looking like an ID10T...

[Unknown]

Definitely.  It is Apache.

Try doing this, then:

# updatedb
(go eat lunch...)
# locate apxs

-[Unknown]

robrose

I get the response:
/var/www/manual/programs/apxs.html

Is this what I'm supposed to find? A html file?
The updatedb only takes a little over 30 seconds to complete.
I get the response listed above with the locate apxs command...
Watch out for those ID-10-T errors. You might end up looking like an ID10T...

[Unknown]

And nothing else?  I guess that's probably because Apache wasn't compiled from source.  Can you try to get the apache-devel package (or similar) for your version of Apache?

-[Unknown]

wise

if you are running cpanel - log into whm, update server software and update apache. Make sure that php is checked and scroll down to make sure GD is there also.

It iwll do it for oyu

robrose

  wise, sorry no cpanel.  This is a dedicated server that was set up originally by Dellhost.  Not really much in the way of frills or extras.   I installed Webmin on it just to make it a little easier to do most tasks.
  I looked at cpanel, the price is just too high.
  Does anyone know if there is a way do this through Webmin?

  [unknown] - the apache-devel package, would that be a rpm file?  Something I could hopefully find on hxxp:rpm.pbone.net [nonactive]?
Watch out for those ID-10-T errors. You might end up looking like an ID10T...

robrose

FYI...

I was able to locate the development tools via Red Hat Network.
Loaded the rpm on the server, verified that apxs is in /usr/sbin/ directory.

Next step will be the installation of the new php4.3.10.
This will be done tomorrow.  That way in case there is any
unforeseen problem, I have the weekend to fix it.
I'll let you know the results...
Watch out for those ID-10-T errors. You might end up looking like an ID10T...

robrose

Attempted to install php again...
Now I'm getting the following errors:

apxs:Error: Invalid query string `APU_BINDIR'.
apxs:Error: Invalid query string `APR_BINDIR'.
./configure: line 1: /apr-config: No such file or directory
./configure: line 1: /apu-config: No such file or directory
configure: error: Please note that Apache version >= 2.0.44 is required.

According to the info on hxxp:php.net [nonactive], the 4.3.10 version is supposed to be compatible with Apache version 4.2.0 and later (hxxp:us2.php.net/manual/en/install.unix.apache2.php [nonactive]).  Since we're running version 4.2.2, I thought we'd be okay   ???

I'm not sure I feel comfortable upgrading Apache...
Any help or insight?
:-\

By the way, I did a locate on 'apr' and 'apu', I found apu.h under /usr/include/httpd/ as well as apr.h (same directory)
Watch out for those ID-10-T errors. You might end up looking like an ID10T...

[Unknown]

Sorry!  You need apache2-devel.

-[Unknown]

robrose

The rpm file that I uploaded and installed was:
httpd-devel-2.0.40-11.9.i386.rpm

The info on Red Hat Network was that this was the developement package for Apache 2.0.40

???
Watch out for those ID-10-T errors. You might end up looking like an ID10T...

[Unknown]

Strange.  Sorry, I'm not great with RPMs (I've used Debian more than Redhat...)

Perhaps a better place for these sort of questions is something like webhostingtalk.com?  I just know that the percentage of people knowledgable in this area is much higher there.

-[Unknown]

Advertisement: