URGENT please

duke28

Verified User
Joined
Oct 30, 2005
Messages
311
Location
Montreal - Canada
a new clean install and i have this error for build php5

/usr/local/directadmin/custombuild/custom/suphp/configure.php5: line 28: --enable-ftp: command not found

i did it :

cd /usr/local/directadmin/custombuild
./build update
./build php n


i have this on the file

#!/bin/sh
"./configure" \
"--prefix=/usr/local/php5" \
"--enable-force-cgi-redirect" \
"--enable-fastcgi" \
"--with-config-file-path=/usr/local/etc/php5/cgi" \
"--with-curl=/usr/local/lib" \
"--with-gd" \
"--with-gettext" \
"--with-jpeg-dir=/usr/local/lib" \
"--with-freetype-dir=/usr/local/lib" \
"--with-kerberos" \
"--with-openssl" \
"--with-mcrypt" \
"--with-mhash" \
"--with-mysql=/usr" \
"--with-mysqli=/usr/bin/mysql_config" \
"--with-pear" \
"--with-png-dir=/usr/local/lib" \
"--with-zlib" \
"--with-zlib-dir=/usr/local/lib" \
"--enable-zip" \
"--enable-gd-native-ttf" \
"--with-iconv=/usr/local" \
"--enable-bcmath" \
"--enable-calendar" \
"--enable-ftp" \
"--enable-magic-quotes" \
"--enable-sockets" \
"--enable-exif" \
"--enable-soap" \
"--enable-pdo=shared" \
"--with-pdo-mysql=shared" \
"--with-sqlite=shared" \
"--with-pdo-sqlite=shared" \
"--with-dom=/usr/lib" \
"--with-dom-exslt=/usr/lib" \
"--with-dom-xslt=/usr/lib" \
"--enable-xslt" \
"--with-xslt" \
"--enable-mbstring"



/usr/local/directadmin/custombuild/custom/suphp/configure.php5: line 28: --enable-ftp: command not found

so why please ?
 
It must be related to a missing "\" before --enable-ftp.
 
Last edited:
and i have a good question ..


how upgrade apache 1.3.x installed by the old customapache to apache 2.2 with custombuild with all httpd.conf rewrited with all httpd.vhosts.conf settings of 2.2 ?

sorry for my english..
 
Code:
cd /usr/local/directadmin/custombuild
./build update
./build all d
 
humm

i not going to lost anything ?
already have many users on this server..

i need to be really sure..
all has been installed with customApache not custombuild
 
You won't lose anything except rewritten configuration files.
 
dont need to do ./build convert ?

all httpd.conf of all user from apache 1.3 will be convert to apache 2.2

just with :

cd /usr/local/directadmin/custombuild
./build update
./build all d

???

just for be sure..
thanks
 
again one question

do you know why with apache1.3 for change to php4 , i just use it normally in .htaccess :

AddHandler x-httpd-php4 .php

and now with apache 2.2 i need to put :

<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler x-httpd-php4 .php
</FilesMatch>

any solution for just use AddHandler x-httpd-php4 .php ?
because its not working anymore with just this comment..

but i love custombuild !!
 
[root@box1 custombuild]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 29 of /usr/local/directadmin/data/users/abmsh/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration


i try the same thing on another server

its have update apache 1.3 to apache 2.2

and now its said :

[root@box1 custombuild]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 29 of /usr/local/directadmin/data/users/abmsh/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration


httpd.conf of user dont has been rewrited for the new apache...

what i do now ?
all is down
 
Back
Top