Hi,
I`m trying to install custombuild on a fresh installed xen vps with the default settings.
When the installer comes to the part where it should compile suphp, it gives me errors.
Please see the log:
I tried the suggested solution but that doenst fix the problem.
Google didnt return much on the error messages.
Any thought?
Thnx!
I`m trying to install custombuild on a fresh installed xen vps with the default settings.
When the installer comes to the part where it should compile suphp, it gives me errors.
Please see the log:
Code:
checking for dynamic Apache module support (via APXS)... ./configure: line 20370: /usr/sbin/apxs: No such file or directory
./configure: line 20370: /usr/sbin/apxs: No such file or directory
./configure: line 20370: /: is a directory
./configure: line 20382: /usr/sbin/apxs: No such file or directory
./configure: line 20383: /usr/sbin/apxs: No such file or directory
./configure: line 20388: /usr/sbin/apxs: No such file or directory
found at /usr/sbin/apxs (version )
checking for set-UID/set-GID mode... ok - using paranoid
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/apache/Makefile
config.status: creating src/apache2/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
Done Configuration.
Trying to make suPHP...
Making all in src
make[1]: Entering directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
make all-recursive
make[2]: Entering directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
Making all in apache
make[3]: Entering directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src/apache'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I -DSUPHP_PATH_TO_SUPHP=\"/usr/local/suphp/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c -o mod_suphp.lo mod_suphp.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../../src -I -DSUPHP_PATH_TO_SUPHP=\"/usr/local/suphp/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c mod_suphp.c -fPIC -DPIC -o .libs/mod_suphp.o
mod_suphp.c:24:19: error: httpd.h: No such file or directory
mod_suphp.c:25:25: error: http_config.h: No such file or directory
mod_suphp.c:26:26: error: http_request.h: No such file or directory
mod_suphp.c:27:23: error: http_core.h: No such file or directory
mod_suphp.c:28:27: error: http_protocol.h: No such file or directory
mod_suphp.c:29:23: error: http_main.h: No such file or directory
mod_suphp.c:30:22: error: http_log.h: No such file or directory
mod_suphp.c:31:25: error: util_script.h: No such file or directory
mod_suphp.c:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'MODULE_VAR_EXPORT'
mod_suphp.c:59: error: expected specifier-qualifier-list before 'table'
mod_suphp.c:66: error: expected ')' before '*' token
mod_suphp.c:84: error: expected ')' before '*' token
mod_suphp.c:125: error: expected ')' before '*' token
mod_suphp.c:145: error: expected ')' before '*' token
mod_suphp.c:184: error: expected ')' before '*' token
mod_suphp.c:203: error: expected ')' before '*' token
mod_suphp.c:214: error: expected ')' before '*' token
mod_suphp.c:232: error: expected ')' before '*' token
mod_suphp.c:246: error: expected ')' before '*' token
mod_suphp.c:262: error: expected ')' before '*' token
mod_suphp.c:276: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suphp_cmds'
mod_suphp.c:296: error: expected declaration specifiers or '...' before 'child_info'
mod_suphp.c: In function 'suphp_source_child':
mod_suphp.c:297: error: 'request_rec' undeclared (first use in this function)
mod_suphp.c:297: error: (Each undeclared identifier is reported only once
mod_suphp.c:297: error: for each function it appears in.)
mod_suphp.c:297: error: 'r' undeclared (first use in this function)
mod_suphp.c:297: error: expected expression before ')' token
mod_suphp.c:299: error: 'pool' undeclared (first use in this function)
mod_suphp.c:299: error: 'p' undeclared (first use in this function)
mod_suphp.c:302: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:302: warning: assignment makes pointer from integer without a cast
mod_suphp.c:309: warning: assignment makes pointer from integer without a cast
mod_suphp.c:310: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:310: warning: assignment makes pointer from integer without a cast
mod_suphp.c:312: warning: assignment makes pointer from integer without a cast
mod_suphp.c:313: error: 'NULL' undeclared (first use in this function)
mod_suphp.c:317: warning: assignment makes pointer from integer without a cast
mod_suphp.c:325: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:328: error: 'APLOG_MARK' undeclared (first use in this function)
mod_suphp.c:328: error: 'APLOG_ERR' undeclared (first use in this function)
mod_suphp.c:329: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:330: warning: incompatible implicit declaration of built-in function 'exit'
mod_suphp.c: At top level:
mod_suphp.c:336: error: expected declaration specifiers or '...' before 'child_info'
mod_suphp.c: In function 'suphp_child':
mod_suphp.c:337: error: 'request_rec' undeclared (first use in this function)
mod_suphp.c:337: error: 'r' undeclared (first use in this function)
mod_suphp.c:337: error: expected expression before ')' token
mod_suphp.c:338: error: 'core_dir_config' undeclared (first use in this function)
mod_suphp.c:338: error: 'core_conf' undeclared (first use in this function)
mod_suphp.c:339: error: 'pool' undeclared (first use in this function)
mod_suphp.c:339: error: 'p' undeclared (first use in this function)
mod_suphp.c:343: error: expected expression before ')' token
mod_suphp.c:351: warning: assignment makes pointer from integer without a cast
mod_suphp.c:353: error: 'NULL' undeclared (first use in this function)
mod_suphp.c:357: warning: assignment makes pointer from integer without a cast
mod_suphp.c:411: error: 'APLOG_MARK' undeclared (first use in this function)
mod_suphp.c:411: error: 'APLOG_ERR' undeclared (first use in this function)
mod_suphp.c:413: warning: incompatible implicit declaration of built-in function 'exit'
mod_suphp.c: At top level:
mod_suphp.c:421: error: expected ')' before '*' token
mod_suphp.c:505: error: expected ')' before '*' token
mod_suphp.c:789: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suphp_handlers'
mod_suphp.c:798: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'MODULE_VAR_EXPORT'
make[3]: *** [mod_suphp.lo] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src/apache'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
make: *** [all-recursive] Error 1
*******************************************
*******************************************
Cannot find /usr/local/bin/php
Please recompile php with custombuild, eg:
cd /usr/local/directadmin/custombuild
./build all d
This appears to be a 64-bit system.
a common cause of http/php compile failures is mentioned here:
http://help.directadmin.com/item.php?id=213
If you're running CentOS (not freebsd or debian) and applies to you, then type:
ln -sf /usr/lib64/libexpat.so /usr/lib/libexpat.so
ln -sf /usr/lib64/libm.so /usr/lib/libm.so
ln -sf /usr/lib64/libssl.so /usr/lib/libssl.so
cd /usr/local/directadmin/custombuild
./build all d
*******************************************
*******************************************
I tried the suggested solution but that doenst fix the problem.
Google didnt return much on the error messages.
Any thought?
Thnx!