php configure.php53 mod_php

bartik

Verified User
Joined
Nov 10, 2006
Messages
23
Hi, i have server centos 6.5, cb 2.0, apache 2.0 + mod_php
create a new configure.php53 (/usr/local/directadmin/custombuild/configure/ap2/configure.php53)
Code:
#!/bin/sh
./configure \
	--prefix=/usr/local/php53 \
	--program-suffix=53 \
	--enable-fpm \
	--with-config-file-scan-dir=/usr/local/php53/lib/php.conf.d \
	--with-curl=/usr/local/lib \
	--with-gd \
	--enable-gd-native-ttf \
	--with-gettext \
	--with-jpeg-dir=/usr/local/lib \
	--with-freetype-dir=/usr/local/lib \
	--with-libxml-dir=/usr/local/lib \
	--with-kerberos \
	--with-openssl \
	--with-mcrypt \
	--with-mhash \
	--with-mysql=mysqlnd \
	--with-mysql-sock=/var/lib/mysql/mysql.sock \
	--with-mysqli=mysqlnd \
	--with-pcre-regex=/usr/local \
	--with-pdo-mysql=mysqlnd \
	--with-pear \
	--with-png-dir=/usr/local/lib \
	--with-xsl \
	--with-zlib \
	--with-zlib-dir=/usr/local/lib \
	--enable-zip \
	--with-iconv=/usr/local \
	--enable-bcmath \
	--enable-calendar \
	--enable-ftp \
	--enable-sockets \
	--enable-soap \
	--enable-mbstring \
	--with-icu-dir=/usr/local/icu \
	–-enable-exif

before

Code:
cd /usr/local/directadmin/custombuild/
./build clean
./build php

not work new configure, configure installed is a default:
Code:
#!/bin/sh
./configure \
	--prefix=/usr/local/php53 \
	--program-suffix=53 \
	--enable-fpm \
	--with-config-file-scan-dir=/usr/local/php53/lib/php.conf.d \
	--with-curl=/usr/local/lib \
	--with-gd \
	--enable-gd-native-ttf \
	--with-gettext \
	--with-jpeg-dir=/usr/local/lib \
	--with-freetype-dir=/usr/local/lib \
	--with-libxml-dir=/usr/local/lib \
	--with-kerberos \
	--with-openssl \
	--with-mcrypt \
	--with-mhash \
	--with-mysql=mysqlnd \
	--with-mysql-sock=/var/lib/mysql/mysql.sock \
	--with-mysqli=mysqlnd \
	--with-pcre-regex=/usr/local \
	--with-pdo-mysql=mysqlnd \
	--with-pear \
	--with-png-dir=/usr/local/lib \
	--with-xsl \
	--with-zlib \
	--with-zlib-dir=/usr/local/lib \
	--enable-zip \
	--with-iconv=/usr/local \
	--enable-bcmath \
	--enable-calendar \
	--enable-ftp \
	--enable-sockets \
	--enable-soap \
	--enable-mbstring \
	--with-icu-dir=/usr/local/icu \
	–-enable-intl


Why ? Is bug ?
 
Apache configuration file: /usr/local/directadmin/custombuild/configure/ap2/configure.apache
PHP (default) php.ini file: /usr/local/lib/php.ini
PHP (default) configuration file: /usr/local/directadmin/custombuild/configure/ap2/configure.php53
PureFTPD configuration file: /usr/local/directadmin/custombuild/configure/pureftpd/configure.pureftpd
Dovecot configuration file: /usr/local/directadmin/custombuild/configure/dovecot/configure.dovecot
[root@server1 custombuild]#
i search in forum this, i read http://help.directadmin.com/item.php?id=252, no help me :(
Please help me.

i write new configure, path /usr/local/directadmin/custombuild/configure/ap2/configure.php53.
No effect.
 
Code:
mkdir -p /usr/local/directadmin/custombuild/configure/ap2/
cp -p /usr/local/directadmin/custombuild/configure/ap2/configure.php53 /usr/local/directadmin/custombuild/custom/ap2/configure.php53

Now edit /usr/local/directadmin/custombuild/custom/ap2/configure.php53 and reinstall apache then.
 
okey, create /usr/local/directadmin/custombuild/custom/ap2/configure.php53 and
cd /usr/local/directadmin/custombuild/
./build clean
./build php

no effect now, why ?
and reinstall apache then. ?
reinstall php and apache ?
 
What would you like to add to the configuration file? Rebuild of apache is not needed.
 
i like add to the configuration file add
–-enable-exif.
1. create file /usr/local/directadmin/custombuild/custom/ap2/configure.php53
#!/bin/sh
./configure \
--prefix=/usr/local/php53 \
--program-suffix=53 \
--enable-fpm \
--with-config-file-scan-dir=/usr/local/php53/lib/php.conf.d \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-libxml-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysqli=mysqlnd \
--with-pcre-regex=/usr/local \
--with-pdo-mysql=mysqlnd \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--with-icu-dir=/usr/local/icu \
–-enable-exif
before
cd /usr/local/directadmin/custombuild/
./build clean
./build php

no new configure build, view phpinfo(); why?

'./configure' '--with-apxs2' '--with-config-file-scan-dir=/usr/local/lib/php.conf.d' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-libxml-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=mysqlnd' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=mysqlnd' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--enable-soap' '--enable-mbstring' '--with-icu-dir=/usr/local/icu' '--enable-intl'
 
please write insturction php compile configure 5.3...


i need help

#!/bin/sh
./configure \
--prefix=/usr/local/php53 \
--program-suffix=53 \
--enable-fpm \
--with-config-file-scan-dir=/usr/local/php53/lib/php.conf.d \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-libxml-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=mysqlnd \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-mysqli=mysqlnd \
--with-pcre-regex=/usr/local \
--with-pdo-mysql=mysqlnd \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xsl \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--with-icu-dir=/usr/local/icu \
–-enable-exif
 
Last edited:
Invalid command 'php_value'

Hi , i got some problem about Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration

& I want to install 2 file libphp5.so+libphp5-zts.so to enable LoadModule php in apache

But i can't , so could any one help me?
 
@Bartik

–-enable-exif is wrong.
It must be:
--enable-exif

For computers there is a diffrence.

@Nda888

Where do you get that Error?
 
Last edited:
That looks really odd?

--enable-exif looks fine to me.

If you look at his config file the last rule he is using another character.
–- instead of -- that's why his build is failing and using his old php instead.
 
Back
Top