Installing the Squiz Server on Solaris

Hi Folks,


I am currently installing the SQUIZ server on a Solaris machine and I am running into the following problem. Wondering if anyone has any thoughts on how to fix this… :slight_smile:


    /opt/matrix/squiz_server/bin> php start_server.php  9097 /opt/matrix/squiz_server/server.conf
    PHP Notice:  Use of undefined constant SIGTERM - assumed 'SIGTERM' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    
    Notice: Use of undefined constant SIGTERM - assumed 'SIGTERM' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    PHP Notice:  Use of undefined constant SIGINT - assumed 'SIGINT' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    
    Notice: Use of undefined constant SIGINT - assumed 'SIGINT' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    PHP Notice:  Use of undefined constant SIGCHLD - assumed 'SIGCHLD' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    
    Notice: Use of undefined constant SIGCHLD - assumed 'SIGCHLD' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    PHP Notice:  Use of undefined constant SIGHUP - assumed 'SIGHUP' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    
    Notice: Use of undefined constant SIGHUP - assumed 'SIGHUP' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    PHP Notice:  Use of undefined constant SIGUSR1 - assumed 'SIGUSR1' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    
    Notice: Use of undefined constant SIGUSR1 - assumed 'SIGUSR1' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    PHP Notice:  Use of undefined constant SIGUSR2 - assumed 'SIGUSR2' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    
    Notice: Use of undefined constant SIGUSR2 - assumed 'SIGUSR2' in /opt/matrix/squiz_server/bin/start_server.php on line 54
    [18-Jan-2007 14:22:08] +--------------------------------------------------+
    [18-Jan-2007 14:22:08] |               Squiz Server v0.1.0                |
    [18-Jan-2007 14:22:08] +--------------------------------------------------+
    [18-Jan-2007 14:22:08] Server Loading -> PID : 1629
     [18-Jan-2007 14:22:08] System "squiz" loaded
    [18-Jan-2007 14:22:08] Config File /opt/matrix/squiz_server/server.conf Loaded
    [18-Jan-2007 14:22:08] Server Started -> PID : 1629, listening on :9097
    PHP Fatal error:  Call to undefined function:  pcntl_signal() in /opt/matrix/squiz_server/code/squiz_server.inc on line 342
    
    Fatal error: Call to undefined function:  pcntl_signal() in /opt/matrix/squiz_server/code/squiz_server.inc on line 342


Thanks,
A :blink:

If you compiled your CLI version of PHP yourself (I don't know whether a pre-compiled version of PHP typically exists on Solaris), did you add the –enable-pcntl option to the configure (??) command line? It looks as though that extension hasn't been enabled, hence the undefined functions and constants.

This is the configure line we use on Solaris:

    ./configure --prefix=/opt/php --with-libgcc --enable-sockets --with-oci8-instant-client=/usr/local/instantclient --with-curl=/usr/local --with-ldap=/usr/local --with-iconv=/usr/local --with-iconv-dir=/usr/local --with-gd --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --with-expat-dir=/usr/local --enable-sockets --disable-cgi --without-mysql --enable-memory-limit --enable-pcntl --enable-bcmath --enable-inline-optimization --enable-magic-quotes --with-pear --enable-shmop --enable-mbstring --enable-wddx --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-pspell=/usr/local --enable-gd-native-ttf --with-openssl=/usr/local/ssl --with-zlib-dir=/usr/local –with-apxs=/usr/local/apache2/bin/apxs

thanks guys