You are not logged in.

#1 2013-08-10 16:54:37

Dinesh raja
Member
Registered: 2013-05-08
Posts: 30

PHP extension "gd" must be loaded. error while installing Magento.

Hi,everyone i am trying to install Magento in my arch linux localhost.
I have installed LAMP and things are working good but when i tried to install Magento in my arch system during the configuration time i am getting the error

PHP extension "gd" must be loaded.

I have enabled "extension=gd.so" in my /etc/php/php.ini and restarted httpd service but still i am getting the same error.

Please help me to fix this issue! sad

Offline

#2 2013-08-10 19:17:18

ganastasiou
Member
Registered: 2010-02-03
Posts: 56

Re: PHP extension "gd" must be loaded. error while installing Magento.

Post the output of

$php -i

Make sure you have installed php-gd.

Last edited by ganastasiou (2013-08-10 19:20:39)

Offline

#3 2013-08-11 02:49:45

Dinesh raja
Member
Registered: 2013-05-08
Posts: 30

Re: PHP extension "gd" must be loaded. error while installing Magento.

Here is the output of php -i.
http://pastebin.com/p3Et6nU5.

I have php-gd installed.

Offline

#4 2013-08-11 10:20:49

ganastasiou
Member
Registered: 2010-02-03
Posts: 56

Re: PHP extension "gd" must be loaded. error while installing Magento.

Paste php.ini. Gd extension isn't loaded.

Offline

#5 2013-08-11 13:03:30

Dinesh raja
Member
Registered: 2013-05-08
Posts: 30

Re: PHP extension "gd" must be loaded. error while installing Magento.

Here is the php.ini file contents
http://pastebin.com/Vm3JJEvm

Offline

#6 2013-08-11 13:22:43

ganastasiou
Member
Registered: 2010-02-03
Posts: 56

Re: PHP extension "gd" must be loaded. error while installing Magento.

Weird, check in /usr/lib/php/modules if gd.so exists, also check its permissions.

Offline

#7 2013-08-11 13:36:35

Dinesh raja
Member
Registered: 2013-05-08
Posts: 30

Re: PHP extension "gd" must be loaded. error while installing Magento.

Yes i am having gd.so in /usr/lib/php/modules and its having read permission for groups and others and read & write for root
I tried changing the permission as read and write for all after that i restarted httpd but still same error sad

Offline

#8 2013-08-11 13:48:52

Mouse
Member
Registered: 2013-08-08
Posts: 7

Re: PHP extension "gd" must be loaded. error while installing Magento.

Have you tried to reinstall it (php-gd) and restart Apache? Can you post your Apache error_log (/var/log/httpd/error_log)?

Last edited by Mouse (2013-08-11 13:49:43)

Offline

#9 2013-08-11 13:49:23

ganastasiou
Member
Registered: 2010-02-03
Posts: 56

Re: PHP extension "gd" must be loaded. error while installing Magento.

To check for gd extension, check with php -i

gd

GD Support => enabled
GD Version => bundled (2.1.0 compatible)
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.5.15
WBMP Support => enabled
XBM Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 0 => 0

I don't know how i can help you more with this issue, report it or wait for other reply. sad

@Mouse: if you check php -i output, you will see that php(as standalone,without apache) cannot "use" gd extension. So apache or http aren't the source of the problem for now.

Last edited by ganastasiou (2013-08-11 13:57:02)

Offline

#10 2013-08-11 16:12:03

Dinesh raja
Member
Registered: 2013-05-08
Posts: 30

Re: PHP extension "gd" must be loaded. error while installing Magento.

here is my Apache error_log contents sad
http://pastebin.com/sSEPpMgz

Offline

#11 2013-08-11 17:53:47

Mouse
Member
Registered: 2013-08-08
Posts: 7

Re: PHP extension "gd" must be loaded. error while installing Magento.

Dinesh raja wrote:

here is my Apache error_log contents sad
http://pastebin.com/sSEPpMgz

Is php.ini extension_dir pointing to the right directory (/usr/libs/php/modules)?

cat /etc/php/php.ini | grep extension_dir

Also, please let us know the output of:

ls -al /usr/lib/php/modules/ | grep gd.so

Offline

#12 2013-08-11 18:10:44

ganastasiou
Member
Registered: 2010-02-03
Posts: 56

Re: PHP extension "gd" must be loaded. error while installing Magento.

Mouse wrote:
Dinesh raja wrote:

here is my Apache error_log contents sad
http://pastebin.com/sSEPpMgz

Is php.ini extension_dir pointing to the right directory (/usr/libs/php/modules)?

cat /etc/php/php.ini | grep extension_dir

Also, please let us know the output of:

ls -al /usr/lib/php/modules/ | grep gd.so

@Mouse, do you read previous posts?

Offline

#13 2013-08-11 18:12:56

Dinesh raja
Member
Registered: 2013-05-08
Posts: 30

Re: PHP extension "gd" must be loaded. error while installing Magento.

Gd.so is available in /usr/lib/php/modules :-(

Offline

#14 2013-08-11 18:18:34

Mouse
Member
Registered: 2013-08-08
Posts: 7

Re: PHP extension "gd" must be loaded. error while installing Magento.

ganastasiou wrote:
Mouse wrote:
Dinesh raja wrote:

here is my Apache error_log contents sad
http://pastebin.com/sSEPpMgz

Is php.ini extension_dir pointing to the right directory (/usr/libs/php/modules)?

cat /etc/php/php.ini | grep extension_dir

Also, please let us know the output of:

ls -al /usr/lib/php/modules/ | grep gd.so

@Mouse, do you read previous posts?

What are you referring to?

Dinesh raja wrote:

Gd.so is available in /usr/lib/php/modules :-(

You didn't answer whether php.ini extension_dir is pointing to the right directory or not.

Offline

#15 2013-08-11 18:22:07

ganastasiou
Member
Registered: 2010-02-03
Posts: 56

Re: PHP extension "gd" must be loaded. error while installing Magento.

Mouse wrote:
ganastasiou wrote:
Mouse wrote:

Is php.ini extension_dir pointing to the right directory (/usr/libs/php/modules)?

cat /etc/php/php.ini | grep extension_dir

Also, please let us know the output of:

ls -al /usr/lib/php/modules/ | grep gd.so

@Mouse, do you read previous posts?

What are you referring to?

Dinesh raja wrote:

Gd.so is available in /usr/lib/php/modules :-(

You didn't answer whether php.ini extension_dir is pointing to the right directory or not.

He has pasted the php.ini earlier that shows where extension_dir is pointing to.

Dinesh raja report it.

Offline

#16 2013-08-11 18:31:03

Mouse
Member
Registered: 2013-08-08
Posts: 7

Re: PHP extension "gd" must be loaded. error while installing Magento.

My final question (you can forget the rest) - is libpng (name of the package; not directly related to PHP) installed?

ganastasiou wrote:

He has pasted the php.ini earlier that shows where extension_dir is pointing to.

Dinesh raja report it.

My bad.

Last edited by Mouse (2013-08-11 18:31:25)

Offline

#17 2013-08-12 14:43:47

Dinesh raja
Member
Registered: 2013-05-08
Posts: 30

Re: PHP extension "gd" must be loaded. error while installing Magento.

Mouse wrote:

My final question (you can forget the rest) - is libpng (name of the package; not directly related to PHP) installed?

I couldn't understand the meaning of this quote and libpng is not related to my PHP .

Offline

#18 2013-08-12 15:24:28

Mouse
Member
Registered: 2013-08-08
Posts: 7

Re: PHP extension "gd" must be loaded. error while installing Magento.

Dinesh raja wrote:
Mouse wrote:

My final question (you can forget the rest) - is libpng (name of the package; not directly related to PHP) installed?

I couldn't understand the meaning of this quote and libpng is not related to my PHP .

This is a line (stripped down to what matters) from your error_log:

libpng16.so.16: cannot open shared object file: No such file or directory

While libpng isn't directly related to PHP, it IS a dependency for php-gd.

Is it installed? Have you tried to reinstall it?

Offline

#19 2013-08-12 17:13:59

Dinesh raja
Member
Registered: 2013-05-08
Posts: 30

Re: PHP extension "gd" must be loaded. error while installing Magento.

Mouse wrote:
Dinesh raja wrote:
Mouse wrote:

My final question (you can forget the rest) - is libpng (name of the package; not directly related to PHP) installed?

I couldn't understand the meaning of this quote and libpng is not related to my PHP .

This is a line (stripped down to what matters) from your error_log:

libpng16.so.16: cannot open shared object file: No such file or directory

While libpng isn't directly related to PHP, it IS a dependency for php-gd.

Is it installed? Have you tried to reinstall it?

Yes mouse today i tried reinstalling libpng and tried the installation but again same error :-(

Offline

#20 2013-08-12 17:25:43

ganastasiou
Member
Registered: 2010-02-03
Posts: 56

Re: PHP extension "gd" must be loaded. error while installing Magento.

Dinesh raja wrote:
Mouse wrote:
Dinesh raja wrote:

I couldn't understand the meaning of this quote and libpng is not related to my PHP .

This is a line (stripped down to what matters) from your error_log:

libpng16.so.16: cannot open shared object file: No such file or directory

While libpng isn't directly related to PHP, it IS a dependency for php-gd.

Is it installed? Have you tried to reinstall it?

Yes mouse today i tried reinstalling libpng and tried the installation but again same error :-(

Report it.

Offline

#21 2014-03-23 18:33:11

temyong
Member
Registered: 2014-03-23
Posts: 1

Re: PHP extension "gd" must be loaded. error while installing Magento.

look at the apache modules, mine is at /etc/php5/apache2/conf.d/20-gd.ini

; configuration for php GD module
; priority=20
; extension=gd.so

Even if the module exists and is installed on the system, it is commented out on the module config. Uncomment it, then restart Apache, then you should be fine.

Offline

Board footer

Powered by FluxBB