You are not logged in.
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!
Offline
Post the output of
$php -i
Make sure you have installed php-gd.
Last edited by ganastasiou (2013-08-10 19:20:39)
Offline
Here is the output of php -i.
http://pastebin.com/p3Et6nU5.
I have php-gd installed.
Offline
Paste php.ini. Gd extension isn't loaded.
Offline
Here is the php.ini file contents
http://pastebin.com/Vm3JJEvm
Offline
Weird, check in /usr/lib/php/modules if gd.so exists, also check its permissions.
Offline
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
Offline
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
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.
@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
here is my Apache error_log contents
http://pastebin.com/sSEPpMgz
Offline
here is my Apache error_log contents
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
Dinesh raja wrote:here is my Apache error_log contents
http://pastebin.com/sSEPpMgzIs 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
Gd.so is available in /usr/lib/php/modules :-(
Offline
Mouse wrote:Dinesh raja wrote:here is my Apache error_log contents
http://pastebin.com/sSEPpMgzIs 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?
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
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
My final question (you can forget the rest) - is libpng (name of the package; not directly related to PHP) installed?
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
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
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
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
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
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