I'm running lampp 1.7.1 on lubuntu oneiric.
I need to add extension for php_gd.
I installed php5-gd by
sudo apt-get install php5-gd
Had a look at php.ini and noticed the line
;extension=php_gd.dll
Searched for something with php_gd and found
/usr/include/php5/ext/gd/php_gd.h
Tried to copy it to
sudo cp -av '/usr/include/php5/ext/gd/php_gd.h' '/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/php_gd.h'
sudo chmod 755 '/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/php_gd.h'
Added to php.ini
extension=php_gd.h
Restarted lampp and got this error:
PHP Warning: PHP Startup: Unable to load dynamic library
'/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/php_gd.h' -
/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/php_gd.h:
invalid ELF header in Unknown on line 0
Why you are trying to install xampp/lampp if you already have everything on your Ubuntu repository ?
Anyway to answer to your problem, you are trying to load a header file as a module. :) It will not work.
For your lampp probably you should copy /usr/lib/php5/20090626/gd.so to /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/, but I don't know if the lampp php is compatible with Ubuntu php. Just try it.
For configuration just use:
and it should work.
You can try it by installing the
lamp development
package instead ofphp-gd
Use the link to check out for downloading the lamp development package.