Hello,
I hope this request for help isn't too 'off-list'. I have setup a LAMP server in a chrooted environment and mediawiki (latest release) is working except it can not find the GD libraries (which I have in the chrooted environment).
/jail/www/usr/lib/libgd.a /jail/www/usr/lib/libgd.la /jail/www/usr/lib/libgd.so.2.0.0 /jail/www/usr/lib/libgd.so -> libgd.so.2.0.0 /jail/www/usr/lib/libgd.so.2 -> libgd.so.2.0.0
/jail/www/usr/lib/libjpeg.so.62.0.0 /jail/www/usr/lib/libjpeg.so.62 -> libjpeg.so.62.0.0
/jail/www/usr/lib/libpng12.so.0.1.2.8 /jail/www/usr/lib/libpng12.so.0 -> libpng12.so.0.1.2.8 /jail/www/usr/lib/libpng.so -> libpng12.so.0.1.2.8 /jail/www/usr/lib/libpng.so.3 -> libpng12.so.0.1.2.8
(all of these were taken from /usr/lib)
I was hoping someone might have an idea as to what I'm doing wrong.
Here's my configure line for php-4.4.1 ./configure --with-zlib --with-jpeg --with-png --with-gd \ --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.34 \ --enable-safe-mode
Here's my configure line for apache_1.3.34 ./configure --prefix=/usr/local/apache --disable-module=all \ --server-uid=apache --server-gid=apache --enable-module=access \ --enable-module=log_config --enable-module=dir \ --enable-module=mime --enable-module=auth \ --activate-module=src/modules/extra/mod_security \ --activate-module=src/modules/php4/libphp4.a
MediaWiki 1.5.3 installation Checking environment... PHP 4.4.1: ok PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. PHP is configured with no memory_limit. Have zlib support; enabling output compression. Neither Turck MMCache nor eAccelerator are installed, can't use object caching functions Couldn't find GD library or ImageMagick; image thumbnailing disabled. Installation directory: /www/wiki Script URI path: /wiki Trying to connect to MySQL on localhost as root... Connected as root (automatic) Connected to 4.1.16-log; enabling MySQL 4 enhancements Database wikidb exists There are already MediaWiki tables in this database. Checking if updates are needed... DB user account ok
Thanks, Jim
James Miller wrote:
I hope this request for help isn't too 'off-list'. I have setup a LAMP server in a chrooted environment and mediawiki (latest release) is working except it can not find the GD libraries (which I have in the chrooted environment).
1) Check phpinfo() output for the config options and GD module presence 2) Check Apache error log for errors on PHP startup 3) Use ldd on the PHP libraries to check that they are linked. 4) Check configure & compilation logs for PHP to make sure they were actually compiled in.
Here's my configure line for php-4.4.1 ./configure --with-zlib --with-jpeg --with-png --with-gd \ --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.34 \ --enable-safe-mode
Don't forget that a lot of these configure options are really *suggestions*. If it doesn't find some library you asked for, it'll just print a one-line notice about it (hidden among the other thousand lines) and configure without it. If you have any trouble, you should to review the configure output and the log to make sure that everything you asked for got enabled.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org