Linux-Noob Forums
how to compile apache/mysql/php - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Server Administration (https://www.linux-noob.com/forums/forum-8.html)
+--- Forum: LAMP (https://www.linux-noob.com/forums/forum-83.html)
+--- Thread: how to compile apache/mysql/php (/thread-3502.html)

Pages: 1 2


how to compile apache/mysql/php - anyweb - 2008-03-04


ok i've just recompiled apache/mysql/php

 

and while recompiling php i wanted to add GD support

 

to add GD support for png and jpeg i used the following configure switches for php, making sure to first

 



Code:
yum install libpng and libjpeg




 

don't forget to make clean as below (it resolved my problem from multiple compiles)

 



Code:
make clean

./configure \--with-apxs=/usr/local/apache/bin/apxs \--with-mysql=/usr/local/mysql \--with-gd \--with-jpeg-dir \--with-png-dir

make

make install




 

the configuration flags \--with-gd \--with-jpeg-dir=/usr \--with-png-dir=/usr add our GD support for Zenphoto (image gallery software, example here)




how to compile apache/mysql/php - wds - 2008-03-17


Quote:ok i've just recompiled apache/mysql/php 

and while recompiling php i wanted to add GD support

 

to add GD support for png and jpeg i used the following configure switches for php, making sure to first

 



Code:
yum install libpng and libjpeg

<div>


 

don't forget to make clean as below (it resolved my problem from multiple compiles)

 



Code:
make clean

./configure \--with-apxs=/usr/local/apache/bin/apxs \--with-mysql=/usr/local/mysql \--with-gd \--with-jpeg-dir \--with-png-dir

make

make install




 

the configuration flags \--with-gd \--with-jpeg-dir=/usr \--with-png-dir=/usr add our GD support for Zenphoto (image gallery software, example here)

</div>
good