php-install Digest 28 Nov 2001 20:23:45 -0000 Issue 576

Topics (messages 5116 through 5125):

may you give a solution for the following error
        5116 by: Bala krishnan

Re: Help please with setting up apache with php module
        5117 by: EdwardSPL.ita.org.mo

Fix for CGI PHP (no more #!/php in displayed content)
        5118 by: Michael Johnson
        5119 by: Michael Johnson

Re: php with apxs and mysql on Darwin
        5120 by: Erik Price
        5121 by: Chris

Re: Error: Restarting Apache w/ PHP as DSO on redhat 7.2
        5122 by: Erik Price

Problem with installation PHP with Solaris8
        5123 by: Pedro A. Rodriguez Jimenez

IMPORTANT FOR YOU
        5124 by: Zeynab
        5125 by: Erik Price

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 ---
Dear all,

I have configaured mysql,apache.
when i configaure PHP, the following error occured.

 CONFIGURE:   './configure'
'--with-mysql=/usr/local/mysql'
'--with-config-file-path=/www/conf'
'--with-apache=../httpd' '--enable-track-vars'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:   
CXX:        
CXXFLAGS:   
INCLUDES:    -I/usr/local/etc/httpd/src/include
-I/usr/local/etc/httpd/src/os/unix 
-I$(top_builddir)/Zend -I$(top_srcdir) 
-I/usr/include/freetype -I/usr/local/mysql/include
LDFLAGS:     -Wl,-rpath,/usr/local/mysql/lib/mysql
-L/usr/local/mysql/lib/mysql
LIBS:       -lmysqlclient -lttf -lpng -lz -lgd
-lresolv -lm -ldl -lcrypt -lnsl  -lresolv
DLIBS:      
SAPI:       apache
PHP_RPATHS:  /usr/local/mysql/lib/mysql
uname -a:   Linux apache 2.4.2-2smp #1 SMP Sun Apr 8
20:21:34 EDT 2001 i686 unknown

gcc -o conftest -g -O2  
-Wl,-rpath,/usr/local/mysql/lib/mysql
-L/usr/local/mysql/lib/mysql conftest.c -lmysqlclient
-lttf -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl 
-lresolv 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

May anybody give a solution for this ...

Thanx a lot...

Balakrishnan L R

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
--- End Message ---
--- Begin Message ---
The Argyle Network Of Services wrote:

> I am trying to set up apache, php and mysql
>
> I have compiled mysql - all ok
> I have compiled php - all seemed ok
> I am compiling apache and get probs
> I have tried the following methods
>
> 1.
>     ./configure --activate-module=src/modules/php4/libphp4.a
>     make
>     make install
> no errors returned but ./httpd -l does not show mod_php in the list and the
> php functions don't work
>
> 2.
>     put AddModule modules/php4/libphp4.a in the Configuration         file
> in /usr/local/apache_1.3.22/src and then run ./Configure
>
> no errors so I run make
>
> then I get the following error
>
> In file included from ../../include/ap_config.h:1170,
>             from os.c:6:
> /usr/include/regex.h:327:27: missing terminating ' character
> make[1]: ***[os.o] Error 1
> make: ***[subdirs] Error 1
>
> It seems to be a corrupt  file but I cannot tell which one from the error
> and what I have to do to replace or re-install it.
>
> Any ideas
>
> Regards Dave

Hello,

What is your System ?

Edward.

--- End Message ---
--- Begin Message ---
As some of you are aware, PHP 4.0.6 has a small glitch on the cgi (rather
than mod) side of things that renders it utterly useless for all practical
purposes.  To use a php script via a cgi-script handler (on *nix), obviously
one must include '#! /path/to/php' line as the first in the file.
Unfortunately, the way the php binary handles this line is flawed.  Rather
than ignoring this first line, it prints it as the first line of html.  This
happens only when running through a web server and not on the command line.
There may be a better way to submit this fix, but as I am new at this, here
it is:

Open sapi/cgi/cgi_main.c in your favorite text editor.

Jump to line 702.

Change this one line from this:
    } else if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
to this:
    }
    if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {

I have tested this and it works fine (i.e. it doesn't break running php via
the command line).

Since I am not familiar with the inner workings of PHP or the C proramming
language, I don't know if there is a better fix, but for now, this seems to
be the best one available.


--- End Message ---
--- Begin Message ---
A couple of additional comments on this.  This is not a complete fix as a
blank line still gets printed and generates a Warning in some cases.  To
work around this, set output_buffering to On in your php.ini file.

----- Original Message -----
From: "Michael Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 7:59 AM
Subject: [PHP-INST] Fix for CGI PHP (no more #!/php in displayed content)


> As some of you are aware, PHP 4.0.6 has a small glitch on the cgi (rather
> than mod) side of things that renders it utterly useless for all practical
> purposes.  To use a php script via a cgi-script handler (on *nix),
obviously
> one must include '#! /path/to/php' line as the first in the file.
> Unfortunately, the way the php binary handles this line is flawed.  Rather
> than ignoring this first line, it prints it as the first line of html.
This
> happens only when running through a web server and not on the command
line.
> There may be a better way to submit this fix, but as I am new at this,
here
> it is:
>
> Open sapi/cgi/cgi_main.c in your favorite text editor.
>
> Jump to line 702.
>
> Change this one line from this:
>     } else if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
> to this:
>     }
>     if (file_handle.handle.fp && file_handle.handle.fp!=stdin) {
>
> I have tested this and it works fine (i.e. it doesn't break running php
via
> the command line).
>
> Since I am not familiar with the inner workings of PHP or the C proramming
> language, I don't know if there is a better fix, but for now, this seems
to
> be the best one available.
>
>
>
> --
> 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 ---

On Tuesday, November 27, 2001, at 09:46  PM, Chris wrote:

>> localhost:~/tmp/apache_mod_php-6-2/php$ rm config.cache
>> localhost:~/tmp/apache_mod_php-6-2/php$ make clean
>> make: *** No rule to make target `clean'.  Stop.
>
> This should send up a red flag up in your head. As all the
> previously compiled libs and much of the other stuff is *still*
> there (didn't clean out all the *old* stuff). Try ./make distclean .

Well, I wrote in another post to this list that I just junked the 
original (including the original source tree) and started over from the 
.tgz, gnutarred it and all for a very fresh distribution.  And then I 
just installed it without the /path/to/mysql, and no problems so far.  
I'll remember this for the future.  (Read on...)

> Maybe you already mentioned this... but what OS are we building this
> on? If it's a *BSD machine, everything you need to create this thing
> is in the ports tree. The "make" comes with a *really nice* menu of
> options to choose what you want included in the build and works like
> a champ -- just wondering.

Yes, it's a derivative of FreeBSD and NeXT (though I don't have the 
whole history) called Darwin 1.4.1 -- the core of the new Apple 
operating system, Mac OS X.

Thanks for your comments, I will remember about the ./make  (does that 
mean that "make" is actually in the source tree?).


Erik

--- End Message ---
--- Begin Message ---
> 
> On Tuesday, November 27, 2001, at 09:46  PM, Chris wrote:
> 
>>> localhost:~/tmp/apache_mod_php-6-2/php$ rm config.cache
>>> localhost:~/tmp/apache_mod_php-6-2/php$ make clean
>>> make: *** No rule to make target `clean'.  Stop.
>>
>> This should send up a red flag up in your head. As all the
>> previously compiled libs and much of the other stuff is *still*
>> there (didn't clean out all the *old* stuff). Try ./make distclean .
> 
> Well, I wrote in another post to this list that I just junked the 
> original (including the original source tree) and started over from the
>  .tgz, gnutarred it and all for a very fresh distribution.  And then I 
> just installed it without the /path/to/mysql, and no problems so far.

Ahhh, I missed that.

> I'll remember this for the future.  (Read on...)
> 
>> Maybe you already mentioned this... but what OS are we building this
>> on? If it's a *BSD machine, everything you need to create this thing
>> is in the ports tree. The "make" comes with a *really nice* menu of
>> options to choose what you want included in the build and works like a
>> champ -- just wondering.
> 
> Yes, it's a derivative of FreeBSD and NeXT (though I don't have the 
> whole history) called Darwin 1.4.1 -- the core of the new Apple 
> operating system, Mac OS X.

yea, I know what Darwin is. What happened, is I had just woke up and
hadn't even finished my coffee. I noticed the "header" of the message
*just* as I hit the Send button. Doh! I wanted to stop it. But it was
too late. Felt kinda foolish. :-\

> 
> Thanks for your comments, I will remember about the ./make  (does that 
> mean that "make" is actually in the source tree?).
> 

Actually, a simple cd /usr/ports/www/mod_php4   make
get's the job done. It's really nice. Has a list of options
and you simply fill the CheckBoxes of the options desired -
MySQL, glib, zlib, libtiff, libjpeg, freetype, ssl, apxs, etc...

Quite elegant! :-)

Anyway, I hope you were able to get PHP/Apache running O.K.

Sincerely,
 Chris


> 
> Erik
> 
> 
> -- 
> 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


............................................
This email was sent using DNSWATCH WebMail.
   "Get an account today!"
http://www.dnswatch.com/dnswm112/


--- End Message ---
--- Begin Message ---
I don't know EXACTLY how to help you... but I think I had a similar 
problem that was solved (in my case) by editing the httpd.conf file.  If 
you're already done this, disregard the following:

Uncommment or add the lines
AddType application/x-httpd-php .php         # you may have to add the 
suffix
AddType application/x-httpd-php-source .phps

and

LoadModule php4_module libexec/httpd/libphp4.so

and

AddModule mod_php4.c


If you have already done this modification to httpd.conf, then this is 
not the problem.  I also had a problem, in that my compile of PHP wasn't 
successful entirely (because of the missing MySQL library 
'lmysqlclient.so' ).  Re-configure and try again.  For me, I had to use 
the built-in MySQL libraries in PHP (if you're not using MySQL then 
disregard all of this).

Erik


On Wednesday, November 28, 2001, at 01:07  AM, charles wrote:

> Heres what I have:
> Clean install of redhat 7.2, server option chosen, default packages
> installed - no extra servers or subcategories.
>
> I have installed the following with no problems through configure, make
> or make install:
> - MySQL 3.23.45 from binaries at mysql.com (redhat gcc error, or so it
> says)
> - Apache 1.3.22 from source (configure --prefix=/usr/local/apache
> --enable-module=so)
> - PHP 4.0.6 from source (configure --with-mysql=/usr/local/mysql
> --with-apxs=/usr/local/apache/bin/apxs)
>
> I did have to change the first line in the apxs file from
> '#!/usr/bin/perl' > '#!/usr/bin/perl5.6.0'.
> This was done prior to configure, etc... [known issue from another
> server running some perl apps}
>
> Each package was tested after install for success.  MySQL and Apache
> work(ed) fine.
> After installing PHP as a DSO, I cannot start apache and receive the
> following error:
>
> "Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
> cannot load /usr/local/apache/libexec/libphp4.so into server:
> /usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress
> ./apachectl start: httpd could not be started"
>
> Line 205 of httpd.conf looks like:
> LoadModule php4_module    libexec/libphp4.so
> (looks good to me, but what do I know?)
>
> Checked Apache's error log and nothing is being recorded (assuming
> because httpd cannot even start?)
>
> I also attempted to reinstall both Apache and PHP by ./configure, make
> clean, make, make install with no luck -- same error.
>
> I've noticed this on a few other posts in the archives but was not abale
> to find any resolutions.
> Anyone have any ideas?  {I really do not want to install from RPMs]
>
> much appreciated,
>
>
> [EMAIL PROTECTED]
>
>

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

We have a problem with the installation of PHP 4.0.6
with Sun Solaris 8.

When we execute the command : /configure we haven't problems
but when we have to execute the make command the output is 
the following : 

ld.so.1: make: fatal: librt.so.1: version `SUNW_1.2' not found (required by file make)
Killed

Or this one using the make of /usr/css/bin/make

# /usr/ccs/bin/make
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_scanner_cc.cc
In file included from zend_language_scanner_cc.cc:2712:
zend_istdiostream.h:8: syntax error before `;'
zend_istdiostream.h:11: syntax error before `*'
zend_istdiostream.h: In method `istdiostream::istdiostream(FILE *)':
zend_istdiostream.h:10: class `istdiostream' does not have any field named `_file'
zend_istdiostream.h:10: `_file' undeclared (first use this function)
zend_istdiostream.h:10: (Each undeclared identifier is reported only once
zend_istdiostream.h:10: for each function it appears in.)
zend_istdiostream.h: At top level:
zend_istdiostream.h:12: parse error at null character
zend_language_scanner_cc.cc: In function `void zend_file_handle_dtor(zend_file_handle 
*)':
zend_language_scanner_cc.cc:2823: no matching function for call to 
`streambuf::stdiofile ()'
*** Error code 1
make: Fatal error: Command failed for target `zend_language_scanner_cc.lo'
Current working directory /internet/programas/php-4.0.6/Zend
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Can you help us??

Many thanks.

Pedro A. Rodriguez

--- End Message ---
--- Begin Message ---
Under Bill 1618 TITLE III passed by the 105th U.S. Congress, This 
letter 
cannot be considered Spam as long as we include: Contact information 
& 
a Remove Link. If not interested in the services offered, 
To be removed from future mailings just reply with 'REMOVE' in the 
subject line. Your request to be removed will be processed within 24 
hours.  
*****************************************************
*******************


        
                                                                         Zeynab 
Marketing Division
                                                   
[EMAIL PROTECTED] 

Position: E-Mail Processor

WE are currently looking for SERIOUS HOMEWORKERS.
We have immediate vacancies for E-Mail Processors. Experience is 
NOT necessary. Part time/full time. Anywhere in the world! I do 
require that you have a computer and are familiar with internet/email 
functions. Training and other necessary Softwares are provided. 

About Us:
We are an offshore company based on Sri Lanka since 1996, 
specializing in trade and support services for the international trading 
community. Our main business activities are International trading of high 
profitable goods, Import Export Agent, Commission agent, Internet 
marketing, Market research through Internet etc.

You will be paid working for us as follows:

1. Refer others and get paid $1.00

2.Your associate commission is 5% for all direct sales and 1% on 
sales made by your          
   Affiliates for one level. 

For example:

If you refer 70 affiliate under you, get paid             =    $70.00
If you se11 3 product ($275 x 3), get paid              =    $41.25
If your afiliate sell 2 products ($200x2),get paid     =    $ 4.00                     
                           
Your Salary                                                  =   $115.25

If you are looking for a get-rich-quick scheme, please do not reply us. 

This is a limited time offer.

Registation free: 
We only want SERIOUS homeworkers to work for us.  For that 
reason we must ask for a one-time PAYMENT of US$20. This is 
necessary to protect both: you and us from unreliable job 
seekers.

How to Apply: 
   Contact us to [EMAIL PROTECTED]   "Application"at the 
subject line.
   


Thank you for your time.


*****************************************************
*******************
--- End Message ---
--- Begin Message ---
So how is a mailing list system supposed to reply to this to unsubscribe?




On Thursday, November 29, 2001, at 01:30  AM, Zeynab wrote:

> Under Bill 1618 TITLE III passed by the 105th U.S. Congress, This
> letter
> cannot be considered Spam as long as we include: Contact information
> &
> a Remove Link. If not interested in the services offered,
> To be removed from future mailings just reply with 'REMOVE' in the
> subject line. Your request to be removed will be processed within 24
> hours.        
> *****************************************************
> *******************
>
>
>       
>                                                                         
>  Zeynab
> Marketing Division
>                                               
> [EMAIL PROTECTED]
>
> Position: E-Mail Processor
>
> WE are currently looking for SERIOUS HOMEWORKERS.
> We have immediate vacancies for E-Mail Processors. Experience is
> NOT necessary. Part time/full time. Anywhere in the world! I do
> require that you have a computer and are familiar with internet/email
> functions. Training and other necessary Softwares are provided.
>
> About Us:
> We are an offshore company based on Sri Lanka since 1996,
> specializing in trade and support services for the international trading
> community. Our main business activities are International trading of 
> high
> profitable goods, Import Export Agent, Commission agent, Internet
> marketing, Market research through Internet etc.
>
> You will be paid working for us as follows:
>
> 1. Refer others and get paid $1.00
>
> 2.Your associate commission is 5% for all direct sales and 1% on
> sales made by your
>    Affiliates for one level.
>
> For example:
>
> If you refer 70 affiliate under you, get paid             =    $70.00
> If you se11 3 product ($275 x 3), get paid              =    $41.25
> If your afiliate sell 2 products ($200x2),get paid     =    $ 4.00
> Your Salary                                                =   $115.25
>
> If you are looking for a get-rich-quick scheme, please do not reply us.
>
> This is a limited time offer.
>
> Registation free:
> We only want SERIOUS homeworkers to work for us.  For that
> reason we must ask for a one-time PAYMENT of US$20. This is
> necessary to protect both: you and us from unreliable job
> seekers.
>
> How to Apply:
>    Contact us to [EMAIL PROTECTED]   "Application"at the
> subject line.
>
>
>
> Thank you for your time.
>
>
> *****************************************************
> *******************
>
> --
> 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 ---

Reply via email to