Problem with PHP, Dovecot & MySQL

gmdesign

Verified User
Joined
Dec 1, 2007
Messages
31
Hi!

I Have installed direct admin for the first time, now I hawe some problems.

first of all, mysql starts and crashes, the errror message says:

Code:
071202 03:25:30  mysqld started
071202  3:25:30  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
071202  3:25:30  InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 36808.
InnoDB: Doing recovery: scanned up to log sequence number 0 43655
071202  3:25:30  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
InnoDB: Apply batch completed
071202  3:25:31  InnoDB: Started; log sequence number 0 43655
071202  3:25:31 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
071202 03:25:31  mysqld ended

Then there are some problems with php, in directadmin there is

Code:
cannot find file: /usr/local/bin/php

everywhere, and php code doesnot run, it is just show as html...

and third problem, dovecot can not be started... in the DirectAdmin task log i read:

Code:
2007:12:02-03:22:00: service dovecot wasn't running, starting it
2007:12:02-03:22:00: Error starting service dovecot : uid 0 gid 0 : /usr/local/etc/rc.d/dovecot start                   >>/dev/null 2>>/dev/null

any ideas?
 
Hmm.. for mysql, it almost seems like /tmp is chmod to 1777.
Try:
Code:
chmod 1777 /tmp
and see if it will start up.
If not, try:
Code:
cd /usr/local/directadmin/scripts
./mysql.sh [B]pass1[/B] da_admin [B]pass2[/B]
which will reinstall it.

For php, try:
Code:
cd /usr/local/directadmin/custombuild
./build clean
./build php n
and see what you get.

For dovecot, check to see if you have:
/usr/sbin/dovecot
If you do, check for /var/log/maillog
If you don't, try recompiling it:
Code:
cd /usr/local/directadmin/custombuild
./build clean
./build dovecot
John
 
I have reinstalled DA and mysql problem is gone, but php problem still remains, when I try to reinstall it, I get error:

Code:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... /usr/local/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed.  Please check the config.log for details.

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

and my configure/ap2/configure.php5 file looks like this:

Code:
#!/bin/sh
./configure \
        --with-apxs2 \
        --with-curl=/usr/local/lib \
        --with-gd \
        --enable-gd-native-ttf \
        --with-ttf \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype-dir=/usr/local/lib \
        --with-kerberos \
        --with-openssl \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr/local/mysql \
        --with-mysqli=/usr/local/mysql/bin/mysql_config \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --enable-zip \
        --with-iconv=/usr/local \
        --enable-bcmath \
        --enable-calendar \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-mbstring

and about dovecot. there was no /usr/sbin/dovecot, so I have reinstalled it, now it exists, but fails to start, I'm trying to get out what's wrong, and will post here.
 
Ok, there's another problem about named.

It wount start neither form direct admin, nor from shell, but from Webmin starts and wprks great. When I try to start it from shell, it starts and then, if I get it's status there is status:

Code:
webserver# /usr/local/etc/rc.d/named status
named dead but subsys locked

dovecot seems to work, after system reboot it started and keeps running...
 
For php, try:
Code:
pkg_add -r libxml2
pkg_add -r libxslt

For named, check /var/log/messages for named errors.

John
 
Code:
Dec  2 12:53:45 webserver named[3205]: starting BIND 9.3.3 -u bind
Dec  2 12:53:45 webserver named[3205]: command channel listening on 127.0.0.1#953
Dec  2 12:53:45 webserver named[3205]: couldn't open pid file '/var/run/named.pid': Permission denied
Dec  2 12:53:45 webserver named[3205]: exiting (due to early fatal error)

what permissions should I set on /var/run/named.pid ?

Thnaks.
 
and about PHP:

Code:
webserver# pkg_add -r libxml2
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/libxml2.tbz... Done.
pkg_add: package 'libxml2-2.6.30' or its older version already installed
webserver# pkg_add -r libxslt
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/libxslt.tbz... Done.
pkg_add: package 'libxslt-1.1.22' or its older version already installed
 
Here is my config.log file for php:

Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:2153: checking for Cygwin environment
configure:2169: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2165: error: `__CYGWIN32__' undeclared (first use in this function)
configure:2165: error: (Each undeclared identifier is reported only once
configure:2165: error: for each function it appears in.)
configure: failed program was:
#line 2158 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2186: checking for mingw32 environment
configure:2198: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2194: error: `__MINGW32__' undeclared (first use in this function)
configure:2194: error: (Each undeclared identifier is reported only once
configure:2194: error: for each function it appears in.)
configure: failed program was:
#line 2191 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2217: checking for egrep
configure:2232: checking for a sed that does not truncate output
configure:2382: checking host system type
configure:2403: checking target system type
configure:2515: checking for gcc
configure:2628: checking whether the C compiler (gcc  ) works
configure:2644: gcc -o conftest    conftest.c  1>&5
configure:2670: checking whether the C compiler (gcc  ) is a cross-compiler
configure:2675: checking whether we are using GNU C
configure:2684: gcc -E conftest.c
configure:2703: checking whether gcc accepts -g
configure:2735: checking how to run the C preprocessor
configure:2756: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2817: checking for icc
configure:2839: checking whether gcc and cc understand -c and -o together
configure:2854: gcc -c conftest.c -o conftest.o 1>&5
configure:2855: gcc -c conftest.c -o conftest.o 1>&5
configure:2860: cc -c conftest.c 1>&5
configure:2862: cc -c conftest.c -o conftest.o 1>&5
configure:2863: cc -c conftest.c -o conftest.o 1>&5
configure:2890: checking how to run the C preprocessor
configure:2970: checking for AIX
configure:2994: checking whether ln -s works
configure:3019: checking for system library directory
configure:3045: checking whether to enable runpaths
configure:3069: checking if compiler supports -R
configure:3084: gcc -o conftest -g -O2   conftest.c -R /usr/lib  1>&5
configure:3146: checking for re2c
configure:3206: checking for gawk
configure:3206: checking for nawk
configure:3247: checking if nawk is broken
configure:3266: checking for bison
configure:3306: checking for bison version
configure:3346: checking for flex
configure:3380: checking for yywrap in -lfl
configure:3399: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
configure:3423: checking lex output file root
configure:3444: checking whether yytext is a pointer
configure:3463: gcc -o conftest -g -O2   conftest.c  -lfl 1>&5
configure:3487: checking for working const
configure:3541: gcc -c -g -O2  conftest.c 1>&5
configure:3567: checking for flex version
configure:3831: checking whether to force non-PIC code in shared modules
configure:3859: checking whether /dev/urandom exists
configure:3938: gcc -o conftest -g -O2   conftest.c  1>&5
/var/tmp//cc6BbqaE.o(.text+0x34): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:3934: undefined reference to `pthread_create'
configure: failed program was:
#line 3920 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
    return data;
}

int main() {
    pthread_t thd;
    pthread_mutexattr_t mattr;
    int data = 1;
    pthread_mutexattr_init(&mattr);
    return pthread_create(&thd, NULL, thread_routine, &data);
} 
configure:3958: checking for pthreads_cflags
configure:3998: gcc -o conftest -g -O2 -kthread   conftest.c  1>&5
gcc: unrecognized option `-kthread'
/var/tmp//cchp1vMA.o(.text+0x34): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:3994: undefined reference to `pthread_create'
configure: failed program was:
#line 3980 "configure"
#include "confdefs.h"

#include <pthread.h>
#include <stddef.h>

void *thread_routine(void *data) {
    return data;
}

int main() {
    pthread_t thd;
    pthread_mutexattr_t mattr;
    int data = 1;
    pthread_mutexattr_init(&mattr);
    return pthread_create(&thd, NULL, thread_routine, &data);
} 
configure:3998: gcc -o conftest -g -O2 -pthread   conftest.c  1>&5
configure:4028: checking for pthreads_lib
configure:4202: checking for AOLserver support
configure:4459: checking for Apache 1.x module support via DSO through APXS
configure:4782: checking for Apache 1.x module support
configure:5615: checking whether to enable Apache charset compatibility option
configure:5788: checking for Apache 2.0 filter-module support via DSO through APXS
configure:6636: checking for Apache 2.0 handler-module support via DSO through APXS
configure:7485: checking for Apache 1.x (hooks) module support via DSO through APXS
configure:7808: checking for Apache 1.x (hooks) module support
configure:8641: checking whether to enable Apache charset compatibility option
configure:8815: checking for Caudium support
configure:9166: checking for CLI build
configure:9212: checking for Continuity support
configure:9489: checking for embedded SAPI library support
configure:9706: checking for Zeus ISAPI support
configure:9955: checking for Milter support
configure:10239: checking for NSAPI support
configure:10591: checking for PHTTPD support
configure:10837: checking for Pi3Web support
configure:11204: checking whether Roxen module is build using ZTS
configure:11228: checking for Roxen/Pike support
configure:11506: checking for thttpd
configure:11767: checking for TUX
configure:12013: checking for webjames
configure:12641: checking for chosen SAPI module
configure:12699: checking for sendmail
configure:12738: checking whether system uses EBCDIC
configure:12757: gcc -o conftest -g -O2   conftest.c  1>&5
configure: failed program was:
#line 12749 "configure"
#include "confdefs.h"

int main(void) { 
  return (unsigned char)'A' != (unsigned char)0xC1; 
} 

configure:12785: checking whether byte ordering is bigendian
configure:12811: gcc -o conftest -g -O2   conftest.c  1>&5
configure: failed program was:
#line 12795 "configure"
#include "confdefs.h"

int main(void)
{
  short one = 1;
  char *cp = (char *)&one;

  if (*cp == 0) {
    return(0);
  } else {
    return(1);
  }
}
  
configure:12837: checking whether writing to stdout works
configure:12866: gcc -o conftest -g -O2   conftest.c  1>&5
configure:12941: checking for socket
configure:12969: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13198: checking for socketpair
configure:13226: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13455: checking for htonl
configure:13483: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13712: checking for gethostname
configure:13740: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13969: checking for gethostbyaddr
configure:13997: gcc -o conftest -g -O2   conftest.c  1>&5
configure:14226: checking for yp_get_default_domain
configure:14254: gcc -o conftest -g -O2   conftest.c  1>&5
configure:14484: checking for dlopen
configure:14512: gcc -o conftest -g -O2   conftest.c  1>&5
configure:14742: checking for sin in -lm
configure:14761: gcc -o conftest -g -O2   conftest.c -lm   1>&5
configure:14754: warning: conflicting types for built-in function 'sin'
configure:14795: checking for res_search
configure:14823: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:15331: checking for inet_aton
configure:15359: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:15727: checking for dn_skipname
configure:15755: gcc -o conftest -g -O2   conftest.c -lm  1>&5
/var/tmp//ccBsisxb.o(.text+0xd): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:15749: undefined reference to `dn_skipname'
configure: failed program was:
#line 15732 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dn_skipname(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dn_skipname();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_dn_skipname) || defined (__stub___dn_skipname)
choke me
#else
dn_skipname();
#endif

; return 0; }
configure:15773: checking for __dn_skipname
configure:15801: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:16121: checking for ANSI C header files
configure:16134: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16201: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:16229: checking for dirent.h that defines DIR
configure:16242: gcc -c -g -O2  conftest.c 1>&5
configure:16267: checking for opendir in -ldir
configure:16286: gcc -o conftest -g -O2   conftest.c -ldir  -lm  1>&5
/usr/bin/ld: cannot find -ldir
configure: failed program was:
#line 16275 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
configure:16409: checking for inttypes.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for stdint.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for dirent.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for ApplicationServices/ApplicationServices.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:53: ApplicationServices/ApplicationServices.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <ApplicationServices/ApplicationServices.h>
configure:16409: checking for sys/param.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/types.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/time.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for netinet/in.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for alloca.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:20: alloca.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <alloca.h>
configure:16409: checking for arpa/inet.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for arpa/nameser.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for assert.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for crypt.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:19: crypt.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <crypt.h>
configure:16409: checking for fcntl.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for grp.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for ieeefp.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for langinfo.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for limits.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for locale.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for monetary.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for mach-o/dyld.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:25: mach-o/dyld.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <mach-o/dyld.h>
configure:16409: checking for netdb.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for pwd.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for resolv.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for signal.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for stdarg.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for stdlib.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for string.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for syslog.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sysexits.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/ioctl.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/file.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/mman.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/mount.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/poll.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/resource.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/select.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/socket.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/stat.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/statfs.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:24: sys/statfs.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <sys/statfs.h>
configure:16409: checking for sys/statvfs.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/vfs.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:21: sys/vfs.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <sys/vfs.h>
configure:16409: checking for sys/sysexits.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:26: sys/sysexits.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <sys/sysexits.h>
configure:16409: checking for sys/varargs.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:25: sys/varargs.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <sys/varargs.h>
configure:16409: checking for sys/wait.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/loadavg.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:25: sys/loadavg.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <sys/loadavg.h>
configure:16409: checking for termios.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for unistd.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for unix.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16415:18: unix.h: No such file or directory
configure: failed program was:
#line 16414 "configure"
#include "confdefs.h"
#include <unix.h>
configure:16409: checking for utime.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/utsname.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for sys/ipc.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for dlfcn.h
configure:16419: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:16409: checking for assert.h
configure:16448: checking for fopencookie
configure:16476: gcc -o conftest -g -O2   conftest.c -lm  1>&5
/var/tmp//ccTj5OyO.o(.text+0xd): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:16470: undefined reference to `fopencookie'
configure: failed program was:
#line 16453 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char fopencookie(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char fopencookie();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_fopencookie) || defined (__stub___fopencookie)
choke me
#else
fopencookie();
#endif

; return 0; }
configure:16623: checking for broken getcwd
configure:16638: checking for broken libc stdio
configure:16699: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:16727: checking whether struct tm is in sys/time.h or time.h
configure:16740: gcc -c -g -O2  conftest.c 1>&5
configure:16761: checking for tm_zone in struct tm
configure:16774: gcc -c -g -O2  conftest.c 1>&5
configure:16833: checking for missing declarations of reentrant functions
configure:16842: gcc -c -g -O2  conftest.c 1>&5
configure:16867: gcc -c -g -O2  conftest.c 1>&5
configure:16892: gcc -c -g -O2  conftest.c 1>&5
configure:16917: gcc -c -g -O2  conftest.c 1>&5
configure:16942: gcc -c -g -O2  conftest.c 1>&5
configure:16963: checking for fclose declaration
configure:16972: gcc -c -g -O2  conftest.c 1>&5
configure:16998: checking for tm_gmtoff in struct tm
configure:17011: gcc -c -g -O2  conftest.c 1>&5
configure:17034: checking for struct flock
configure:17049: gcc -c -g -O2  conftest.c 1>&5
configure:17076: checking for socklen_t
configure:17093: gcc -c -g -O2  conftest.c 1>&5
configure:17119: checking size of size_t
configure:17138: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:17158: checking size of long long
configure:17177: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:17197: checking size of long long int
configure:17216: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:17236: checking size of long
configure:17255: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:17275: checking size of int
configure:17294: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:17316: checking size of intmax_t
configure:17357: gcc -o conftest -g -O2   conftest.c  1>&5
configure:17396: checking size of ssize_t
configure:17437: gcc -o conftest -g -O2   conftest.c  1>&5
configure:17476: checking size of ptrdiff_t
configure:17517: gcc -o conftest -g -O2   conftest.c  1>&5
configure:17556: checking for st_blksize in struct stat
configure:17569: gcc -c -g -O2  conftest.c 1>&5
configure:17591: checking for st_blocks in struct stat
configure:17604: gcc -c -g -O2  conftest.c 1>&5
configure:17631: checking for st_rdev in struct stat
configure:17644: gcc -c -g -O2  conftest.c 1>&5
configure:17666: checking for size_t
configure:17699: checking for uid_t in sys/types.h
configure:17735: checking for struct sockaddr_storage
configure:17748: gcc -c -g -O2  conftest.c 1>&5
configure:17769: checking for field sa_len in struct sockaddr
configure:17783: gcc -c -g -O2  conftest.c 1>&5
configure:17806: checking for IPv6 support
configure:17820: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:17836: checking for vprintf
configure:17864: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:17848: warning: conflicting types for built-in function 'vprintf'
configure:18023: checking for alphasort
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for asctime_r
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for chroot
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for ctime_r
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for cuserid
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
/var/tmp//ccrBxdp8.o(.text+0xd): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:18045: undefined reference to `cuserid'
configure: failed program was:
#line 18028 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cuserid(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char cuserid();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_cuserid) || defined (__stub___cuserid)
choke me
#else
cuserid();
#endif

; return 0; }
configure:18023: checking for crypt
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
/var/tmp//ccFq8vGG.o(.text+0xd): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:18045: undefined reference to `crypt'
configure: failed program was:
#line 18028 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char crypt(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char crypt();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_crypt) || defined (__stub___crypt)
choke me
#else
crypt();
#endif

; return 0; }
configure:18023: checking for flock
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for ftok
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for funopen
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for gai_strerror
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for gcvt
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
/var/tmp//ccBS4hpr.o(.text+0xd): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:18045: undefined reference to `gcvt'
configure: failed program was:
#line 18028 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gcvt(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gcvt();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gcvt) || defined (__stub___gcvt)
choke me
#else
gcvt();
#endif

; return 0; }
configure:18023: checking for getloadavg
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for getlogin
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for getprotobyname
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for getprotobynumber
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for getservbyname
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for getservbyport
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for getrusage
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for gettimeofday
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for gmtime_r
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for getpwnam_r
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for getgrnam_r
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for getpwuid_r
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for grantpt
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for inet_ntoa
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for inet_ntop
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for inet_pton
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for isascii
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for link
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for localtime_r
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for lockf
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for lchown
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for lrand48
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for memcpy
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18035: warning: conflicting types for built-in function 'memcpy'
configure:18023: checking for memmove
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18035: warning: conflicting types for built-in function 'memmove'
configure:18023: checking for mkstemp
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for mmap
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for nl_langinfo
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for perror
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for poll
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for ptsname
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for putenv
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for realpath
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for random
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for rand_r
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for regcomp
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for res_search
configure:18023: checking for scandir
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for setitimer
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for setlocale
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for localeconv
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for setenv
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for setpgid
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for setsockopt
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for setvbuf
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for shutdown
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for sin
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18035: warning: conflicting types for built-in function 'sin'
configure:18023: checking for snprintf
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18035: warning: conflicting types for built-in function 'snprintf'
configure:18023: checking for srand48
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for srandom
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for statfs
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for statvfs
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for std_syslog
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
/var/tmp//ccLGT17k.o(.text+0xd): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:18045: undefined reference to `std_syslog'
configure: failed program was:
#line 18028 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char std_syslog(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char std_syslog();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_std_syslog) || defined (__stub___std_syslog)
choke me
#else
std_syslog();
#endif

; return 0; }
configure:18023: checking for strcasecmp
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for strcoll
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for strdup
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18035: warning: conflicting types for built-in function 'strdup'
configure:18023: checking for strerror
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for strftime
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18035: warning: conflicting types for built-in function 'strftime'
configure:18023: checking for strptime
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for strstr
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18035: warning: conflicting types for built-in function 'strstr'
configure:18023: checking for strtok_r
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for symlink
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for tempnam
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
/var/tmp//cc7zUggR.o(.text+0xd): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:18045: warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
configure:18023: checking for tzset
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for unlockpt
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for unsetenv
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for usleep
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for nanosleep
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for utime
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18023: checking for vsnprintf
configure:18051: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18035: warning: conflicting types for built-in function 'vsnprintf'
configure:18077: checking for getaddrinfo
configure:18089: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18135: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18167: checking for strlcat
configure:18195: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18167: checking for strlcpy
configure:18195: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18167: checking for getopt
configure:18195: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18222: checking whether utime accepts a null argument
configure:18243: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18269: checking for working alloca.h
configure:18302: checking for alloca
configure:18335: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18502: checking for declared timezone
configure:18523: gcc -c -g -O2  conftest.c 1>&5
configure:18549: checking for type of reentrant time-related functions
configure:18578: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure: In function `main':
configure:18570: warning: assignment makes integer from pointer without a cast
configure:18571: error: too many arguments to function `asctime_r'
configure: failed program was:
#line 18560 "configure"
#include "confdefs.h"

#include <time.h>

main() {
char buf[27];
struct tm t;
time_t old = 0;
int r, s;

s = gmtime_r(&old, &t);
r = (int) asctime_r(&t, buf, 26);
if (r == s && s == 0) return (0);
return (1);
}

configure:18610: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure: In function `main':
configure:18603: error: too many arguments to function `asctime_r'
configure: failed program was:
#line 18594 "configure"
#include "confdefs.h"

#include <time.h>
main() {
  struct tm t, *s;
  time_t old = 0;
  char buf[27], *p;
  
  s = gmtime_r(&old, &t);
  p = asctime_r(&t, buf, 26);
  if (p == buf && s == &t) return (0);
  return (1);
}
  
configure:18648: checking for readdir_r
configure:18676: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18698: checking for type of readdir_r
configure:18734: gcc -o conftest -g -O2   conftest.c -lm  1>&5
configure:18797: checking for in_addr_t
configure:18836: checking for crypt_r
configure:18864: gcc -o conftest -g -O2   conftest.c -lm  1>&5
/var/tmp//cc4U8mI0.o(.text+0xd): In function `main':
/usr/local/directadmin/custombuild/php-5.2.5/configure:18858: undefined reference to `crypt_r'
configure: failed program was:
#line 18841 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char crypt_r(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char crypt_r();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_crypt_r) || defined (__stub___crypt_r)
choke me
#else
crypt_r();
#endif

; return 0; }
configure:19021: checking whether to include gcov symbols
configure:19184: checking whether to include debugging symbols
configure:19226: checking layout of installed files
configure:19261: checking path to configuration file
configure:19295: checking where to scan for configuration files
configure:19331: checking whether to enable safe mode by default
configure:19366: checking for safe mode exec dir
configure:19410: checking whether to enable PHP's own SIGCHLD handler
configure:19448: checking whether to enable magic quotes by default
configure:19486: checking whether to explicitly link against libgcc
configure:19566: checking whether to enable short tags by default
configure:19604: checking whether to enable dmalloc
configure:19692: checking whether to enable IPv6 support
configure:19722: checking how big to make fd sets
configure:19793: checking whether to enable LIBXML support
configure:19841: checking libxml2 install dir
configure:19870: checking for xml2-config path
configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2   -R/usr/local/lib -L/usr/local/lib conftest.c 
          
         -lm  -lxml2 -lz -liconv -lm 1>&5
/usr/bin/ld: warning: libiconv.so.3, needed by /usr/local/lib/libxml2.so, may conflict with libiconv.so.6
/usr/local/lib/libxml2.so: undefined reference to `__sbtoupper'
configure: failed program was:
#line 20044 "configure"
#include "confdefs.h"

    
    char xmlInitParser();
    int main() {
      xmlInitParser();
      return 0;
    }
 
Ok, php problem solved.
problem was in libxml, pkg_delete, pkg_add was not enough... I downloaded and compiled sources and installed, after that php problem was gone.

the only problem which remains is named problem.
 
ok, named problem solved too :)

but I have question, problem was that in /etc/namedb/named.conf file there was no options section, I have added something like:

Code:
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory       "/var/named";
pid-file        "/var/run/named/named.pid";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query     { localhost; };
recursion yes;
};
and now it works fine. so here's my question, why DA has removed this section?
 
Hello,

The following options will break any external dns lookups:

listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
allow-query { localhost; };

This is because they tell named to only listen on 127.0.0.1, so your actual external IPs won't be bound to by named.
Also, the allow-query to localhost is yet another block for external lookups.

You can have an options section, just make sure it's correct.

John
 
Yes, I know, it was just to show you. Yesterday I installed DA on the second HDD, which will be used for backups, so now I know solution wich works 100%.

First of all I installed gd, libxml2, libxslt, wget, webalizer. then updated webalizer and wget files from your server. then I changed latest setup.sh to download not options-1.1 file but options file. THIS IS IMPORTANT, options-1.1 file DOES NOT WORK under FreeBSD, options file works fine.

then I started installation. after reboot all services where up, just mysql problem, I did

Code:
cd /usr/local/directadmin/scripts
./mysql.sh pass1 da_admin pass2

and that's all. :) Everything works fine, Thanks to DA Developers and DA Support.
 
fyi, a bug was found in the options-1.1 file yesterday which was fixed. It was saved as a windows format instead of unix. It's been converted over, so that won't be an issue anymore.

John
 
Back
Top