INSTALL] Fedora Core 1 with postgresql

2013 年 10 月 7 日4400

Thread at a glance:

Previous Message by Date:

[PHP-INSTALL] fw:ez.

> >

> >不送花的理由

> >

> >朋友讀美術系的女友問:

> >「我的生日耶!你怎麼都不送花給我?」

> >「什麼?」讀園藝系的某某竟然說:

> >「你不知道花是植物的生殖器嗎?!我們為什麼要將人家的生殖器割下來,然

> >後捧著一大把的生殖器在手上?」

> >

> >這男人真是狠角色......

> >竟然講到那女孩子慚愧地低下頭來.........』

> >

> >所以....................

> >1.有些女生會比較誰收到的生殖器比較多、比較大....

> >2.有經驗的女生,會認為未割過包皮的生殖器(含苞的)可以較持久....

> >3.女生們會一收到生殖器時,便迫不及待的猛聞生殖器的味道,並露出滿足

> >笑容

> >

Next Message by Date:

Re: [PHP-INSTALL] Fedora Core 1 with postgresql

On Friday 12 March 2004 03:00 pm, Hari Bhanujan wrote:

> To all:

>

> I am trying to configure PHP 4.3.3. to work with postgresql. The problem

> I am having is that there is an error while connecting to Postgresql

> when trying to use the pg_connect() function in PHP. I am using Fedora

> core 1 on PIII 512MB RAM box. I installed the OS with the options for

> Postgresql and PHP. Can anyone give me any ideas on how to solve this.

> Do I have to reinstall PHP.or . Postgresql

>

> Here is the error that I am getting

>

> Fatal error: Call to undefined function: pg_connect() in

> /u/www/aro/html/dumpinfo.php

What does

# rpm -q php-pgsql

say?

Mine:

[root@dev]# rpm -q php-pgsql

php-pgsql-4.3.4-1.1

Please make sure you install php-pgsql RPM package from Fedora Core 1.

RDB

--

-------------------------------------------------

/"\ ASCII Ribbon Campaign against HTML

\ / email and proprietary format

X attachments.

/ \

-------------------------------------------------

Have you been used by Microsoft today?

Choose your life. Choose freedom.

Choose LINUX.

-------------------------------------------------

Previous Message by Thread:

[PHP-INSTALL] Fedora Core 1

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

Next Message by Thread:

Re: [PHP-INSTALL] Fedora Core 1 with postgresql

On Friday 12 March 2004 03:00 pm, Hari Bhanujan wrote:

> To all:

>

> I am trying to configure PHP 4.3.3. to work with postgresql. The problem

> I am having is that there is an error while connecting to Postgresql

> when trying to use the pg_connect() function in PHP. I am using Fedora

> core 1 on PIII 512MB RAM box. I installed the OS with the options for

> Postgresql and PHP. Can anyone give me any ideas on how to solve this.

> Do I have to reinstall PHP.or . Postgresql

>

> Here is the error that I am getting

>

> Fatal error: Call to undefined function: pg_connect() in

> /u/www/aro/html/dumpinfo.php

What does

# rpm -q php-pgsql

say?

Mine:

[root@dev]# rpm -q php-pgsql

php-pgsql-4.3.4-1.1

Please make sure you install php-pgsql RPM package from Fedora Core 1.

RDB

--

-------------------------------------------------

/"\ ASCII Ribbon Campaign against HTML

\ / email and proprietary format

X attachments.

/ \

-------------------------------------------------

Have you been used by Microsoft today?

Choose your life. Choose freedom.

Choose LINUX.

-------------------------------------------------

0 0