Hello, i have Fedora Core 1, apache 2.0.48-1.2, php 5.0.0b4 I have compiled php with the following:
./configure --host=i386-redhat-linux --build=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-regex=system --with-xml --with-expat-dir=/usr --with-dom=shared,/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-xmlrpc=shared --with-pcre=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8 --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared --enable-memory-limit --enable-bcmath --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-apxs2=/usr/sbin/apxs --enable-sockets --enable-pcntl --enable-sigchild Basicaly i did phpinfo() from the previous redhat instalation and added --enable-sockets --enable-pcntl --enable-sigchild. I uninstalled all the packages that came with Fedora first. So here is my problem. when i ran the following command from command promp, like php filename.php it work great, however when i try to do it in apache it says Call to undefined function pcntl_fork() here is the code: <? class Process { var $ident; function Process( $ident ) { $this->ident = $ident; } function go() { for ( $i=1; $i<10; $i++ ) { sleep(1); echo $this->ident . $i . "\n"; } } } $childrenTotal = 3; $childrenNow = 0; $childrenNames = array( 'a', 'b', 'c' ); while ( $childrenNow < $childrenTotal ) { $pid = pcntl_fork(); if ( $pid == -1 ) { die( "error\n" ); } elseif ( $pid == 0 ) { $childrenNow++; } else { $process = new Process( $childrenNames[$childrenNow] ); $process->go(); die(); } } ?> I cant figure it out, why would it work from command prompt but not from apache. The regular php works in apace, postgresql i compailed into it works fine. Please Help. Thanks