Discussion about CustomBuild

I'm getting the same error using custombuild

Apache 2.x
PHP 5.2.5

I was able to unpack PHP and manually configure it using the configure.php5 script and it worked. But I can't use custombuild because of this error.

=C=
 
The problem seems the old version of CentOS (at least in my case it was 3.8). I also got PHP 5.2.5 installed, but it seems hard to upgrade MySQL. Someone from DirectAdmin also gave me good advise, saying that upgrading MySQL 4.0X to 5.x would mean that all passwords need to be reset. ... On Plesk servers I could just solve that by adding one line to "my.cnf" ...not sure if that would alos work with DirectAdmin.

John
 
Hello everyone,
I have a problem with installing custombuild,
When i write ./build update_data
ı get perrmission problem, -bash: ./build: Permission denied

What can i do ?
Thanks
 
Hello All:

This took me two nights already ... CentOS 3.8, with Apache 1.3.4, PHP 4.42, trying to upgrade to apache 2.2.8 (worked) and PHP 5.2.5 and MySQL 5.0x.

P r o b l e m is libxslt. The autoinstaller as well as issuing
./build libxslt d
manually give me this error below. Anyone has any idea how to solve this?

Thanks,
John


types.c: In function `libxml_xmlXPathObjectPtrConvert':
types.c:432: syntax error before "PyBool_Check"
types.c:432: warning: implicit declaration of function `PyBool_Check'
types.c:432: syntax error before '{' token
types.c: At top level:
types.c:445: warning: type defaults to `int' in declaration of `str'
types.c:445: `obj' undeclared here (not in a function)
types.c:446: `obj' undeclared here (not in a function)
types.c:446: warning: initialization makes integer from pointer without a cast
types.c:446: initializer element is not constant
types.c:446: warning: data definition has no type or storage class
types.c:447: warning: type defaults to `int' in declaration of `ret'
types.c:447: warning: passing arg 1 of `xmlXPathWrapString' makes pointer from integer without a cast
types.c:447: warning: initialization makes integer from pointer without a cast
types.c:447: initializer element is not constant
types.c:447: warning: data definition has no type or storage class
types.c:448: syntax error before '}' token
types.c:455: warning: type defaults to `int' in declaration of `set'
types.c:455: conflicting types for `set'
types.c:453: previous declaration of `set'
types.c:455: warning: data definition has no type or storage class
types.c:457: syntax error before "for"
types.c:462: warning: type defaults to `int' in declaration of `cur'
types.c:462: conflicting types for `cur'
types.c:452: previous declaration of `cur'
types.c:462: warning: data definition has no type or storage class
types.c:463: syntax error before "if"
types.c:470: `inst' undeclared here (not in a function)
types.c:472: syntax error before "if"
types.c:477: syntax error before "if"
types.c:477: syntax error before '&&' token
types.c:477: warning: type defaults to `int' in declaration of `__result'
types.c:477: warning: data definition has no type or storage class
types.c:477: syntax error before '}' token
types.c:477: conflicting declarations of `__result'
types.c:477: `__result' previously declared here
types.c:477: warning: `__result' was declared `extern' and later `static'
types.c:477: `type' undeclared here (not in a function)
types.c:477: `__s2' undeclared here (not in a function)
types.c:477: syntax error before "if"
types.c:477: warning: type defaults to `int' in declaration of `__result'
types.c:477: conflicting declarations of `__result'
types.c:477: `__result' previously defined here
types.c:477: warning: data definition has no type or storage class
types.c:477: syntax error before '}' token
types.c:477: warning: type defaults to `int' in declaration of `__result'
types.c:477: warning: data definition has no type or storage class
types.c:477: syntax error before '}' token
types.c:477: conflicting declarations of `__result'
types.c:477: `__result' previously declared here
types.c:477: warning: `__result' was declared `extern' and later `static'
types.c:477: `__s1' undeclared here (not in a function)
types.c:477: syntax error before "if"
types.c:477: warning: type defaults to `int' in declaration of `__result'
types.c:477: conflicting declarations of `__result'
types.c:477: `__result' previously defined here
types.c:477: warning: data definition has no type or storage class
types.c:477: syntax error before '}' token
types.c:494: warning: type defaults to `int' in declaration of `ret'
types.c:494: redefinition of `ret'
types.c:447: `ret' previously defined here
types.c:494: warning: passing arg 1 of `xmlXPathWrapNodeSet' makes pointer from integer without a cast
types.c:494: warning: initialization makes integer from pointer without a cast
types.c:494: initializer element is not constant
types.c:494: warning: data definition has no type or storage class
types.c:495: syntax error before '}' token
types.c:477: register name not specified for `__result'
types.c:477: register name not specified for `__result'
make[3]: *** [types.lo] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/libxslt-1.1.22/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/libxslt-1.1.22/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/libxslt-1.1.22'
make: *** [all] Error 2
[root@secure custombuild]#


Exactly the same problem here. Running CentOS 3.8 as well. Same problem with libxslt version 1.1.20.
 
Okay, solved it !

The problem is that libxslt-1.1.22 doesn't compile with python 2.2, which comes with Centos 3. It needs python 2.4 or higher.
Upgrading python is the real solution, but could be tricky.

Using libxslt-1.1.17 instead is a quicker and easier fix for the problem.

That version can be found here :
ftp://xmlsoft.org/libxslt/
 
Ah... nice find. I've swapped custombuild 1.1/1.2 to 1.1.17 for now, until a better solution is found (possibly just an if statement for the older OS's or a python version check)

John
 
Is it possible for you to update apache 1.3 in custombuild to 1.3.41 not sure if it was just released or what.

However doesnt look like mod_ssl has caught up yet :/
 
When updating mysql custombuild stops mysql and downloads the RPMs. Wouldn't it be better to first download the RPMs for a shorter downtime?
 
is it possible to run fcgi-php5 and mod_php5 at the same time?
so customers can choose whichever to run?

because i have some web applications where it needs apache writeable access on the web files in which i'd rather run this on fcgi/suphp for security concerns.

any tips on how to get this done?
 
It's not possible for now. You can chown the script to user:user and it's folder too, then it won't need to work as apache user.
 
im sorry but i dont think that is possible.

because the script, runs a web pear installer and chowns everything back as apache:apache when it downloads or overwrites the file.

in which case, the user won't be able to modify it, unless a sys admin have to rechown his folders.

and do you know how long it would take before something like this could be available? better question is, would it be, hard to do?
 
Steps to install suPHP with custombuild

I have read the forum, but it is still not clear to me howto install suPHP the right way with custombuild.

At the moment I have Centos5, Directadmin 1.31.4, Apache 2.2, PHP 5.25 CLI, Installatron 5 (compatible?)

I already did ./build suphp
That went well, because had no errors. But somewhere I read that it only works with CGI.

what is the next step?
-Do I have to change options and edit php_cli=no and php_cgi=yes?
- then ./build php?
- Do I have to make changes to config files (httpd.conf, php.ini)?
- How can i check that it is working like it should?
- What other steps do I have to take


Thanks for anyone who could give me some answers.
 
It will do everything for you (including suPHP). You just need to set php5_cgi=yes and run "./build php n".
 
Back
Top