php-install Digest 17 Nov 2001 01:46:50 -0000 Issue 558

Topics (messages 4992 through 5003):

Re: Install php4.0.6 with Oracle9i in Linux Redhat7.2(Kernel   2.4.9-13)
        4992 by: Thies C. Arntzen
        5003 by: Kexiao Liao

cannot read output with fgets() from popen()
        4993 by: simeon.nbermuda.ch

Sockets
        4994 by: Juan Carlos Gonzalez

php install problem?
        4995 by: Chris Dorr
        4999 by: Chris Dorr

apache problems
        4996 by: the crw
        4997 by: the crw
        4998 by: Jonathan Hilgeman
        5000 by: Chris Dorr

How to install PHP on Windows XP?
        5001 by: Arik
        5002 by: Brian Paulson

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On Thu, Nov 15, 2001 at 04:13:15PM -0800, Kexiao Liao wrote:
> Hi Stephan,
>     I upgraded binutils to Redhat 7.2 version, and successfully
> install/compile php4.0.6. After the installation, libphp4.so was generated in
> /opt/apache/libexec directory and /opt/apache/conf/httpd.conf was updated.
>     However when I start apache server, I got some error messages:
> ------------------------------------------------------------------
> [root@hermes bin]$ ./apachectl start
> Syntax error on line 236 of /opt/apache/conf/httpd.conf:
> Cannot load /opt/apache/libexec/libphp4.so into server: libclntsh.so.9.0:
> cannot open shared object file: No such file or directory
> ./apachectl start: httpd could not be started

    just add your $ORACLE_HOME/lib to /etc/ld.so.conf and run
    ldconfig (as root)

    tc
> 
> -------------------------------------------------------------------
> 
> I remembered there are some shared libraries need to add into php system. But
> I can't remember them. Could you give me some suggestion? Thanks
> 
> Kexiao
> 
> 
> Jaeck Stephan wrote:
> 
> > Hmmmm, did you install/compile with Oracle account?
> > You must be root!
> >
> > Stephan
> >
> > -----Original Message-----
> > From: Kexiao Liao [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 15, 2001 2:58 AM
> > To: Jaeck Stephan
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP-INST] Install php4.0.6 with Oracle9i in Linux
> > Redhat7.2(Kernel 2.4.9-13)
> >
> > Dear Stephan,
> >     I downloaded php-4.0.6-oci8-oracle9i.patch from below web site as you
> > told
> > me.
> > ...
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
--- End Message ---
--- Begin Message ---

Hi All,
    I successfully installed/compiled php4.0.6 wih Oracle9i yesterday.
By using
php script:
<?php
phpinfo();
?>
It shows everything is OK. I attached the result to the e-mail, so you
could see
the status of current php.

    However, my previous php script source codes, which work very well
with
oracle8i server before installing oracle9i, can
not get any data from oracle9i. There is Netscape Error message window
pop up,
says "The document contained
on data. Try again ladter, or contact the server's administrator." I
wonder if
current OCIlogon() function support Oracle9i.
I am looking forward to your reply. Thanks.

Kexiao










"Thies C. Arntzen" wrote:

> On Thu, Nov 15, 2001 at 04:13:15PM -0800, Kexiao Liao wrote:
> > Hi Stephan,
> >     I upgraded binutils to Redhat 7.2 version, and successfully
> > install/compile php4.0.6. After the installation, libphp4.so was
generated in
> > /opt/apache/libexec directory and /opt/apache/conf/httpd.conf was
updated.
> >     However when I start apache server, I got some error messages:
> > ------------------------------------------------------------------
> > [root@hermes bin]$ ./apachectl start
> > Syntax error on line 236 of /opt/apache/conf/httpd.conf:
> > Cannot load /opt/apache/libexec/libphp4.so into server:
libclntsh.so.9.0:
> > cannot open shared object file: No such file or directory
> > ./apachectl start: httpd could not be started
>
>     just add your $ORACLE_HOME/lib to /etc/ld.so.conf and run
>     ldconfig (as root)
>
>     tc
> >
> > -------------------------------------------------------------------
> >
> > I remembered there are some shared libraries need to add into php
system. But
> > I can't remember them. Could you give me some suggestion? Thanks
> >
> > Kexiao
> >
> >
> > Jaeck Stephan wrote:
> >
> > > Hmmmm, did you install/compile with Oracle account?
> > > You must be root!
> > >
> > > Stephan
> > >
> > > -----Original Message-----
> > > From: Kexiao Liao [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, November 15, 2001 2:58 AM
> > > To: Jaeck Stephan
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: [PHP-INST] Install php4.0.6 with Oracle9i in Linux
> > > Redhat7.2(Kernel 2.4.9-13)
> > >
> > > Dear Stephan,
> > >     I downloaded php-4.0.6-oci8-oracle9i.patch from below web site
as you
> > > told
> > > me.
> > > ...
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> >

--- End Message ---
--- Begin Message ---
i try to:

$fp = popen("/bin/ls"),"r");
$retvalue = fgets($fp, 4096);
pclose($fp);
print $retvalue;

why $retvalue is always "" (blank)? config is: apache, php, suse... all 
newer versions... and standard configurations... apache runs on a specified 
user. does apache needs root rights or suid on shell? target command?

pleas help, tia.
simeon.
--- End Message ---
--- Begin Message ---

Hi to all!

I've a problem (and a doubt). I'm trying to find out where  php_sockets.dll
file is! I'm trying to develop a proxy server in PHP and I need sockets
functions in PHP.

I downloaded the latest distribution of PHP binaries and there is no
php_sockets.dll in the extensions directory; I've searched all over the
Internet, and can't find it.

I'll really appreciate if you can help me!

By the way, is PHP's sockets funcions usable? (because they are in an
experimental phase I believe).

Thank you very much in advance!

--- End Message ---
--- Begin Message ---
I've just installed, manually, php 4.0.5 and apache 1.3.22 on a RH 7.2 
box.

Php does work fine, however it is not able to access the mysql stuff 
that I installed.  I first was using the PEAR modules and thought 
something was wrong with PEAR, but thought I'd better try the regular 
mysql_connect stuff.  So I did and get an error.  Ideas?  Mysql was 
installed using RPM packages.  Installed the same version of server, 
client and devel.

I've got a username and password in the mysql database that I know works.

Here's the error I'm getting.

Warning: MySQL Connection Failed: Can't connect to local MySQL server 
through socket '/tmp/mysql.sock' (2) in 
/home/httpd/htdocs/include/db.inc on line 3

Warning: Supplied argument is not a valid MySQL-Link resource in 
/home/httpd/htdocs/include/db.inc on line 4
ERROR


Thanks in advance.

CD

--- End Message ---
--- Begin Message ---
Thanks to all the e-mails regarding this.  Looks like RH7.2 (possibly 
other version as well) put the mysql.sock file in /var/lib/mysql rather 
than /tmp/

You can edit your php.ini file to look for the mysql.sock file elsewhere.

Again thanks to all!!

CD


Chris Dorr wrote:

> I've just installed, manually, php 4.0.5 and apache 1.3.22 on a RH 7.2 box.
> 
> Php does work fine, however it is not able to access the mysql stuff 
> that I installed.  I first was using the PEAR modules and thought 
> something was wrong with PEAR, but thought I'd better try the regular 
> mysql_connect stuff.  So I did and get an error.  Ideas?  Mysql was 
> installed using RPM packages.  Installed the same version of server, 
> client and devel.
> 
> I've got a username and password in the mysql database that I know works.
> 
> Here's the error I'm getting.
> 
> Warning: MySQL Connection Failed: Can't connect to local MySQL server 
> through socket '/tmp/mysql.sock' (2) in 
> /home/httpd/htdocs/include/db.inc on line 3
> 
> Warning: Supplied argument is not a valid MySQL-Link resource in 
> /home/httpd/htdocs/include/db.inc on line 4
> ERROR
> 
> 
> Thanks in advance.
> 
> CD
> 

--- End Message ---
--- Begin Message ---
Hi there,

I´ve installed php4 in my linux server and I´m sure I
have everything 
properly installed (php and apache) according to the
manuals and 
comments that I found in this site... the problem is
that when I try to open a 
php page in the server, my browser try to download the
.php file that 
I´m trying to open...

The apache is well configured with the "AddType
application/x-httpd-php 
.php" configuration... and I have no idea why the
apache is not 
executing the php...

Can anyone help me?
Thanks a lot

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
--- End Message ---
--- Begin Message ---
Hi there,

I´ve installed php4 in my linux server and I´m sure I
have everything 
properly installed (php and apache) according to the
manuals and 
comments that I found in this site... the problem is
that when I try to open a 
php page in the server, my browser try to download the
.php file that 
I´m trying to open...

The apache is well configured with the "AddType
application/x-httpd-php 
.php" configuration... and I have no idea why the
apache is not 
executing the php...

Can anyone help me?
Thanks a lot

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
--- End Message ---
--- Begin Message ---
If you have the AddType line in there, then there's probably a problem with
loading the php4 module into Apache. Do you have both the AddModule and
LoadModule statements?

Something like:
LoadModule php4_module        libexec/apache/libphp4.so
AddModule mod_php4.c

?

Try typing the following in the shell prompt: apachectl configtest

- Jonathan


-----Original Message-----
From: the crw [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 9:38 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] apache problems


Hi there,

I´ve installed php4 in my linux server and I´m sure I
have everything 
properly installed (php and apache) according to the
manuals and 
comments that I found in this site... the problem is
that when I try to open a 
php page in the server, my browser try to download the
.php file that 
I´m trying to open...

The apache is well configured with the "AddType
application/x-httpd-php 
.php" configuration... and I have no idea why the
apache is not 
executing the php...

Can anyone help me?
Thanks a lot

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Sounds like you may not have installed apache and php in the proper 
order.  I had the same problem a few days ago.  Here's the order you 
should do things in.


configure apache
configure php
make php
make install php
configure apache AGAIN (make sure you have the directive to get php4 in 
your configure this time)
make apache
make install apache

That should work for you!

CD


The Crw wrote:

> Hi there,
> 
> I´ve installed php4 in my linux server and I´m sure I
> have everything 
> properly installed (php and apache) according to the
> manuals and 
> comments that I found in this site... the problem is
> that when I try to open a 
> php page in the server, my browser try to download the
> .php file that 
> I´m trying to open...
> 
> The apache is well configured with the "AddType
> application/x-httpd-php 
> .php" configuration... and I have no idea why the
> apache is not 
> executing the php...
> 
> Can anyone help me?
> Thanks a lot
> 
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
> 

--- End Message ---
--- Begin Message ---
how to do this?


--- End Message ---
--- Begin Message ---
Pretty much the same as installing it on windows 2000. 

What web server your using?

Thank You
Brian Paulson
Sr. Web Developer
[EMAIL PROTECTED]
http://www.chieftain.com
 

-----Original Message-----
From: Arik [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, November 17, 2001 12:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] How to install PHP on Windows XP?


how to do this?



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]




--- End Message ---

Reply via email to