php-install Digest 31 Aug 2002 02:06:53 -0000 Issue 1001
Topics (messages 8267 through 8283):
PHP-4.2.2 as CGI
8267 by: Ken Kyler
8269 by: Matt Schroebel
8283 by: Ken Kyler
Re: Apache 2.0.40/PHP 4.2.2 Win2000 Help
8268 by: Yuriy Rusinov
Re: Installing command-line php binary
8270 by: Vicki Brown
Apache 1.3.26 / PHP 4.2.2 module error
8271 by: Rosemary Stasek
multiple php.ini files
8272 by: Tomasz Orzechowski
php.ini under Unix Solaris 9 / PHP 4.3.0-dev / Apache-2.0.40
8273 by: Lou Picciano / Essex Systems
8274 by: Laurent Larquère
8275 by: Lou Picciano / Essex Systems
PHP 4.2.2 + Redhat 7.3 + Apache help
8276 by: Stewart Harrison
Help on new install please ..
8277 by: David Tod Sigafoos
build fails at mysql
8278 by: Elliott Potter
I cant compile apache\php\mysql.. missing libphp4.so
8279 by: ceLius
8282 by: Jeanne Case
Problem installing on IIS Windows 98
8280 by: Shediac
Dependy for Php4ts
8281 by: Shediac
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 ---
FreeBSD 4.5-STABLE
Apache 1.3.24
PHP 4.2.2
I have compiled PHP as a CGI and when it executes, I get the following:
Parse error: parse error, unexpected T_STRING in /usr/local/bin/php on line 3736
Thoughts?
Ken
--- End Message ---
--- Begin Message ---
Missing semi colon on line 3735? Post 10 lines of code starting at line 3730 or so.
> -----Original Message-----
> From: Ken Kyler [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 30, 2002 7:46 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] PHP-4.2.2 as CGI
>
>
> FreeBSD 4.5-STABLE
> Apache 1.3.24
> PHP 4.2.2
>
> I have compiled PHP as a CGI and when it executes, I get the
> following:
>
> Parse error: parse error, unexpected T_STRING in
> /usr/local/bin/php on line 3736
>
> Thoughts?
>
> Ken
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
> Missing semi colon on line 3735? Post 10 lines of code starting
> at line 3730 or so.
What file(s) do I send? the error indicates it is the PHP executable
causing problems.
Ken
>
> > -----Original Message-----
> > From: Ken Kyler [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 30, 2002 7:46 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-INST] PHP-4.2.2 as CGI
> >
> >
> > FreeBSD 4.5-STABLE
> > Apache 1.3.24
> > PHP 4.2.2
> >
> > I have compiled PHP as a CGI and when it executes, I get the
> > following:
> >
> > Parse error: parse error, unexpected T_STRING in
> > /usr/local/bin/php on line 3736
> >
> > Thoughts?
> >
> > Ken
> >
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
--- End Message ---
--- Begin Message ---
Dear Weng Pangan
> 2. Added to following to httpd.conf
> ScriptAlias /php/ "c:/php"
Try to write ScriptAlias /php/ "c:/php/".
If this scripts will not work after that, write me. I send my httpd.conf.
Best regards,
Sincerely yours,
Yuriy Rusinov.
--- End Message ---
--- Begin Message ---
On Friday, August 30, 2002, at 02:26 , Chris Hewitt wrote:
> Vicki Brown wrote:
>
>>
>> On Wednesday, August 28, 2002, at 07:27 PM, Jim Thome wrote:
>>
>>> I believe the binary is only installed when compiled as a CGI
>>> program. Remove the nsapi line and recompile to get the
>>> binary installed.
>>
>> If that is the case, it would be a bug... it should never be
>> necessary to re_configure_ to cause a built file to be
>> installed.
>
> I agree with your statement but it is not a case of installing
> a built file. The configure line determines how PHP is to be
> compiled (built). The nsapi part asks for it to be compiled as
> a dynamic library, without it as a stand-alone program (CGI).
>
No.
The --enable-cli configure option causes PHP to be built as a
CGI (and does work) regardless of other flags. So this is an
installation thing only.
- Vicki
--- End Message ---
--- Begin Message ---
I am trying to install PHP 4.2.2 with an existing installation of Apache
1.3.26. I know I should have done a dynamic installation with apxs, but I
started down the path of a static installation. I have read EVERY piece of
documentation I can find but can't find a reference to this error:
With the following line in my httpd.conf file
AddModule modules/php4/libhph4.a
I get the following error from apachectl start:
Syntax error on line 275 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'modules/php4/libphp4.a': not in list of loaded
modules
I used the following config line:
./configure --prefix=/usr/local/apache \
--activate-module=src/modules/php4/lilbphp4.a
and it worked with no errors that I could see.
At this point I'd be willing to start over with a dynamic installation if
someone would just tell me how to get mod_so.c installed.
--- End Message ---
--- Begin Message ---
Hi,
I need to know if there is functionality that would allow me to either
use (forcibly) multiple php.ini files, or that would allow me to include
a global php.ini into a per-site php.ini (the per-site one has unique
paths for safe mode and such, the global one has 'everything else').
Searching on google/ex-deja/archives comes with many hits about normal
include statements in php, but nothing about the php.ini file itself.
Thanks,
--
Tomasz Orzechowski [EMAIL PROTECTED]
APK.net systems administration team TO630
--- End Message ---
--- Begin Message ---
List Friends:
We've recently installed php-4.3.0-dev under Apache 2.0.40 - WORKS GREAT!
Except: that we cannot get php to recognize its php.ini file, no matter
where we place it. Shouldn't any changes in this file, if it's being
properly read, be reflected in phpinfo() output?
We've tried the (default) location of /usr/local/lib, as well as
/usr/local/lib/php, /usr/lib and /usr/apache2/libexec (the location of the
libphp4.so module), all with no joy. Yes, we are re-starting Apache between
tests.
Can anyone point me in the right direction?
TIA - Lou
------ End of Forwarded Message
--- End Message ---
--- Begin Message ---
Hi
have you tried ; configure ... --with-config-file-path=XXXX ........ ?
Lou Picciano / Essex Systems wrote:
>List Friends:
>
>We've recently installed php-4.3.0-dev under Apache 2.0.40 - WORKS GREAT!
>
>Except: that we cannot get php to recognize its php.ini file, no matter
>where we place it. Shouldn't any changes in this file, if it's being
>properly read, be reflected in phpinfo() output?
>
>We've tried the (default) location of /usr/local/lib, as well as
>/usr/local/lib/php, /usr/lib and /usr/apache2/libexec (the location of the
>libphp4.so module), all with no joy. Yes, we are re-starting Apache between
>tests.
>
>Can anyone point me in the right direction?
>
>TIA - Lou
>
>------ End of Forwarded Message
>
>
>
>
--- End Message ---
--- Begin Message ---
> Lou Picciano / Essex Systems wrote on Fri, Aug 30, 2002 at 12:51:01PM -0400:
>> Except: that we cannot get php to recognize its php.ini file, no matter
>> where we place it. Shouldn't any changes in this file, if it's being
>> properly read, be reflected in phpinfo() output?
> They should. Its location should also be listed in phpinfo(); - did you
> look - right at the top.
Yes- phpinfo() reports: Configuration File (php.ini) Path /usr/local/lib
> Are you sure it is readable to the web server?
Yes it is set readable by all users, and the entire path to the file is
'x'-able by all users...
> have you tried ; configure ... --with-config-file-path=XXXX ........ ?
Not yet; was leaving this as the 'last resort'. Am interested - if only
academically at this point - in making the 'default' setup work.
LP
--- End Message ---
--- Begin Message ---
Redhat 7.3 + Apache + PHP 4.2.2. I downloaded the source for PHP 4.2.2
since RedHat 7.3 shipped with 4.2.1, did a ./configure --with-apxs
/usr/sbin/apxs --with-ldap --with-mysql
Made sure /etc/httpd/conf/httpd.conf had all the required info about PHP,
did a /etc/rc.d/initrd/httpd restart
Created a new PHP file in /var/www/html with a .php extention, gave it a
title in the <TITLE> tags, and put some HTML before the <?php tag, and did a
phpinfo(); Here is the source for said file:
<html><head><title>Hello World</title></head>
<body>
<h1>Hey</h1>
<?php
phpinfo();
print ("Hello World!\n");
<?
</body>
</html>
But what I get back in the web browser when I try to view the page is:
<html><body></body></html>
It should at least give me the title and <h1>Hey</h1> HTML back, but
nothing. Any help would be appreciated. Thanks.
Stewart
--- End Message ---
--- Begin Message ---
I am having problems on a new install of PHP and Apache
Win2k, Php 4.2.2, apache 1.3.26
1) Install apache. Then browse to 127.0.0.1 and get the apache screen
2) unzip php and copy to c:/php
3) install.txt
a) dlls are all in the /php directory with php.exe (did not copy to
windows/system32
b) copied ini to windows director
c) modified ini file extension_dir = c:\php
d) modified ini file document_root = "c:\program files\apache
group\apache\htdocs\"
e) no extensions
Web Server Config: First try SAPI
a) copied php4ts.dll to windows/system32 directory
b) added following lines to httpd.conf
LoadModule php4_module "c:/php/sapi/php4apache.dll"
AddModule mod_php4.c
AddType applicaton/x-httpd-php .php
Start Server .. get message
[Fri Aug 30 11:43:16 2002] [warn] module mod_php4.c is already added, skipping
Apache/1.3.26 (Win32) running...
Then bring up browse and try for phpinfo.php script in htdocs
I get the 'download' screen from my netscape browser. It doesnt
recognize php
Web Server Config: Now try php.exe (cgi)
a) shut down server
b) modify http.conf.
# out the lines mentioned above and add the following
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
c) start up server (no message as noted above)
d) bring up browser and try for phpinfo.php script in htdocs
I get a blank page. upon viewing the source it is
<html><body></body></html>
My phpinfo.php record is
<html>
<?php phpinfo(); ?>
</html>
This works well from my other server ...
So .. what have I missed ..
--
DSig `````
David Tod Sigafoos ( O O )
mailto:[EMAIL PROTECTED] _______oOOo__( )__oOOo_______
Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2
--- End Message ---
--- Begin Message ---
I've been searching the web for solutions to this and have seen that
several people on various architectures have had this problem, and it's
been put on bugs.php.net and marked as solved (with no solution posted --
just that whoever posted the bug stopped checking the site).
So:
I'm trying to build php-4.2.2 on a linux 2.4.19 (UltraSPARC) system, which
has glibc-2.2.5/gcc-3.1.1 and mysql-3.23.51 on it, and I get the following
error during the build:
(I've included perhaps more than is necessary in the interest of being
thorough)
==========
Making all in libmysql
make[3]: Entering directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql'
make[4]: Entering directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql'
gcc -I. -I/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql
-I/usr/src/net/php/tmp/php-4.2.2/main
-I/usr/src/net/php/tmp/php-4.2.2
-I/usr/src/net/php/tmp/php-4.2.2/Zend
-I/usr/include/freetype2/freetype
-I/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql
-I/usr/src/net/php/tmp/php-4.2.2/TSRM -O3 -mcpu=ultrasparc
-c libmysql.c && touch libmysql.lo
In file included from libmysql.c:5:
global.h:256: warning: redefinition of `uint'
/usr/include/sys/types.h:152: warning: `uint' previously declared here
global.h:257: warning: redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
global.h:258: warning: redefinition of `ulong'
/usr/include/sys/types.h:150: warning: `ulong' previously declared here
In file included from libmysql.c:12:
m_string.h:180: parse error before "__extension__"
m_string.h:180: parse error before '&&' token
libmysql.c: In function `net_field_length_ll':
libmysql.c:397: warning: left shift count >= width of type
make[4]: *** [libmysql.lo] Error 1
make[4]: Leaving directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql/libmysql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/src/net/php/tmp/php-4.2.2/ext/mysql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/src/net/php/tmp/php-4.2.2/ext'
make: *** [all-recursive] Error 1
==========
Any hints on this?
Thanks,
--
Elliott
--- End Message ---
--- Begin Message ---
I've tried doing this the past 3 days for like 10 hours together or something....
First, i compile mysql and apache, then php... and it complaints about a libphp4.so
file missing.
Is there any options i miss in the ./configuring?
Im clueless....
--- End Message ---
--- Begin Message ---
The order is:
mysql
apache - just minimum configure, don't need make or make install yet.
php
then apache again - to include the php stuff. Make sure you use your
pathnames.
$ ./configure --prefix=/usr/local/apache \
--activate-module=src/modules/php4/libphp4.a \
--sysconfdir=/usr/local/apache/conf \
--includedir=/usr/local/apache/include \
--libexecdir=/usr/local/apache/libexec \
--htdocsdir=/var/www/html --enable-module=php4 \
--enable-shared=max
$ make
$ make install
ceLius wrote:
> I've tried doing this the past 3 days for like 10 hours together or something....
> First, i compile mysql and apache, then php... and it complaints about a libphp4.so
>file missing.
> Is there any options i miss in the ./configuring?
>
> Im clueless....
>
--
UNIX Systems Administrator
Academic Resources
Library
Saint Mary's College
Moraga, CA
--- End Message ---
--- Begin Message ---
When trying to install php on with IIS on windows 98, I get a message that
says error trying to access local webservice, GetObjectFailed(). Php needs
to be configured using Microsoft Management Console.
I have tried to install several times and get the same message. I have
removed PWS and re-installed. Same message.
Any help would greatly appreciated.
Thanks
--- End Message ---
--- Begin Message ---
When I do a dependency walk on php4ts I find that apphelp.dll and
userenv.dll are both missing.
Does anyone know where I can get those files or how to get around the
problem?
Thanks
--- End Message ---