Please show your /usr/local/directadmin/custombuild/configure/ap2/configure.php55
There must be a typo.
Related:
http://help.directadmin.com/item.php?id=252
here is the error :
[root@server ~]# ./build php n
File already exists
MD5 Checksum on php-5.5.18.tar.gz passed.
Found /usr/local/directadmin/custombuild/php-5.5.18.tar.gz
Extracting ...
Done.
Configuring php-5.5.18...
./build: /usr/local/directadmin/custombuild/configure/ap2/configure.php55: /bin/sh^M: bad interpreter: No such file or directory
*** There was an error while trying to configure php. Check the configure file
[root@server custombuild]#
here is my .php55 file:
#!/bin/sh
./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-exif \
--enable-soap \
--enable-mbstring \
--with-icu-dir=/usr/local/icu \
--enable-intl
i use word pad to edit the file so maybe is the file that is not encoded in the right format after saving?