php-install Digest 14 Aug 2002 08:44:14 -0000 Issue 978
Topics (messages 8104 through 8112):
Re: compiling issue with apxs it appears....
8104 by: temp
8105 by: Jim Thome
problem solved
8106 by: Erik
Multiple PHP Configurations
8107 by: Tom Skillman
Re: RedHat 7.3 apache is running but where is PHP support
8108 by: Jeanne Case
Errors building php 4.2.2 w/ imap support
8109 by: Vicki Brown
Conflict with Frontpage Server Extension 2002?
8110 by: lixiangqian.lixiangqian.no-ip.com
session - having problems
8111 by: Daniel Canil
Re: help me install php4.2.2 on Apache2.0.40 for winXP
8112 by: Ezekiel
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 fixed my own problem, sorry for the waste of a message guys.
I swear when i compiled apache i added --enable-module=so , i always do,
but it didn't seem to have been in there, just had to recompile apache and
everything was happy.
Sorry again.
At 08:49 AM 8/13/02 -0700, you wrote:
>Here is basically my problem, it finds apxs fine, but gives a syntax error:
>
>su-2.05# ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
>loading cache ./config.cache
>checking for Cygwin environment... no
>checking for mingw32 environment... no
>checking host system type... i386-unknown-freebsd4.6
>checking for a BSD compatible install... /usr/bin/install -c
>checking whether build environment is sane... yes
>checking for gawk... no
>checking for mawk... no
>checking for nawk... no
>checking for awk... awk
>checking whether make sets ${MAKE}... yes
>checking whether to enable maintainer-specific portions of Makefiles... no
>checking for gcc... gcc
>checking whether the C compiler (gcc ) works... yes
>checking whether the C compiler (gcc ) is a cross-compiler... no
>checking whether we are using GNU C... yes
>checking whether gcc accepts -g... yes
>checking for style of include used by make... GNU
>checking dependency style of gcc... none
>checking whether gcc and cc understand -c and -o together... yes
>checking how to run the C preprocessor... gcc -E
>checking for AIX... no
>checking for gcc option to accept ANSI C... none needed
>checking whether compiler supports -R... yes
>checking for ranlib... ranlib
>checking whether ln -s works... yes
>checking for gawk... (cached) awk
>checking for bison... no
>checking for byacc... byacc
>configure: warning: You will need bison if you want to regenerate the PHP
>parsers.
>checking for flex... flex
>checking for yywrap in -lfl... yes
>checking lex output file root... lex.yy
>checking whether yytext is a pointer... yes
>checking for working const... yes
>checking for pthreads_cflags... -pthread
>checking for pthreads_lib...
>Configuring SAPI modules
>checking for AOLserver support... no
>checking for Apache 1.x module support via DSO through APXS...
>Sorry, I was not able to successfully run APXS. Possible reasons:
>1. Perl is not installed;
>2. Apache was not compiled with DSO support (--enable-module=so);
>3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
>The output of /usr/local/apache/bin/apxs follows
>Usage: apxs -g [-S <var>=<val>] -n <modname>
>apxs -q [-S <var>=<val>] <query> ...
>apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
>[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
>[-Wl,<flags>] <files> ...
>apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
>apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
>configure: error: Aborting
>
>I'm not sure what to do, any guidance would be greatly appreciated, thanks
>in advance.
>j
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
What is your path?
>>> temp <[EMAIL PROTECTED]> 08/13/02 09:49AM >>>
Here is basically my problem, it finds apxs fine, but gives a syntax error:
su-2.05# ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking host system type... i386-unknown-freebsd4.6
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking whether compiler supports -R... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... (cached) awk
checking for bison... no
checking for byacc... byacc
configure: warning: You will need bison if you want to regenerate the PHP
parsers.
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs follows
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting
I'm not sure what to do, any guidance would be greatly appreciated, thanks
in advance.
j
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
hi,
the problem i had is solved (syntaxt highligting) i solved it like this.
<?php
if(!isset($_REQUEST['noline']))
{
$noline=true;
}
ob_start();
show_source('myfile.php');
$raw=ob_get_contents();
ob_end_clean();
$raw = explode ( '<br />', $raw );
// Insert the line number
$ml = strlen ( count ( $raw ) );
for ( $i = 0; $i < count ( $raw ); $i++ )
{
if ( !isset ( $noline ) )
{
$gap = ( $ml - strlen ( $i ) );
$raw[$i] = "<FONT COLOR=#999999><CODE>[" .
str_repeat(" ", $gap ) . $i .
"]</CODE></FONT>" . $raw[$i] . "<BR
/>";
}
else
{
$raw[$i] = "$raw[$i]<BR />";
}
}
// Convert back to a string
$raw = implode ( '', $raw );
// Print source
echo "<html>\n <body>\n$raw\n
</body>\n</html>";
?>
this way only the file specified "myfile.php" in the above code fragment
will be shown so no files with sensitive info for example MySQL passwords
will be shown
regards
Erik
--- End Message ---
--- Begin Message ---
I wrote in yesterday about trying to have 2 separate configurations for
PHP - one with Oracle, one without because IIS didn't like the Oracle
functions. I received a reply from someone suggesting that the .ini
file go in the PHP directory for each server, and I tried that with no
success. Any other Ideas? The other possibility is to get IIS to run
ok with the Oracle functions enabled. IIS can't seem to find the .dlls.
==============================
Tom Skillman
Systems Analyst Co-Op
City of St. Louis Water Division
[EMAIL PROTECTED]
(314) 771-4806 ext 184
--- End Message ---
--- Begin Message ---
Here is the URL for instructions on how to install PHP on RedHat Linux.
http://www.redhat.com/support/resources/howto/database/database_php/
There is a problem in PHP4.2.2 so get a newer stable version from :
http://snaps.php.net/
-Jeanne
Jan - CWIZO wrote:
>
> Hi
>
> If i type rpm -e apache I get an error that that would destory some
> dependinces ...
>
> In replay to Erik :
>
> I have downloaded the source code for PHP 4.2.2
> I can download the source code for apache and mysql to if you wish !
>
> So basicly I need to have support for mysql and for tracking varibles sended
> over forms (get, post).
>
> Nothing exsotic no extra libraries.
>
> O I need support for sessions if that is an extra feautre...
>
> So how do I remove all apache all php all mysql from my computer, so I can
> start from the beginning ?
>
> And please be clear with what you write :)
>
> LP
> CWIZO
> www.3delavnica.com
> www.ks-con.si
> www.WetSoftware.com
>
> Dne nedelja 11. avgust 2002 16:56 ste napisali:
> > hey, when I started with 7.3 and Linux, I found that the best way was to
> > get rid of all the installed crap and then start again.
> >
> > rpm -e apache for example will dump apache from your disk, I did that
> > also with php and mysql client and server,
> >
> > then I grabbed the newest versions from rpmfind.net and installed apache
> > then mysql then php 4.X with mysql support
> >
> > word of caution though, you can get the same rpms from the Valhalla Cd's
> > but I found that for expample RPMs o mysql didn;t work (php did) , while
> > the one from their site worked like a charm
> >
> > R>
> >
> > oh yeah, invoke php -v (I believe) for the version and to see if it even
> > runs, also chance has it that your apache configuration will not process
> > .html with embedded php but .php only,
> >
> > R>
> >
> > >Hi !
> > >
> > >
> > >I just installeted RedHat 7.3
> > >
> > >I started apache with :
> > >
> > >/etc/httpd start
> > >
> > >I opend the browser and typed localhost.
> > >The welcome page displayed.
> > >Then I have created a PHP script file with this in it :
> > >
> > ><?
> > >
> > >
> > >phpinof();
> > >
> > >?>
> > >
> > >opend it and I diden't get the result but the source (the fule is in the
> > >root
> > >folder of apache ( /var/www/html/ ) )
> > >
> > >How do I enable PHP ??
> > >And I know that in RedHat 7.3 there is PHP 4.1.2 how do I setu up the PHP
> > >4.2.2 ??
> > >
> > >
> > >And please I am a total beginner in linux so be clear with what you write
> > > :)
> > >
> > >
> > >PS : Excuse my spelling, English is not my native language
> > >
> > >
> > >--
> > >LP
> > >CWIZO
> > >www.3delavnica.com
> > >www.ks-con.si
> > >www.WetSoftware.com
> > >
> > >--
> > >PHP Install Mailing List (http://www.php.net/)
> > >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > ________________________--__-______-______________
> > eat pasta
> > type fasta
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
UNIX Systems Administrator
Academic Resources
Library
Saint Mary's College
Moraga, CA
--- End Message ---
--- Begin Message ---
I'm trying to build php4.2.2 with imap support.
Has anyone succeeded at this? I get errors (and lots of
warnings) mostly from php_imap.c.
./configure --with-nsapi=/usr/prop/netscape/server4/ --with-
mysql=/usr/local/mysql \
--with-imap --enable-discard-path --with-ldap --enable-cli
--with-gettext \
--with-imap-ssl --prefix=$HOME
make...
cc: Error: /usr/local/include/nntp.h, line 113: Ill-formed
parameter type list. (parmtyplist)
cc: Error: /usr/local/include/imap4r1.h, line 229: Ill-formed
parameter type list. (parmtyplist)
cc: Error: php_imap.c, line 370: Ill-formed parameter type list.
(parmtyplist)
cc: Error: php_imap.c, line 414: In this statement, "mhdriver"
is not declared. (undeclared)
cc: Error: php_imap.c, line 416: In this statement, "mmdfdriver"
is not declared. (undeclared)
cc: Error: php_imap.c, line 417: In this statement, "newsdriver"
is not declared. (undeclared)
cc: Error: php_imap.c, line 719: In this statement,
"myusername_full" expects 1 arguments, but 0 are supplied.
(toofewargs)
cc: Error: php_imap.c, line 1041: In this statement, "SET_QUOTA"
is not declared. (undeclared)
cc: Error: php_imap.c, line 1041: In this statement,
"mail_getquota" is not declared. (undeclared)
- Vicki
please Cc: me directly; I subscribe to the digest.
--- End Message ---
--- Begin Message ---
I installed PHP 4 on Windows XP with IIS Server 5.1. It worked fine untill I installed
Frontpage Server Extension 2002 today. It always show the error message as:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP
headers. The headers it did return are: <p><p><pre></pre>
Does anyone have same problem before and please kindly reply to me if you know what is
the problem,
Thank you and Have a good day!!
Tony
--- End Message ---
--- Begin Message ---
I have jsut recently installed a php development kit on my windows platform.
Im interested in using the session functions but I am recieving this error
when I use session_start():
Warning: open(/tmp\sess_540ded508edf231c47fe85bd970f936a, O_RDWR) failed: m
(2) in d:\phpdev\www\phpdev4\samples\samp13.htm on line 4
Im assuming it has got to do something with the location it store the
seesion id file. I had a look in my php.ini file and here is the the
following configuration:
[Session]
; Handler used to store/retrieve data.
session.save_handler = files
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored.
session.save_path = D:\phpdev\php\temp;
; Whether to use cookies.
session.use_cookies = 1
; Name of the session (used as cookie name).
session.name = PHPSESSID
; Initialize session on request startup.
session.auto_start = 0
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0
; The path for which the cookie is valid.
session.cookie_path = /
Im not to sure why this is all ways happening. If anyone haas a solution or
knows why this might occur could you please respond or email me at
[EMAIL PROTECTED]
Much appreaciated
Daniel
--- End Message ---
--- Begin Message ---
I suggest you to install apache 1.3.26 instead of 2.0.40 because this new
version is very bad implemented with php on win32. I have successed in
installing php with apache 2.0.40 on win2K but you have many bugs on your
page when you use php.
Try 1.3.26 and it will work better.
Ezekiel
"Le Long Minh" <[EMAIL PROTECTED]> a écrit dans le message de news:
000201c242ba$5c434d20$[EMAIL PROTECTED]
Hi everybody!
I cannot install php4.2.2 as a module on apache2.0.40 server
althought i had put 2 lines :
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php .phtml .php3
in httpd.conf
after then, read error log file receive notice is:
Syntax error on line 493 of C:/Apache2/conf/httpd.conf:
Cannot load C:/php/sapi/php4apache2.dll into server: The specified module
could not be found.
Thank for your help.
--- End Message ---