php-install Digest 18 Jan 2002 03:03:10 -0000 Issue 655

Topics (messages 5614 through 5619):

no mysqlclient or lmysqlclient so installing php w/mysql fails
        5614 by: Shena Delian O'Brien

what a php editor to use?
        5615 by: Webmaster

Php + pgsql
        5616 by: Leonard Bouchet
        5618 by: Yasuo Ohgaki

Re: problems with snmp and php
        5617 by: Giovanny Miguel Orozco Theran

Re: using PHP as ROOT
        5619 by: Fred

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 ---
Using Redhat 7.2 w/mysql 3.23.41 and trying to install 4.1.1 of php. The configure 
goes 
through but when running a make I get the following error:

/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/home/admin/php-4.1.1'
make: *** [all-recursive] Error 1

I have some questions...

1) What is lmysqlclient? 
2) How is it that I don't have it? Is it some configure option I need when installing 
mysql? 
3) How can I get it to resolve this error...? 

I need php to work with mysql ... that's the entire point of this exercise. ;)

Thanks for any help

----
Shena Delian O'Brien
http://www.darklock.com/



--- End Message ---
--- Begin Message ---
Hi,
My PhP is under Linux compiled into the Apache web server.
The Linux box has no X-Windows
What a WYSIWYG PhP editor could I use on my Lan W2K machine connected to the
Linux PhP? And how?
Any ideas? Thanks
Antal
++++++++++++++++++
Kreorg Oktatóközpont
http://www.kreorg.hu
[EMAIL PROTECTED]
Tel:+36-1-321-00-31
Fax:+36-1-397-27-80
GRID Erő a változáshoz.

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

I saw this problem has been reported a few times, but I still can't make it
work on my system.

I get 

Syntax error on line 226 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server:
/etc/httpd/modules/libphp4.so: undefined symbol: PQoidValue

when I tried to start apache 1.3.22

I've compiled php 4.0.6 with

./configure --with-pgsql=/usr/local/pgsql --with-apxs --without-mysql

And my ld.so.conf is

/usr/lib
/usr/lib/qt-2.1.0/lib
/usr/lib/qt-1.45/lib
/usr/X11R6/lib
/usr/local/BerkeleyDB.3.2/lib
/usr/local/pgsql/lib


So I can't figure out why it still doesn't work for me...

Any help would be appreciated

Thanks a lot in advance

-leo

(PostgreSQL version: 7.1.3)

--- End Message ---
--- Begin Message ---
The cause are

  - you haven't build PHP by yoursel
  - build PHP with different system
  - you have old libpq.so in your system
  - others?

Build PHP with your system and make sure you don't have
old libpq.so enabled on your system.

Use following order for ld.so.conf if you have old libpq.

 > /usr/local/pgsql/lib
 > /usr/lib
 > /usr/lib/qt-2.1.0/lib
 > /usr/lib/qt-1.45/lib
 > /usr/X11R6/lib
 > /usr/local/BerkeleyDB.3.2/lib
 >

--
Yasuo Ohgaki


Leonard Bouchet wrote:
> Hi,
> 
> I saw this problem has been reported a few times, but I still can't make it
> work on my system.
> 
> I get 
> 
> Syntax error on line 226 of /etc/httpd/conf/httpd.conf:
> Cannot load /etc/httpd/modules/libphp4.so into server:
> /etc/httpd/modules/libphp4.so: undefined symbol: PQoidValue
> 
> when I tried to start apache 1.3.22
> 
> I've compiled php 4.0.6 with
> 
> ./configure --with-pgsql=/usr/local/pgsql --with-apxs --without-mysql
> 
> And my ld.so.conf is
> 
> /usr/lib
> /usr/lib/qt-2.1.0/lib
> /usr/lib/qt-1.45/lib
> /usr/X11R6/lib
> /usr/local/BerkeleyDB.3.2/lib
> /usr/local/pgsql/lib
> 
> 
> So I can't figure out why it still doesn't work for me...
> 
> Any help would be appreciated
> 
> Thanks a lot in advance
> 
> -leo
> 
> (PostgreSQL version: 7.1.3)
> 
> 

--- End Message ---
--- Begin Message ---
kstat is a kernel statistics facility  library in source code of
ucd-snmp-4.2.1
we don't know how linking this library

it are parts of config.h

/* Define if you have the kstat library (-lkstat).  */
#define HAVE_LIBKSTAT 1

/* Define if you have the <kstat.h> header file.  */
#define HAVE_KSTAT_H 1

but we donīt know if itīs necesary use it

> Try adding -lkstat to the LIBS line in your Apache src/Configure file.
> Find the right platform in that file and add it there.
>
> On Wed, 16 Jan 2002, Giovanny Miguel Orozco Theran wrote:
>
> > Mr. -Rasmus
> > we try adding --with-kerberos to us configure line, and we build
ucd-snmp
> > without kerberos support
> > but not run, follow the same error
> >
> > # ./apachectl start
> >   Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
> > Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
> > /usr/local/apache/bin/httpd: fatal: relocation error: file
> > /usr/local/lib/libsnmp-0.4.2.1 .so: symbol kstat_open: referenced symbol
not
> > found
> > ./apachectl start: httpd could not be started
> >
> > do you have other idea?
> >
> >
>


--- End Message ---
--- Begin Message ---
I do not think it is a very wise idea to give any type of root access to
your php scripts. This is a disaster waiting to happen.  You can accomplish
the same thing by having your php scripts manipulate template files, which
are exact copies of the files you want to edit.  Then have a root cron job
copy the template file to the actual file every minute or so.

Fred

Robert Abbate <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi. I am trying to have PHP do things as a ROOT user. Like: make files,
> change permissions of files etc...
>
> however, I cannot do it! Even if I give the php scripts root ownership, it
> still says that apache is the owner of the files, and hence, I can't do
> anything with them.
>
> Does anyone have any insight?
>
> Thanks,
> Robert A
>
>


--- End Message ---

Reply via email to