Discussion about CustomBuild

Hmm thanks, but there was no allow_url_include in my php.ini. So i added it, but it has no result. Same errors.
 
Then check for allow_url_fopen :) It should be set to "On" too. And if won't work - please upload phpinfo.php file with:
Code:
<?php
phpinfo();
?>

And post a link here.
 
Hmm i have reinstalled php and apache, and when i retsart using apachtectl restart I get this warning:

(48)Address already in use: make_sock: could not bind to address [::]:80
(48)Address already in use: make_sock: could not bind to address [::]:443
[Sat Sep 01 11:02:02 2007] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
[Sat Sep 01 11:02:02 2007] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
 
Code:
web01# netstat -l
Active Internet connections
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0      0  web01.63388            ip51ccb0e9.speed.planet.nl.56539  ES
TABLISHED
tcp4       0      0  web01.62954            ip51ccb0e9.speed.planet.nl.56538  LA
ST_ACK
tcp4       0      0  web01.65323            cm222-167-192-99.hkcable.com.hk.3458
  ESTABLISHED
tcp4       0      0  web01.57599            ip51ccb0e9.speed.planet.nl.56534  TI
ME_WAIT
tcp4       0      0  web01.53760            ip51ccb0e9.speed.planet.nl.56516  TI
ME_WAIT
tcp4       0      0  web01.62074            ip51ccb0e9.speed.planet.nl.56510  TI
ME_WAIT
tcp4       0      0  web01.53492            ip51ccb0e9.speed.planet.nl.56503  TI
ME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4380  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4381  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4361  TIME_WAIT
tcp4       0      0  web01.http             crawl-66-249-65-99.googlebot.com.568
41  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4355  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4354  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4353  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4351  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4350  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4343  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-ne
t.net.tw.4341  TIME_WAIT
tcp4       0      0  web01.60819            ip51ccb0e9.speed.planet.nl.56469  TI
ME_WAIT
tcp4       0      0  web01.57677            ip51ccb0e9.speed.planet.nl.56466  TI
ME_WAIT
tcp4       0      0  web01.61952            ip51ccb0e9.speed.planet.nl.56462  TI
ME_WAIT
tcp4       0      0  web01.60102            ip51ccb0e9.speed.planet.nl.56455  TI
ME_WAIT
tcp4       0      0  web01.57455            ip51ccb0e9.speed.planet.nl.56450  TI
ME_WAIT
tcp4       0      0  web01.http             a91-196-168-0-zone.net.technotop.nl.53300  TIME_WAIT
tcp4       0      0  web01.ftp              a91-196-168-0-zone.net.technotop.nl.53299  TIME_WAIT
tcp4       0    523  web01.http             212-182-159-85.dsl.ip.tiscali.nl.21256  FIN_WAIT_1
tcp4       0      0  web01.53616            ip51ccb0e9.speed.planet.nl.56427  TIME_WAIT
tcp4       0      0  web01.http             61-62-244-159-adsl-kao.dynamic.so-net.net.tw.4339  TIME_WAIT
tcp4       0      0  web01.http             c84077.upc-c.chello.nl.55696  TIME_WAIT
tcp4       0   3310  web01.http             n058152216238.netvigator.com.1436  FIN_WAIT_1
tcp4       0     74  web01.ftp              ip51ccb0e9.speed.planet.nl.56295  ESTABLISHED
tcp4       0     28  web01.ftp              ip51ccb0e9.speed.planet.nl.56293  ESTABLISHED
tcp4       0     61  web01.ftp              ip51ccb0e9.speed.planet.nl.56292  ESTABLISHED
tcp4       0     53  web01.ftp              ip51ccb0e9.speed.planet.nl.56291  ESTABLISHED
tcp4       0     33  web01.ftp              ip51ccb0e9.speed.planet.nl.56288  ESTABLISHED
tcp4       0     33  web01.ftp              ip51ccb0e9.speed.planet.nl.56287  ESTABLISHED
tcp4       0     33  web01.ftp              ip51ccb0e9.speed.planet.nl.56286  ESTABLISHED
tcp4       0      0  web01.ftp              ip51ccb0e9.speed.planet.nl.56283  ESTABLISHED
tcp4       0    523  web01.http             212-182-159-85.dsl.ip.tiscali.nl.21247  FIN_WAIT_1
tcp4       0    476  web01.http             212-182-159-85.dsl.ip.tiscali.nl.21227  FIN_WAIT_1
tcp4       0      0  web01.http             cc792782-a.wsm1.gr.home.nl.28818  FIN_WAIT_2
tcp4       0      0  web01.http             cc792782-a.wsm1.gr.home.nl.28816  FIN_WAIT_2
tcp4       0      0  web01.http             ip54518869.direct-adsl.nl.3674  FIN_WAIT_2
tcp4       0     28  web01.ftp              ip51ccb0e9.speed.planet.nl.55401  ESTABLISHED
tcp4       0     28  web01.ftp              ip51ccb0e9.speed.planet.nl.53802  ESTABLISHED
tcp4       0     82  web01.ftp              ip51ccb0e9.speed.planet.nl.53794  ESTABLISHED
tcp4       0     28  web01.ftp              ip51ccb0e9.speed.planet.nl.53788  ESTABLISHED
tcp4       0     52  web01.ssh              s55911622.adsl.wanadoo.nl.51410  ESTABLISHED
tcp4       0      0  web01.ssh              s55911622.adsl.wanadoo.nl.51380  ESTABLISHED
tcp4       0      0  web01.ftp              cm222-167-192-99.hkcable.com.hk.3386  ESTABLISHED
udp4       0      0  localhost.domain       *.*
udp4       0      0  web01.domain           *.*
udp4       0      0  web01.domain           *.*
udp4       0      0  web01.domain           *.*
udp4       0      0  web01.domain           *.*
udp4       0      0  web01.domain           *.*
udp4       0      0  web01.domain           *.*
udp4       0      0  web01.domain           *.*
udp4       0      0  web01.domain           *.*
udp4       0      0  web01.domain           *.*
udp4       0      0  web01.domain           *.*
Active UNIX domain sockets
Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
ccb9d3d4 stream      0      0        0 c68a3dac        0        0
c68a3dac stream      0      0        0 ccb9d3d4        0        0
c68a2b7c stream      0      0        0 cc09708c        0        0
cc09708c stream      0      0        0 c68a2b7c        0        0
c6811578 stream      0      0 c862d660        0        0        0 /tmp/mysql.sock
c68a2c08 stream      0      0        0 c68a29d8        0        0
c68a29d8 stream      0      0        0 c68a2c08        0        0
c68e6b7c stream      0      0        0 cc097690        0        0
cc097690 stream      0      0        0 c68e6b7c        0        0
c68a3000 stream      0      0 c68a0990        0        0        0 /var/run/devd.pipe
c808e7a8 dgram       0      0        0 c68a2dac        0 cc35e460
cc35e460 dgram       0      0        0 c68a2dac        0 c68117a8
c68117a8 dgram       0      0        0 c68a2dac        0 c808ea64
c808ea64 dgram       0      0        0 c68a2dac        0 ccb9d71c
ccb9d71c dgram       0      0        0 c68a2dac        0 c74164ec
c74164ec dgram       0      0        0 c68a2dac        0 c68e64ec
c68e64ec dgram       0      0        0 c68a2dac        0 ccb9d8c0
ccb9d8c0 dgram       0      0        0 c68a2dac        0 c6b6008c
c6b6008c dgram       0      0        0 c68a2dac        0 c808d94c
c808d94c dgram       0      0        0 c68a2dac        0 ccb9ddac
ccb9ddac dgram       0      0        0 c68a2dac        0 c7416348
c7416348 dgram       0      0        0 c68a2dac        0 ccb9dc94
ccb9dc94 dgram       0      0        0 c68a2dac        0 c68a2460
c68a2460 dgram       0      0        0 c68a2dac        0 c68a3690
c6c5c118 dgram       0      0        0 c68a2d20        0 c68a2690
c68a3690 dgram       0      0        0 c68a2dac        0 c68e6c08
c68e6c08 dgram       0      0        0 c68a2dac        0        0
c68a2690 dgram       0      0        0 c68a2d20        0        0
c68a2d20 dgram       0      0 c68b5220        0 c6c5c118        0 /var/run/logpriv
c68a2dac dgram       0      0 c68b5330        0 c808e7a8        0 /var/run/log

Edit: netstat -lp gives me a missing parameter, so i did netstat -l.
 
Last edited:
U are sure that u dont already have an apache running?

If its not that something in your .conf is screwed up ( i think)

Maybe u have a misspell on the listen port

Sorry for english users this i c/p in Dutch :)

Code:
6. Address already in use: make_sock: could not bind to address 0.0.0.0:443

Dit probleem kan zich voordoen tijdens het starten en betekend dat je verschillende Listen instructies hebt in je configuratie die incompatibel zijn. 
Om dit op te lossen, moet je je configuratie greppen voor Listen en ze stuk voor stuk vermaken.
It just means that he might have multiple Listens in his conf
 
Thanks, (i'm dutch so not any problem for me ^^ ) I have only a Listen 80 in my httpd.conf.
 
Ok reinstalled it again with build all this time.. It looks good but i get this error:

web01# [Sat Sep 1 11:35:40 2007] [warn] module php5_module is already loaded, skipping
Syntax error on line 34 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration

EDIT:: when i comment out that line it goes to the next order. Wehn i comment out all that lines i get this error:
eb01# [Sat Sep 1 11:42:12 2007] [warn] module php5_module is already loaded, skipping
Syntax error on line 1 of /etc/httpd/conf/extra/httpd-php-handlers.conf:
Invalid command 'AddHandler', perhaps mis-spelled or defined by a module not included in the server configuration
 
Last edited:
Ok reinstalled it again with build all this time.. It looks good but i get this error:

web01# [Sat Sep 1 11:35:40 2007] [warn] module php5_module is already loaded, skipping
Syntax error on line 34 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration

EDIT:: when i comment out that line it goes to the next order. Wehn i comment out all that lines i get this error:
eb01# [Sat Sep 1 11:42:12 2007] [warn] module php5_module is already loaded, skipping
Syntax error on line 1 of /etc/httpd/conf/extra/httpd-php-handlers.conf:
Invalid command 'AddHandler', perhaps mis-spelled or defined by a module not included in the server configuration

If you have Apache 1.3, why do you set apache_ver 2.2 in options.conf? :) Do "./build apache" if you want to have 2.2 (now you have 1.3 with 2.x configs).
 
Ok builded apache with ./build apache.

Now i get this:

web01# /usr/local/etc/rc.d/httpd restart
Stopping httpd: [ FAILED ]
Starting httpd: [ OK ]
web01# httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: Undefined symbol "ap_signal"
 
Now try: "./build php n". I always suggest to run "./build all d" for the first time, but you can do "./build apache" and "./build php n" instead of it.
 
When i do .build php n i get this:

Note that the MySQL client library is not bundled anymore!

*** There was an error while trying to configure php. Check the configure/ap2/configure.php5 file
 
i built all with ./build all d, however required the mysql upgrade. so

./build mysql
./build php n

brings back this:

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.

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

the config.log file is somewhat gibberish to me. if you need it though, i'll happily attach it.
bizarre thing is, php5 is using the old mysql client libraries, and everything appears to be working fine. phpmyadmin however warns that things could get messy/weird because the client library version doesn't match the server version.
workarounds/fixes?

dan
 
What version of custombuild do you have? Try "./build mysql" too and "./build update" before everything.
 
i was using 1.1.3. did a build update and am now on 1.1.5. when i did the update, it said the options.conf was damaged, though it looked ok to me. here's the ./build options output

Apache: 2.2.4
Dovecot: no
exim.conf update: yes
MySQL: 5.0.45
PHP: 5.2.3 as CLI with mail() header patch
phpMyAdmin: 2.11.0-all-languages
ProFTPD: 1.3.1rc3
RoundCube webmail: 0.1-rc1
Run "clean" every time: yes
SquirrelMail: 1.4.10a
Zend Optimizer: 3.2.8

going to try ./build mysql again now. granted the first time i tried it i had to give it a helping hand. it downloaded a 75mb tar.gz file twice, and said it couldn't cd to /usr/local/mysql. upon investigation, it'd created the symbolic link to the new mysql directory, just hadn't extracted the tarball. did that manually and re-ran it, and it installed after that. weird.
 
alright. next error:

aqua# ./build mysql
mysql-5.0.45-linux-i686.tar.gz 100% of 75 MB 421 kBps 00m00s
Starting mysqld: [ OK ]
This script updates all the mysql privilege tables to be usable by
the current version of MySQL

Got a failure from command:
cat /usr/local/mysql/share/mysql_fix_privilege_tables.sql | /usr/local/mysql/bin/mysql --no-defaults --force --user=da_admin --host=localhost --database=mysql
Please check the above output and try again.

Running the script with the --verbose option may give you some information
of what went wrong.

If you get an 'Access denied' error, you should run this script again and
give the MySQL root user password as an argument with the --password= option
cp: directory /usr/lib/mysql does not exist

[edit:] found the password. but doing a ./build mysql --password=xxxxxx doesn't work. still gives the same error. how do i pass the password to it?
 
Last edited:
dan, you can just delete the options.conf file :) "./build" will rewrite it. About the MySQL /usr/lib/mysql - everything should be okay with it, because on you system it's in different location.
 
Back
Top