LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > [solved] Configuring PHP with Litespeed for Jpeg GD Support

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2010, 09:47 AM
QuickVPS QuickVPS is offline
New Member
 
Join Date: Nov 2010
Posts: 3
Default [solved] Configuring PHP with Litespeed for Jpeg GD Support

I have recently installed Litespeed Web Server and have been overall happy with it and it's playing well with our websites, but in particular I am having trouble getting it to support Jpeg GD.

I configured PHP 5.2.14 with the following attributes on a CentOS 5 64bit system with cPanel:
'--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-libdir=lib64' '--with-mysql' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-litespeed' '--with-jpeg-dir' '--with-png-dir'

I have not specified a directory for Jpeg and PNG because it's in the default /usr/lib and /usr/lib64 directories (I have tried specifying the directory as well with no luck).

The .so files are definitely in boh of those directories:

[root@server lib]#ls *libjpeg*
libjpeg.so libjpeg.so.62 libjpeg.so.62.0.0

[root@server lib64]#ls *libjpeg*
libjpeg.so libjpeg.so.62 libjpeg.so.62.0.0

And the correct RPMs are installed:

[root@server public_html]#rpm -qa|grep jpeg
libjpeg-6b-37
libjpeg-6b-37
libjpeg-devel-6b-37
libjpeg-devel-6b-37

Could someone recommend a way forward to get PHP to play with Jpeg GD?

Here is the full build log: quickvps.co.uk/buildlog.txt

Last edited by NiteWave; 11-18-2010 at 06:13 PM..
Reply With Quote
  #2  
Old 11-18-2010, 11:30 AM
QuickVPS QuickVPS is offline
New Member
 
Join Date: Nov 2010
Posts: 3
Found the answer in the end. Even though the .so files are in /usr/lib/ and /usr/lib64, the build has to be as follows:
'--with-jpeg-dir=/usr'
Reply With Quote
  #3  
Old 12-12-2011, 06:49 PM
csdco csdco is offline
Member
 
Join Date: Jun 2011
Posts: 14
Worked great, thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:11 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.