httpd not running, php and apache won't build

wzird

New member
Joined
Oct 15, 2009
Messages
4
I'm trying to rebuild PHP and apache with custombuild, but when I use './build php n' I receive this error:

Code:
File already exists:	php-.tar.gz
MD5 Checksum on php-.tar.gz passed.
Found /usr/local/directadmin/custombuild/php-.tar.gz
Extracting ...

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
Done.
./build: line 3174: cd: php-: No such file or directory
Configuring php-...
/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 3: ./configure: is a directory

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file


When I use './build apache n' I get a similar problem:


Code:
File already exists:	httpd-.tar.gz
MD5 Checksum on httpd-.tar.gz passed.
File already exists:	httpd_2
File already exists:	httpd_2_freebsd
File already exists:	httpd_2_debian
Backing up certificate and key, and turning off httpd for DirectAdmins's check.
Found /usr/local/directadmin/custombuild/httpd-.tar.gz
Extracting /usr/local/directadmin/custombuild/httpd-.tar.gz...

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors
./build: line 5995: cd: httpd-: No such file or directory
Configuring httpd-
/usr/local/directadmin/custombuild/configure/ap2/configure.apache: line 3: ./configure: is a directory

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file


Both seem to be caused by the './configure: is a directory' thing, which I don't understand. I'm running CentOS 5.3. Any suggestions would be appreciated.

Also when I attempt to start httpd, it returns:

Code:
Starting httpd: Syntax error on line 30 of /usr/local/directadmin/data/users/xvps/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
 
Last edited:
seems like packages you downloaded are corrupted, i woould suggest you to delete apache and php files

Code:
rm -rf httpd*
rm -rf php*
./build clean
./build update
./build php d
./build apache
 
Back
Top