php-install Digest 7 Sep 2002 15:07:22 -0000 Issue 1012

Topics (messages 8355 through 8359):

Unable to load Midgard.so
        8355 by: Lawonna Daves

FreeBSD make PHP dies - pls help.
        8356 by: Steve Jones

Problems Installing Sybase 12.5 with PHP 4.2.3
        8357 by: Christopher Schreiber

Running PHP on Win98 PWS
        8358 by: caryc.sinatown.com

Re: windows-apache2
        8359 by: thedohman

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 ---
I am trying to set up Midgard 1.4.2-231 with PHP
4.1.0-104 and Apache 1.3.23-137, all as RPMs from SuSE
8.0. When I try to start Apache, I get an error which
reads "PHP Warning: Unable to load dynamic library
'midgard.so' - midgard.so: cannot open shared object
file: No such file or directory in unknown on line 0".

I think I need a symbolic link so PHP can pick up the
Midgard module, but I'm not sure which PHP directory
to link it to. Midgard.so is at
/usr/share/20010901/midgard.so.

Any advice would be greatly appreciated.

Sincerely,

LD

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--- End Message ---
--- Begin Message ---
Relative newbie here: My host (pair.com) runs FreeBSD 4.1.1. Based on my
poking around in /usr/local, I think they have Mysql 3.22.32 installed
on the machine I use. I am trying to install PHP 4.2.2 with
XSLT/sablotron in my /usr/home/USERNAME directory because pair's 
standard install of PHP does not include sablotron. I have compiled and 
installed expat and sablotron. Using the instructions at 
http://www.vttrains.com/phphelp/ I have gotten past step 6 (configure 
PHP) but step 7 (make) dies with:

/usr/local/lib/mysql/libmysqlclient.so: warning: tempnam() possibly used
unsafely; consider using mkstemp()
*** Error code 1

Stop in /usr/home/USERNAME/phpsrc/php-4.2.2.
*** Error code 1

I assume make doesn't care for something in pair's installation of mysql
(/usr/local/lib/mysql/libmysqlclient.so). According to mysql.com at
http://www.mysql.com/doc/en/News-3.23.26.html, they "Changed to use
mkstemp() instead of tempnam()". mysql_version.h in
/usr/local/include/mysql says it is version 3.22.32 (presumably before
the change). Now I'm really confused. I have not done anything with
mysql. Ideas? Thanks.

Steve

Steps leading to this point:

cd EXPAT_SRC_DIRECTORY
nice ./configure --prefix=/usr/home/USERNAME/usr/local; nice make; nice
make install

cd SABLOTRON_SRC_DIRECTORY
setenv LD_LIBRARY_PATH /usr/home/USERNAME/usr/local/lib
setenv LIBRARY_PATH /usr/home/USERNAME/usr/local/include
setenv LD_RUN_PATH /usr/home/USERNAME/usr/local/
setenv CPLUS_INCLUDE_PATH /usr/home/USERNAME/usr/local/include
setenv LIBS -L/usr/home/USERNAME/usr/local/lib
setenv CPPFLAGS -I/usr/home/USERNAME/usr/local/include

nice ./configure --prefix=/usr/home/USERNAME/usr/local; nice make; nice
make install

cd PHP_SRC_DIRECTORY
nice ./configure --with-gd=/usr/local --with-mysql=/usr/local \
--with-config-file-path=/usr/home/USERNAME/phpini \
--with-xslt-sablot=/usr/home/USERNAME/usr/local \
--enable-debug=no --enable-track-vars=yes \
--enable-force-cgi-redirect=yes --enable-xslt=yes


--- End Message ---
--- Begin Message ---
I had PHP 4.2.2 and Sybase 11.9.2 working together perfectly.  (Why do I
ever try to upgrade! :))

I recently upgraded Sybase from 11.9.2 to 12.5, and am now trying to
compile 
PHP 4.2.3 with it.  I am using the following ./configure command:

./configure --prefix=/usr/local/php
--with-config-file-path=/usr/local/php \
--with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql \
--with-sybase=/opt/sybase-12.5 --with-oci8=/usr/local/oracle \
--with-oracle=/usr/local/oracle --with-pdflib=/usr/local/pdflib \
--with-jpeg --with-tiff --with-zlib --with-gd --with-ttf --with-freetype
\
--with-xml --with-gettext --enable-ftp --enable-versioning
--enable-sockets \
--enable-calendar --enable-sysvsem --enable-sysvshm --enable-track-vars
\
--enable-debugger --enable-magic-quotes --enable-rpath
--enable-short-tags \
--enable-posix --enable-session --enable-xml --enable-bcmath
--enable-ctype \
--enable-mailparse --with-apache=../apache_1.3.26

At first, it was having problems finding the Sybase includes (it's now
in 
/opt/sybase-12.5/OCS-12_5/include instead of /opt/sybase-12.5/include,
so I 
fixed that with a symbolic link).

Now I am getting the following errors from make after the compile is
almost
finished and it links everything together:

/usr/bin/ld: cannot find -lsybdb
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/www/src/php-4.2.3'
make: *** [all-recursive] Error 1

My /etc/ld.so.conf file looks like this:
/usr/lib
/usr/local/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-2.3.0/lib
/usr/lib/qt-1.45/lib
/usr/lib/sane
/usr/lib/nsr
/opt/sybase-12.5/OCS/lib
/opt/sybase-12.5/ASE/lib
/opt/sybase-12.5/FTS/lib
/opt/sybase-12.5/SQLRemote/lib

I would appreciate any insight on how I might be able to get this to
work.

Thanks in advance!

Chris Schreiber


--- End Message ---
--- Begin Message ---

Hi,
I got the following message when try my first PHP sample in IE browser. What should I 
do? Should i install a patch. I got no clue.

"Security Alert! PHP CGI cannot be accessed directly. 
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a 
page will only be served up if the REDIRECT_STATUS CGI variable is set. This variable 
is set, for example, by Apache's Action directive redirect. "

Thanx!!


Cheers,
Cary

==================================================================
至尊偶像鈴聲選舉:http://sms.sina.com.hk/ringtone/


--- End Message ---
--- Begin Message ---
Thank you Erik, I'm aware that there are security risks.  Nonetheless, I am
trying to set up the module on Win98SE.
Both the AddModule and AddType lines are in httpd.conf, as per the
distributed documentation.

----- Original Message -----
From: "Erik" <[EMAIL PROTECTED]>
To: "Thedohman" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 12:43 PM
Subject: Re: windows-apache2


> hi,
>
> if i see that one more time i setup a website windows 98 se is not a
server
> os and cannot run servers do you guys care about your security ?????
> and where is "AddModule mod_php4.c"
>
> and the php mime type ?
>
>
>
> ----- Original Message -----
> From: "Thedohman" <[EMAIL PROTECTED]>
> Newsgroups: php.install
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 06, 2002 6:55 PM
> Subject: windows-apache2
>
>
> hello
> I'm trying to install the sapi module with apache2 on win98.
>
>  apache version 2.0.40
>  php version 4.2.2
>  windows 98se
>
> when starting apache it gives the following error:
> D:\Program Files\Apache Group\Apache2\bin>apache -k start
> Syntax error on line 160 of D:/Program Files/Apache
> Group/Apache2/conf/httpd.conf:
>
> Cannot load D:/php/sapi/php4apache2.dll into server: A device attached to
> the system is not functioning.
>
> D:\Program Files\Apache Group\Apache2\bin>
>
> line 160 of httpd.conf is:
> LoadModule php4_module d:/php/sapi/php4apache2.dll
> right in amidst all the other loadmodule lines.
>
> php runs fine from the command line.
> Apache runs fine without that line.
> The CGI version of php seems to work okay (apache runs, returns a 'hello
> world' test).
> I've done everything the php documentation says to do for windows.
>
> Is there some way to find out what attached device is not functioning?
>
> tia,
> chris


--- End Message ---

Reply via email to