php-install Digest 22 Jul 2002 23:33:57 -0000 Issue 943
Topics (messages 7849 through 7865):
PHP Install
7849 by: James
Re: Error: reentrancy.c: In function `php_readdir_r': \n reentrancy.c:130: too few
arguments to function `readdir_r'
7850 by: Matti Simperi
MSSQL/PDFLib problem
7851 by: BB
OpenBSD 3.1 + Apache 2.0.39 + PHP 4.2.1 -> configure problem
7852 by: Michele Albrigo
Quick Question
7853 by: Nicholas Mercier
Installing on NT2000
7854 by: Francis
Help with http client code compile
7855 by: Stewart Dean
New Compile - Buffering Issues
7856 by: Jonathan Hilgeman
Header
7857 by: Reetu Singh
Apache 2.0.39
7858 by: bob pilly
7860 by: Chris Santerre
Re: Variable - Return
7859 by: Chris Santerre
7862 by: Viraj Kalinga Abayarathna
7864 by: Khristopher_Klaich.nywd.uscourts.gov
Build PHP 4.2.1 on OS X: "Multiple Definitions"
7861 by: Frank Bitterlich
7865 by: Steve Cayford
Re: Php on win2000 with apache 1.3.22 assistance.
7863 by: Viraj Kalinga Abayarathna
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 ---
Syntax error on line 205 of /www/conf/httpd.conf:
Cannot load /www/libexec/libphp4.so into server: /www/libexec/libphp4.so:
Undefined symbol "compiler_globals_id"
./apachectl start: httpd could not be started
I can't figure out what i did wrong
--- End Message ---
--- Begin Message ---
Hi,
I added &result at third variable passed to readdir_r, but I don't think
that this is a fix to my problem. Someone was done this earlier.
Could this help someone to realy say, what when wrong on my install.
Matti Simperi
> reentrancy.c: In function `php_readdir_r':
> reentrancy.c:130: too few arguments to function `readdir_r'
> make[2]: *** [reentrancy.lo] Error 1
>
--- End Message ---
--- Begin Message ---
I am having problems installing PHP 4.2.1 on a windows 2k server box. I
unzipped PHP, set-up PHP.ini and did everything else fine, downloaded
PDFLib, stuck the appropriate DLL in the extensions folder, but I get errors
when I restart IIS (spose when PHP checks out all its files).
Unable to load dynamic library 'c:\.....\php_mssql.dll' - The specified
procedure could not be found
AND
PDF: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=0
PHP compiled with module API=20020429, debug=0, thread-safety=0
These must match
The DLL i copied over for PDFLib is the version for 4.2.1 and MSSQL client
tools have been installed on the computer
Thanks for your time
--Ben
--- End Message ---
--- Begin Message ---
Hi,
I'm trying to install php 4.2.1 on OpenBSD 3.1 with apache 2.0.39.
I've installed a chrooted Apache, with no problem at all. I've also
installed a non-chrooted MySQL 3.23.51. OpenBSD 3.1 has a quite standard
installation (no additional packages over a base/non-x installation).
I've configured apache with the following line:
./configure --prefix=/usr/local/jails/apache --enable-so \
--enable-ssl --enable-mods-shared=all
MySQL has been configured with the following line:
./configure --prefix=/usr/local/mysql --localstatedir=/home/mysql \
--enable-thread-safe-client --with-mysqld-username=mysql
Both of them work with no problem at all.
Now I'm trying to compile PHP as a DSO.
I get two different kind of errors:
1)configuring with:
./configure --enable-bcmath --enable-ftp --enable-calendar \
--enable-versioning --enable-sysvshm \
--enable-sysvsem --enable-sockets \
--enable-inline-optimization --enable-shared=most \
--enable-trackvars --with-zlib --with-openssl \
--with-ldap --with-bz2=/bin/ --with-imap \
--with-imap-ssl --with-kerberos --with-gettext \
--with-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/jails/apache/bin/apxs
I'm stopped here:
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
and config.log says:
ld: -lgssapi_krb5: no match
so I've searched on mailing lists and found that...
2)adding
export LDFLAGS="-L/usr/lib -lkrb5 -lgssapi"
and configuring again the problem should be fixed.
With the same ./configure line as above, I now get the following error:
checking for Apache 2.0 module support via DSO through APXS... configure:
error: ZTS currently requires working POSIX threads. We were unable to
verify that your system supports Pthreads.
I've tried with
export LDFLAGS="-L/usr/lib -lkrb5 -lgssapi -pthreads"
with no success.
In this case, config.log seems to be truncated, last line:
configure:4082: checking for Apache 2.0 module support via DSO through
APXS
with no error message.
In case 1) the test for Apache 2.0 module support via DSO said:
checking for Apache 2.0 module support via DSO through APXS... yes
So... ...I'm asking for help!
Thank you in advance.
Michele Albrigo
--- End Message ---
--- Begin Message ---
I'm sure this is the wrong list, but I'm sure someone here could either
help me or point me to the right list.
I'm currently developing a Remote CMS for a site.
I'm working on the image upload and want to create a smaller thumbnail type
image (thought >200x>180 instead of >50x>50)
I know I'm going to need either imagecopyresize() or
imagecopyresample(). I don't know which would be better for this purpose
or what the main difference is in terms of quality and run time. Any
comments or assistance is gladly welcome.
Thank you in advance for your time,
Nicholas D. Mercier
PS. If this post goes through twice my appologies.
--- End Message ---
--- Begin Message ---
Ok, installed PHP a couple of times with no prob, but now the php ISAPI
refuses to load, gives a big red down arrow in IIS's ISAPI Filters. Do I
need to set any permissions? I've also dumped all the dll's in the
winnt\system32 still hasnt had any effect... :( and php.ini (unchanged from
the php.ini-dist version) in the winnt directory.
Help!
Thanks
--- End Message ---
--- Begin Message ---
I am now hung up in the PHP compile in the build of the PHP module that links to
HTTPServer....it fails to compile; it seems like there is contention between PHP's
php.h and HTTPServer/Apache's ap_config.h...please see the attachment for the
problem. Can anyone help here?
Background: ====================================
The Apache is 1.3.20
httpd -l output;
Compiled-in modules:
http_core.c
mod_so.c
suexec: disabled; invalid wrapper /usr/HTTPServer/bin/suexec
httpd -V
Server version: IBM_HTTP_SERVER/1.3.19 Apache/1.3.20 (Unix)
Server built: Jul 11 2001 18:09:42
Server's Module Magic Number: 19990320:10
Server compiled with....
-D HAVE_MMAP
-D USE_MMAP_SCOREBOARD
-D USE_MMAP_FILES
-D USE_PTHREAD_SERIALIZED_ACCEPT
-D HTTPD_ROOT="/usr/HTTPServer"
-D SUEXEC_BIN="/usr/HTTPServer/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
-D DEFAULT_LOCKFILE="logs/httpd.lock"
-D DEFAULT_XFERLOG="logs/access_log"
-D DEFAULT_ERRORLOG="logs/error_log"
-D TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
-D ACCESS_CONFIG_FILE="conf/access.conf"
-D RESOURCE_CONFIG_FILE="conf/srm.conf"
--
====
Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York 12504
[EMAIL PROTECTED] voice: 845-758-7475, fax: 845-758-7035
--- Begin Message ---
/bin/sh /usr/php/php-4.2.1/libtool --silent --mode=compile /usr/vac/bin/cc
-I. -I/usr/php/php-4.2.1/sapi/apache -I/usr/php/php-4
.2.1/main -I/usr/php/php-4.2.1 -I/usr/HTTPServer/include -I/usr/php/php-4.2.1/Zend
-I/usr/ldap/include -I/usr/php/php-4.2.1/ext/mysql/lib
mysql -I/usr/php/php-4.2.1/ext/xml/expat -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT
-DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL
_NEEDED -I/usr/php/php-4.2.1/TSRM -g -prefer-pic -c php_apache.c
"/usr/include/dlfcn.h", line 51.9: 1506-236 (W) Macro name RTLD_LAZY has been
redefined.
"/usr/include/dlfcn.h", line 51.9: 1506-358 (I) "RTLD_LAZY" is defined on line 69 of
/usr/php/php-4.2.1/Zend/zend.h.
"/usr/include/dlfcn.h", line 55.9: 1506-236 (W) Macro name RTLD_GLOBAL has been
redefined.
"/usr/include/dlfcn.h", line 55.9: 1506-358 (I) "RTLD_GLOBAL" is defined on line 73 of
/usr/php/php-4.2.1/Zend/zend.h.
"/usr/HTTPServer/include/ap_config.h", line 1350.9: 1506-236 (W) Macro name XtOffsetOf
has been redefined.
"/usr/HTTPServer/include/ap_config.h", line 1350.9: 1506-358 (I) "XtOffsetOf" is
defined on line 344 of /usr/php/php-4.2.1/main/php.h.
"php_apache.c", line 209.55: 1506-045 (S) Undeclared identifier SERVER_VERSION.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
--- End Message ---
--- End Message ---
--- Begin Message ---
This might be a little off the topic of installations, but since it occurred just
after a new compile...
I just compiled 4.2.1 CGI so I can use it to create command-line system tools. Now,
one of my tools opens up a socket to a mail host, and reads all the messages and
closes the socket. I have print statements in my code to display the output as it
streams in, but for some reason, PHP wants to buffer the output or something, and
flush() doesn't want to work, either. I know for sure that there is output to be
displayed, because I can place die() statements early in the code to see the output of
previous print statements.
For instance:
<?
print "Testing 123\n";
flush();
// Some other long code down here that takes a few minutes to process
?>
... does not work. The output will be held until the entire program is finished (a few
minutes).
Why is this happening? I never had this issue with 4.0.6 ... Is it a configuration
issue with buffering or garbage collecting or something?
- Jonathan
--- End Message ---
--- Begin Message ---
Hi All I am using following code and I am getting the following response ... kindly
help me ....
// check to see if $PHP_AUTH_USER already contains information
if (!isset($PHP_AUTH_USER)) {
//if empty, send header causing dialog box to appear
header('WWW-Authenticate: Basic realm = "Sequence Database"');
header('HTTP/1.0 401 Unauthorised');
echo 'Authorisation Required';
exit;
}
else {
//open database connection
include("dbconnect1.php3");
//Formualte the query
$sql ="Select user_id from user_table where user_id=\"$PHP_AUTH_USER\" and
user_psswd = password('$PHP_AUTH_PW')"; //execute the query and put the result in
$result
$result = mysql_query($sql) or die ("Couldn't get results");
//get the number of rows in $result. should be 0 if valid. 1 if invalid
$num= mysql_num_rows($result) or die ("Couldn't get count");
// Present results based on validity
if ($num ==0) {
echo "You are not authorised!";
}
RESPONSE from server
Server error!
Error message:
malformed header from script. Bad header=HTTP/1.0 401 Unauthorised: php.exe
If you think this is a server error, please contact the webmaster Error 500
192.168.3.31
07/22/02 12:29:04
reetu
---------------------------------
Do You Yahoo!?
Yahoo! Health - Feel better, live better
--- End Message ---
--- Begin Message ---
Hello im trying to install php 4.2.1 as a mod to
apache 2.0.39 on a redhat 7.3 system. I have compiled
the apache with the --enable-mod=so switch and i have
used the --with-apxs2=/www/bin/apxs switch as well but
when i go to make install php i get teh following
error:
php_functions.c:93:27: missing binary operator before
'!'
make[3]: *** [php_functions.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Has anyone seen this before and if so where am i going
wrong?
Thanks in advance.
bobpilly
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Know problem. Download the latest snapshot from snaps.php.net and unpack it.
Copy the new php_functions.c over the old. This has been reported to work.
-----Original Message-----
From: bob pilly [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 12:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Apache 2.0.39
Hello im trying to install php 4.2.1 as a mod to
apache 2.0.39 on a redhat 7.3 system. I have compiled
the apache with the --enable-mod=so switch and i have
used the --with-apxs2=/www/bin/apxs switch as well but
when i go to make install php i get teh following
error:
php_functions.c:93:27: missing binary operator before
'!'
make[3]: *** [php_functions.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Has anyone seen this before and if so where am i going
wrong?
Thanks in advance.
bobpilly
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
do a search on php.net for register_globals. This now defaults to OFF.
Either turn it on, or use the $_GET function. $_GET is more secure.
-----Original Message-----
From: Reetu Singh [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 20, 2002 10:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Variable - Return
Hi all,
I have installed apache ver 2.0.39 and Php4.2.1 and both are running fine.
The problm I have is that when i tested the script with getting the variable
from the user and passing it to the next script , I am not able to take the
value of the variable to the next script. The script is able to connect to
the database (MYSQL) but is not able to return the value. Kindly help me.
reetu
---------------------------------
Do You Yahoo!?
Yahoo! Health - Feel better, live better
--- End Message ---
--- Begin Message ---
please post the both codings. This may be a
variable name missmatch or something similar,
can't give a solution witout go through the coding.
vk
www.CeyNet.net - The Lowest Cost Web Hosting (100% reliable)
-----Original Message-----
From: Reetu Singh [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 21, 2002 8:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Variable - Return
Hi all,
I have installed apache ver 2.0.39 and Php4.2.1 and both are running fine.
The problm I have is that when i tested the script with getting the variable
from the user and passing it to the next script , I am not able to take the
value of the variable to the next script. The script is able to connect to
the database (MYSQL) but is not able to return the value. Kindly help me.
reetu
---------------------------------
Do You Yahoo!?
Yahoo! Health - Feel better, live better
--- End Message ---
--- Begin Message ---
Are you trying to pass it with a session or a cookie.....? ON my linux
box I know that I could not get sessions to start to work until I changed
the ownership of the /tmp directory where the session was wrtitten....this
changed from apache to apache2.
Just my .02
"Viraj Kalinga Abayarathna" <[EMAIL PROTECTED]>
07/22/2002 03:36 PM
Please respond to viraj
To: "Reetu Singh" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
cc:
Subject: RE: [PHP-INST] Variable - Return
please post the both codings. This may be a
variable name missmatch or something similar,
can't give a solution witout go through the coding.
vk
www.CeyNet.net - The Lowest Cost Web Hosting (100% reliable)
-----Original Message-----
From: Reetu Singh [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 21, 2002 8:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Variable - Return
Hi all,
I have installed apache ver 2.0.39 and Php4.2.1 and both are running
fine.
The problm I have is that when i tested the script with getting the
variable
from the user and passing it to the next script , I am not able to take
the
value of the variable to the next script. The script is able to connect to
the database (MYSQL) but is not able to return the value. Kindly help me.
reetu
---------------------------------
Do You Yahoo!?
Yahoo! Health - Feel better, live better
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
newbie alert! I've never built anything on OS X, so I thought I'd better
follow the docs by the letter. Still, no go...
When I run "make", I get a couple hundred error messages like this:
> ld: multiple definitions of symbol _virtual_utime
> TSRM/.libs/libtsrm.al(tsrm_virtual_cwd.lo) definition of _virtual_utime
> in section (__TEXT,__text)
> TSRM/.libs/libtsrm.al(tsrm_virtual_cwd.lo) definition of _virtual_utime
> in section (__TEXT,__text)
The steps I did:
cd /Developer/PHP/php-4.2.1
./configure --with-apxs --with-mysql --with-fbsql --enable-track-vars
make
I've tried without the --with-fbsql option, same result.
The FAQ didn't offer a solution to this problem.
What am I doing wrong? A virtual pizza for a kind soul who helps me get
started!
Thanks,
Frank+++
--- End Message ---
--- Begin Message ---
On Monday, July 22, 2002, at 02:10 PM, Frank Bitterlich wrote:
> Hi,
>
> newbie alert! I've never built anything on OS X, so I thought I'd better
> follow the docs by the letter. Still, no go...
Building PHP on OSX is tricky, at least the last time I did it (a couple
months ago). What directions were you following?
You have to work around OSX's two namespace issues, and I believe a
different version of libtool.
Start by looking at http://www.entropy.ch/software/macosx/php.
If that doesn't help, I can send you my step-by-step recipe, but I don't
know if it works with the current php and osx.
-Steve
--- End Message ---
--- Begin Message ---
Rajeev,
first see this line in your httpd.conf..
Your line ---> ScriptAlias /php/ "D:\Program Files\PhP/php-4.2.1-Win32/"
see the difference ...... you have set the Alias path incorrectly..
change it to this... (A Slash can change a world)
ScriptAlias /php/ "D:/Program Files/PhP/php-4.2.1-Win32/"
then save your file with the extension "filename.php" not the
"filename.html",
if you name it html, the server will not try to parse the file through
php.exe,
so you have to name it as ".php".
happy coding
Vk
www.CeyNet.net - Contact [EMAIL PROTECTED] for custom hosting plans.
-----Original Message-----
From: Rajeev Ramdas [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 20, 2002 11:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Php on win2000 with apache 1.3.22 assistance.
Hi All...
I am having trouble installing and running php on windows 2000.
I have downloaded php-4.2.1-win32.zip and unzipped it into d:\program
files\Php.
I have copied the php.ini-recommended to c:\winnt\php.ini
I have Apache 1.3.22 installed and running other stuff.
I have added D:\Program Files\PhP\php-4.2.1-Win32 and D:\Program
Files\PhP\php-4.2.1-Win32\dlls to the PATH variable on Win 2000.
.\php.exe -i gives me valid html output.
httpd configuration.
--------------------
I have added the following lines to httpd.conf
ScriptAlias /php/ "D:\Program Files\PhP/php-4.2.1-Win32/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
<Directory "D:\Program Files\Php\php-4.2.1-Win32">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
LoadModule php4_module "d:/Program
Files/Php/php-4.2.1-Win32/sapi/php4apache.dll"
I do not see any php related error messages in access_log or error_log
All i get when i type in the url
is a "; ?> , and when i look at view source i see the entire html that i
had type in which is
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo "Hello World<p>"; ?>
</body>
</html>
i then added log_errors=on and error_log = d:\temp\psp_error_log.log in
php.ini and no error log gets written, which pretty much tells me that
apache is not detecting php.exe...
Can anyone help me resolve this issue...?
Than You
-Rajeev.
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---