Discussion about CustomBuild

cURL 7.18.1 is now installed by default :)
Code:
./build update
./build curl
 
I run build apache on a new system running the default DA installation and I get this

Restoring certificate and key, and turning on httpd for DirectAdmins's check.
Restarting apache.
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 30 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

custombuild stable version

Please help to fix as my server is down due to this.


Is it necessary to use php5 with apache2.2.9?

I run ./build rewrite_confs it fixed but ...


Restarting apache.
Stopping httpd: [ OK ]
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: cannot open shared object file: No such file or directory
 
Last edited:
Code:
./build php n

If configure fails try --with-xpm-dir=<DIR>
configure: error: freetype.h not found.

Every time another error popups why it doesnt update everything is needed?

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





/usr/sbin/httpd -v
Server version: Apache/2.2.9 (Unix)
Server built: Aug 31 2008 10:08:47
[root@server custombuild]# ./build options
Apache: 2.2.9
Dovecot: 1.1.2
exim.conf update: no
MySQL: no
MySQL backup: no
PHP: 5.2.6 as CLI with mail() header patch
phpMyAdmin: 2.11.8.1-all-languages
ProFTPD: 1.3.1
Atmail webmail: no
RoundCube webmail: 0.1.1
Run "clean" every time: yes
Show texts in bold: yes
SquirrelMail: 1.4.15
UebiMiau: no
Zend Optimizer: no


echo ${PATH}
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
 
Last edited:
You didn't run "./build all d" for the first time :) Run the following commands now:
Code:
./build freetype
./build iconv
./build php n
 
One upgrade to php 5.2.6 fails

Hi Smtalk,

I have successfully upgraded more than 70 servers to php 5.2.6 CLI but one is causing issues.

The error, either with 'build php y' or 'buil all d' remains the same and reads (when compiling sapi/cli/php):
PHP:
ext/mysql/.libs/php_mysql.o: In function `zif_mysql_set_charset':
/usr/local/directadmin/custombuild/php-5.2.6/ext/mysql/php_mysql.c:1120: undefined reference to `mysql_set_character_set'
ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_get_charset':
/usr/local/directadmin/custombuild/php-5.2.6/ext/mysqli/mysqli_nonapi.c:372: undefined reference to `mysql_get_character_set_info'
ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_set_charset':
/usr/local/directadmin/custombuild/php-5.2.6/ext/mysqli/mysqli_nonapi.c:348: undefined reference to `mysql_set_character_set'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Erreur 1

I've read all 36 pages of this post, rebuild mysql (5.0.51a) a few times, with the same error showing thereafter. I've been using different versions of custombuild, up to the latest 1.2.7.

Do you have any hint to solve this ? That server is now stucked with php 5.2.5 ... That version works OK, so it's not too much of an issue.

Best regards, and congrats for the great script !

Dan
 
Thank you for these words :) Do you need MySQLi? If not - just disable it. If yes - what is your OS? Maybe it has 2 copies of MySQL? If you want - I can take a look at your server too.
 
Hi Martynas,

If I remember well, I already tried without mysqli, but to be sure, I re-launched a "./build php n" without it.

O/S is Debian Etch. And I only have mySql 5.0.51a ... no other version.

I even cheched (using sum) the mysql libraries and compared te results to another working box. They are exactly the same.

Dan

ps1: sent you a PM
ps2 : error without mysqli is the same (first part of it, not the mysqli stuff)
ext/mysql/.libs/php_mysql.o: In function `zif_mysql_set_charset':
/usr/local/directadmin/custombuild/php-5.2.6/ext/mysql/php_mysql.c:1120: undefined reference to `mysql_set_character_set'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
 
Last edited:
getting 500 errors in /var/www/html/ the chown -R webapps:webapps does not fix it...any suggestions, all webmail is inaccessible.

found errors in my domain logs:

No user or group set - set suPHP_UserGroup
 
Why installed custombuild by default mysql 4.1?

Also when I say that version 5.0 must be installed, this happens only on a new fresh install off directadmin

Please fix this bug
 
It depends on your OS. CustomBuild doesn't install MySQL by default.
 
Whe used Centos 4.4 32bit


I tried to update mysql with the custombuild and change de options.conf to:
#Possible values - 5.0 or 5.1 (4.1 is possible too, but it's EOL)
mysql=5.0
mysql_inst=yes
mysql_backup=yes

Then save file and run: ./build update_data
After this: ./build all d

But Mysql is not updated, its still version MySQL 4.1.21
Also tried mysql 5.1, but then i get errors that the rpm is not avalible (or somthing like that)
And tried also /build mysql

Is these a know problem and must I update mysql manuanly?

Nice, these message:
PHP:
 A MySQL server package (MySQL-server-4.1.21-0) is installed.

Upgrading directly from MySQL 4.1 to MySQL 5.0 may not
be safe in all cases.  A manual dump and restore using mysqldump is
recommended.  It is important to review the MySQL manual's Upgrading
section for version-specific incompatibilities.

A manual upgrade is required.

- Ensure that you have a complete, working backup of your data and my.cnf
  files
- Shut down the MySQL server cleanly
- Remove the existing MySQL packages.  Usually this command will
  list the packages you should remove:
  rpm -qa | grep -i '^mysql-'

  You may choose to use 'rpm --nodeps -ev <package-name>' to remove
  the package which contains the mysqlclient shared library.  The
  library will be reinstalled by the MySQL-shared-compat package.
- Install the new MySQL packages supplied by MySQL AB
- Ensure that the MySQL server is started
- Run the 'mysql_upgrade' program



Why in the first place installs DA mysql 4.1, its EOL.
Realy stuppid!

Oky, I have deleted the packages and run ./build mysql again.
Now mysql 5 finaly installed on our machine.

Maby its a good idea to make some changes to the build mysql script so it will deleted first the old packages?
 
Last edited:
Good evening I wanted to know how to activate mssql I remove ";" ahead extension = php_mssql.dll but this does not
 
I used the following option to re-build everything:

Code:
./build all d

Everything compiled and ran. When I logged into the DirectAdmin cp, under the System Information page, it says:

Named 9.3.4 *** Stopped ***

I am getting the same message, even after rebooting the server.

My server is running a 64-bit intel cpu, and im using latest Centos 64-bit version. Anyone can help?
 
Custombuild doesn't install of update named.
So I think thats this is a other problem,

What says the system log files?
 
it seems my host forgot to install caching-nameserver for me, so i fixed it my self by doing:

yum install caching-nameserver

and it worked :)
 
Using the caching-nameserver is a bad idea; allowing caching is exactly what caused that big DNS vulnerability everyone's been talking about for weeks now.

Instead you should have your upstream's caching nameservers listed in your /etc/resolv.conf file.

Jeff
 
Back
Top