php-install Digest 12 Oct 2001 08:22:39 -0000 Issue 502
Topics (messages 4604 through 4610):
groupadd
4604 by: Julius Barber (La Prensa)
Re: Need help with NSAPI on Solaris - crashes serv er - fixed
4605 by: Sloey, James
libc.so.25.2
4606 by: ryan
4607 by: Jim Thome
PHP problem with self-made web server
4608 by: Peter Jukel
cannot run php within html
4609 by: Roger Pang
4610 by: Paul Gardiner
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 ---
Hi,
Why is it that I cannot use this command?
Can somebody help me out here, I am
trying to use it as root and cannot use it.
Juba
--- End Message ---
--- Begin Message ---
Great! The php4-200110110600 worked perfectly.
Thanks!
-----Original Message-----
From: Aki Häkkilä [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 11, 2001 2:32 AM
To: Sloey, James
Subject: Re: [PHP-INST] Re: Need help with NSAPI on Solaris - crashes
serv er
This is my original bug report:
http://bugs.php.net/bug.php?id=13174
You can find the configure switches etc. there.
"Sloey, James" wrote:
>
> The article says:
> "NSAPI does not support pthreads. Attempting to use pthreads causes the
> web server to crash."
> What switches did you use for configure?
>
> -----Original Message-----
> From: Aki Häkkilä [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 10, 2001 10:34 AM
> To: [EMAIL PROTECTED]; James Sloey
> Subject: [PHP-INST] Re: Need help with NSAPI on Solaris - crashes server
>
> I have managed to start iPlanet with the latest snapshot, but I haven't
> tested it too much yet. That version uses pthreads, the NSAPI functions
> were removed for some reason.
>
> Here is the knowledgebase article that suggests using NSAPI thread
> functions.
> http://knowledgebase.iplanet.com/ikb/kb/articles/4580.html
>
> James Sloey wrote:
> >
> > I'm running Solaris 7 with iPlanet 4.1SP2 and trying to use NSAPI. I
used:
> >
> > ./configure --with-oci8=/u01/app/oracle/product/8.0.5 --enable-sigchild
> > --with-nsapi=/u01/app/netscape
> >
> > As soon as the php4_init is called the server crashes. I went to the
> iPlanet
> > knowledge base and it says that pthreads can't be used with NSAPI.
> >
> > When I tried to turn them off in configure ZEND blows up with:
> >
> > Making all in Zend
> > /bin/sh ../libtool --silent --mode=compile c++ -DHAVE_CONFIG_H -I. -I.
> > -I../main
> > -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
> > -DSUPPORT_
> > UTF8 -DXML_BYTE_ORDER=21 -I../TSRM -DTHREAD=1 -pthreads -c
> > zend_language_scanne
> > r_cc.cc
> > In file included from zend_alloc.h:27,
> > from zend.h:135,
> > from zend_language_scanner_cc.cc:2661:
> > ../TSRM/TSRM.h:83: type specifier omitted for parameter
> > ../TSRM/TSRM.h:83: parse error before `*'
> > ../TSRM/TSRM.h:101: syntax error before `('
> > ../TSRM/TSRM.h:102: syntax error before `('
> > ../TSRM/TSRM.h:103: `MUTEX_T' was not declared in this scope
> > ../TSRM/TSRM.h:103: parse error before `)'
> > ../TSRM/TSRM.h:104: `MUTEX_T' was not declared in this scope
> > ../TSRM/TSRM.h:104: parse error before `)'
> > ../TSRM/TSRM.h:105: `MUTEX_T' was not declared in this scope
> > ../TSRM/TSRM.h:105: parse error before `)'
> > ../TSRM/TSRM.h:107: `THREAD_T' was not declared in this scope
> > ../TSRM/TSRM.h:107: parse error before `)'
> > ../TSRM/TSRM.h:108: `THREAD_T' was not declared in this scope
> > ../TSRM/TSRM.h:108: parse error before `)'
> > *** Error code 1
> > make: Fatal error: Command failed for target
`zend_language_scanner_cc.lo'
> > Current working directory /export/home/jsloey/php-4.0.6/Zend
> > *** Error code 1
> > make: Fatal error: Command failed for target `all-recursive'
> >
> > I'm clueless as this is my first php install. Any help would be
> > appreciated.
> >
> > _____
> >
> > <mailto:[EMAIL PROTECTED]> Jim Sloey
> > 2613 W. Henrietta Rd. 868 - 01H
> > Rochester, New York 14623 U.S.A.
> > <http://www.xerox.com> Xerox - eServices
> > Phone: 716.427.4584 / 8*227.4584
> > Fax : 716.427.4196 / 8*227.4196
> >
> >
>
<mailto:[EMAIL PROTECTED]?subject=Please%20Call%20Me&cc=james.sloey%40usa
> > .xerox.com> Pager: 716.246.2604 / 9*246.2604
> >
>
> --
> 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 ---
core# /usr/local/apache/bin/httpd -v
Server version: Apache/1.3.19 (Unix)
Server built: Oct 11 2001 15:33:02
core# uname -a
OpenBSD core 2.9 GENERIC#653 i386
php version 4.0.6
I've compiled in php as a static module, added
LoadModule php4_module libexec/libphp4.so
to httpd.conf (do i really need this?). Anywho, when starting apache:
core# ./apachectl configtest
/usr/libexec/ld.so: httpd: libc.so.25.2: No such file or directory
however, libc.so.26.2 exists. Linking or copying 26.2 to 25.2 causes httpd
to dump core.
Any ideas?
--- End Message ---
--- Begin Message ---
Ryan-
"LoadModule php4_module ..." is only needed if you compiled PHP as a dynamic module
(DSO). However, remember to put in the line "AddType application/x-httpd-php .php"
(or uncomment it) in the httpd.conf file.
Regards,
Jim Thome
>>> "ryan" <[EMAIL PROTECTED]> 10/11 2:40 PM >>>
core# /usr/local/apache/bin/httpd -v
Server version: Apache/1.3.19 (Unix)
Server built: Oct 11 2001 15:33:02
core# uname -a
OpenBSD core 2.9 GENERIC#653 i386
php version 4.0.6
I've compiled in php as a static module, added
LoadModule php4_module libexec/libphp4.so
to httpd.conf (do i really need this?). Anywho, when starting apache:
core# ./apachectl configtest
/usr/libexec/ld.so: httpd: libc.so.25.2: No such file or directory
however, libc.so.26.2 exists. Linking or copying 26.2 to 25.2 causes httpd
to dump core.
Any ideas?
--
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
I need to run PHP from the command line through my web server which I am
building.
However, when I issue a command such as
php.exe test.php > result.txt
where test.php contains:
<html>
<?php
echo $SERVER_NAME;
?>
</html>
and I get the error:
X-Powered-By: PHP/4.0.5
Content-type: text/html
<html>
PHP Version in use:
<br>
<b>Warning</b>: Undefined variable: SERVER_NAME in <b>c:\test.php</b> on
line <b>4</b><br>
</html>
I am also not able to pass parameters to a PHP script through the
QUERY_STRING environment variable.
Do I need to set other environment variables before calling the PHP
interpreter to enable certain variables? If so, which ones?
I am using Windows.
Thanks in advance
Regards
Peter
--- End Message ---
--- Begin Message ---
I have written the following html called "test.html" in /var/www/html
directory :
<html>
<body>
<?php
phpinfo()
?>
</body>
</html>
When I access this html with a browser, nothing displayed. However, when I
renamed it to "test.php", it works.
Anything wrong ? I am running Red Hat 7.1 and chosen to install everything.
No change on any config files relating to PHP and Apache.
--- End Message ---
--- Begin Message ---
Hi Roger,
"Roger Pang" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have written the following html called "test.html" in /var/www/html
> directory :
> <html>
> <body>
> <?php
> phpinfo()
> ?>
> </body>
> </html>
>
> When I access this html with a browser, nothing displayed. However, when I
> renamed it to "test.php", it works.
It should be named with the .php extension. This is so the web server knows
to hand the file to PHP for processing and then returns the results to your
browser. You can modify your setup (httpd.conf) so php parses .html files
aswell but there is no real need.
If you do need this then find the folowing line in
<apachedir>/conf/httpd.conf ......
AddType application/x-httpd-php .php
...... and then add which ever extensions you wish to be processed by PHP
i.e.
AddType application/x-httpd-php .php .html
Remember to restart Apache after any changes.
>
> Anything wrong ? I am running Red Hat 7.1 and chosen to install
everything.
> No change on any config files relating to PHP and Apache.
Nothing wrong so enjoy ;o)
- Paul -
>
>
>
>
>
> --
> 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 ---