php-install Digest 18 Mar 2001 00:36:32 -0000 Issue 222

Topics (messages 2474 through 2483):

(null)
        2474 by: 
        2475 by: 
        2476 by: 
        2477 by: 
        2478 by: 
        2479 by: 
        2480 by: 
        2481 by: 
        2482 by: 
        2483 by: 

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]


----------------------------------------------------------------------


don't forget to include apache in that ./configure.  Also, configure
is very intolerant of extra spaces after '=' signs.

./configure \
  --prefix=/home/server/php \
  --with-mysql=/path/to/sql \
  --with-apache=/path/to/apache
make && make install


On Wed, 20 Sep 2000, Daniel Zhang wrote:

>I have compile php as a module of Apache support mysql
>and I want to compile php standalone exectuable support mysql also.
>
>How can I do that?
>Should I do as follow:
>localhost# ./configure --prefix = /home/server/php \
>                       --with-mysqy = /home/server/mysql
>localhost# make ; make install
>





Hmmmm, paste the configure error into an email and send it our way.  Your
description isn't clear enough for me to understand what's going wrong.


On Wed, 20 Sep 2000, Juan Jose Gallo wrote:

>Hi
>
>I have this problem:
>
>I am trying to install PHP4.0.2 in apache as a module, but when I try:
>
>./configure  
>
>dont accept any options like --whit-mysql, etc.
>What can I do?
>
>thanks
>
>
>
>-- 
>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]
>





I just installed PHP4 on my server. Now when my browser views a file                   
             
ending in .php, .php3, .php4, .phps the browser rather than displaying the             
             
file wants to download the file. It will however display a .phtml file. If             
             
the file is index.phtml it only gets displayed if it is referenced on the
URL line. (www.xxx.xxx/index.phtml). I assume that the problem is with one
of my configuration files, httpd.conf or php.ini. What might I look for or             
             
try?                                                                                   
              

In the http.conf file I have configured:
LoadModule php4_module        /usr/lib/apache/libphp4.so
AddModule mod_php4.c
DirectoryIndex index.php index.phtml ....
<IfModule mod_php4.c>
        AddIcon /icons/php4.gif .php3 .php4 .php .phtml
</IfModule>
<IfModule mod_php4.c>
        AddIcon /icons/phps.gif .phps
</IfModule>
<IfModule mod_php4.c>
        AddType application/x-httpd-php .php .php3 .phtml
        AddType application/x-httpd-php-source .phps
</IfModule>


Note that when the browser tries to download the file it says:
application/x-httpd-php3


thanks,                                                                                
                                                                                       
                          
Avram                                                                                  
             







Yes.

Thus spake Tirza Doniger ([EMAIL PROTECTED]):

> Has anyone been able to compile successfully PHP4 with NSAPI on a UNIX 
> machine?
> Thanks,
> Tirza
> 
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> Tirza Doniger
> Research Computing Resource
> NYU Medical School
> Systems Manager
> MSB 174/183
> email:[EMAIL PROTECTED]  phone:212-263-7135 fax:212-263-8542
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-*-
> 
> 
> 
> -- 
> 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]

-- 
Cary Collett                                               [EMAIL PROTECTED]
http://cary.ratatosk.org/

"To me boxing is like ballet, except that there's no music, no choreography,
and the dancers hit eachother." -- Jack Handy




How? What c++ compiler were you using? I am able to compile php with NSAPI, 
but it dies on when I try to make it.

Please help!!!
Thanks,
Tirza

--On Wednesday, September 20, 2000 4:10 PM -0400 Cary Collett 
<[EMAIL PROTECTED]> wrote:

>
> Yes.
>
> Thus spake Tirza Doniger ([EMAIL PROTECTED]):
>
>> Has anyone been able to compile successfully PHP4 with NSAPI on a UNIX
>> machine?
>> Thanks,
>> Tirza
>>
>> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>> Tirza Doniger
>> Research Computing Resource
>> NYU Medical School
>> Systems Manager
>> MSB 174/183
>> email:[EMAIL PROTECTED]  phone:212-263-7135 fax:212-263-8542
>> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-
>> *-
>>
>>
>>
>> --
>> 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]
>
> --
> Cary Collett
> [EMAIL PROTECTED] http://cary.ratatosk.org/
>
> "To me boxing is like ballet, except that there's no music, no
> choreography, and the dancers hit eachother." -- Jack Handy
>
> --
> 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]
>



-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Tirza Doniger
Research Computing Resource
NYU Medical School
Systems Manager
MSB 174/183
email:[EMAIL PROTECTED]  phone:212-263-7135 fax:212-263-8542
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-*-






> I just installed PHP4 on my server. Now when my browser views a file                 
>               
> ending in .php, .php3, .php4, .phps the browser rather than displaying the           
>               
> file wants to download the file. It will however display a .phtml file. If           
>               
> the file is index.phtml it only gets displayed if it is referenced on the
> URL line. (www.xxx.xxx/index.phtml). I assume that the problem is with one
> of my configuration files, httpd.conf or php.ini. What might I look for or           
>               
> try?                                                                                 
>                
> 
> In the http.conf file I have configured:
> LoadModule php4_module        /usr/lib/apache/libphp4.so
> AddModule mod_php4.c
> DirectoryIndex index.php index.phtml ....
> <IfModule mod_php4.c>
>         AddIcon /icons/php4.gif .php3 .php4 .php .phtml
> </IfModule>
> <IfModule mod_php4.c>
>         AddIcon /icons/phps.gif .phps
> </IfModule>
> <IfModule mod_php4.c>
>         AddType application/x-httpd-php .php .php3 .phtml
>         AddType application/x-httpd-php-source .phps
> </IfModule>
> 
> 
> Note that when the browser tries to download the file it says:
> application/x-httpd-php3

Do you have an "AddType application/x-httpd-php3" line anywhere in your
config?  If not, it sounds like you did not restart your server, or you
could be editing the wrong httpd.conf file.

-Rasmus






gcc 2.95.2, libstdc++ 2.8.1.1, NES 3.63, PHP 4.0.1, 
Solaris/SPARC 2.6.

I recently tried  PHP 4.0.2 but I kept getting symbol not found
problems when NES tried to load the module. I haven't had time to
track them down. (Anyone who knows why these errors occur at load 
time and not compile time, could you enlighten me, please?)


Thus spake Tirza Doniger ([EMAIL PROTECTED]):

> How? What c++ compiler were you using? I am able to compile php with NSAPI, 
> but it dies on when I try to make it.

Do you mean 'configure php with NSAPI, but it dies on when I try to 
make/compile it'? Or 'compile php with NSAPI, but it dies on when
I try to run it.'?


Cary



> 
> Please help!!!
> Thanks,
> Tirza
> 
> --On Wednesday, September 20, 2000 4:10 PM -0400 Cary Collett 
> <[EMAIL PROTECTED]> wrote:
> 
> >
> > Yes.
> >
> > Thus spake Tirza Doniger ([EMAIL PROTECTED]):
> >
> >> Has anyone been able to compile successfully PHP4 with NSAPI on a UNIX
> >> machine?
> >> Thanks,
> >> Tirza
> >>
> >> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> >> Tirza Doniger
> >> Research Computing Resource
> >> NYU Medical School
> >> Systems Manager
> >> MSB 174/183
> >> email:[EMAIL PROTECTED]  phone:212-263-7135 fax:212-263-8542
> >> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-
> >> *-
> >>
> >>
> >>
> >> --
> >> 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]
> >
> > --
> > Cary Collett
> > [EMAIL PROTECTED] http://cary.ratatosk.org/
> >
> > "To me boxing is like ballet, except that there's no music, no
> > choreography, and the dancers hit eachother." -- Jack Handy
> >
> > --
> > 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]
> >
> 
> 
> 
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
> Tirza Doniger
> Research Computing Resource
> NYU Medical School
> Systems Manager
> MSB 174/183
> email:[EMAIL PROTECTED]  phone:212-263-7135 fax:212-263-8542
> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-*-
> 
> 
> 
> -- 
> 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]

-- 
Cary Collett                                               [EMAIL PROTECTED]
http://cary.ratatosk.org/

"To me boxing is like ballet, except that there's no music, no choreography,
and the dancers hit eachother." -- Jack Handy




Thanks. Anyone got nsapi running on digital unix 4.0f (PHP-4.0.2)? Also, 
using the digital unix c++ comiler? Anyone???


--On Wednesday, September 20, 2000 4:46 PM -0400 Cary Collett 
<[EMAIL PROTECTED]> wrote:

>
> gcc 2.95.2, libstdc++ 2.8.1.1, NES 3.63, PHP 4.0.1,
> Solaris/SPARC 2.6.
>
> I recently tried  PHP 4.0.2 but I kept getting symbol not found
> problems when NES tried to load the module. I haven't had time to
> track them down. (Anyone who knows why these errors occur at load
> time and not compile time, could you enlighten me, please?)
>
>
> Thus spake Tirza Doniger ([EMAIL PROTECTED]):
>
>> How? What c++ compiler were you using? I am able to compile php with
>> NSAPI,  but it dies on when I try to make it.
>
> Do you mean 'configure php with NSAPI, but it dies on when I try to
> make/compile it'? Or 'compile php with NSAPI, but it dies on when
> I try to run it.'?
>
>
> Cary
>
>
>
>>
>> Please help!!!
>> Thanks,
>> Tirza
>>
>> --On Wednesday, September 20, 2000 4:10 PM -0400 Cary Collett
>> <[EMAIL PROTECTED]> wrote:
>>
>> >
>> > Yes.
>> >
>> > Thus spake Tirza Doniger ([EMAIL PROTECTED]):
>> >
>> >> Has anyone been able to compile successfully PHP4 with NSAPI on a UNIX
>> >> machine?
>> >> Thanks,
>> >> Tirza
>> >>
>> >> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>> >> *-*- Tirza Doniger
>> >> Research Computing Resource
>> >> NYU Medical School
>> >> Systems Manager
>> >> MSB 174/183
>> >> email:[EMAIL PROTECTED]  phone:212-263-7135 fax:212-263-8542
>> >> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*
>> >> -*- *-
>> >>
>> >>
>> >>
>> >> --
>> >> 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]
>> >
>> > --
>> > Cary Collett
>> > [EMAIL PROTECTED] http://cary.ratatosk.org/
>> >
>> > "To me boxing is like ballet, except that there's no music, no
>> > choreography, and the dancers hit eachother." -- Jack Handy
>> >
>> > --
>> > 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]
>> >
>>
>>
>>
>> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
>> Tirza Doniger
>> Research Computing Resource
>> NYU Medical School
>> Systems Manager
>> MSB 174/183
>> email:[EMAIL PROTECTED]  phone:212-263-7135 fax:212-263-8542
>> -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-
>> *-
>>
>>
>>
>> --
>> 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]
>
> --
> Cary Collett
> [EMAIL PROTECTED] http://cary.ratatosk.org/
>
> "To me boxing is like ballet, except that there's no music, no
> choreography, and the dancers hit eachother." -- Jack Handy



-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Tirza Doniger
Research Computing Resource
NYU Medical School
Systems Manager
MSB 174/183
email:[EMAIL PROTECTED]  phone:212-263-7135 fax:212-263-8542
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*--*-*-*-






I followed these exact steps today, I've seen them posted several times by
Rasmus here on php.install.

Everything builds fine but now apache won't start:

Syntax error on line 209 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: libpdf.so.0:
cannot open shared object file: No such file or directory
/usr/local/apache/bin/apachectl graceful: httpd could not be started

I'm on RedHat 6.2, using apache-1.3.12, just downloaded the latest snapshot
of PHP4.

I added /usr/local/lib to my /etc/ld.so.conf file before compiling anything.

For pdflib-3.01 I compiled with:
./configure --enable-shared-pdflib
make
make test (looked fine, generated the testpdf.pdf file)
make install

For PHP4 I compiled with:
./configure --with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-versioning \
--enable-track-vars \
--with-gd=../gd-1.8.3 \
--with-pdflib=/usr/local
make
make install

Here's my ls -l /usr/local/lib:
total 1712
-rw-r--r--    1 root     root        67528 Sep 14 09:34 libdes.a
-rw-r--r--    1 root     root       187098 Sep 18 04:39 libgd.a
-rw-r--r--    1 root     root      1029202 Sep 20  2000 libpdf.a
-rw-r--r--    1 root     root          668 Sep 20  2000 libpdf.la
lrwxrwxrwx    1 root     root           15 Sep 20  2000 libpdf.so ->
libpdf.so.0.0.1
lrwxrwxrwx    1 root     root           15 Sep 20  2000 libpdf.so.0 ->
libpdf.so.0.0.1
-rw-r--r--    1 root     root       395467 Sep 20  2000 libpdf.so.0.0.1
drwxrwxr-x   11 root     root         4096 Sep 20 10:27 php
-rw-rw-r--    1 root     root        22148 Sep 18 08:15 php.ini
-rw-rw-r--    1 root     root        12812 Sep 18 08:16 php3.ini

I've also got PHP3 installed as a DSO, any tips on how exactly to get pdflib
to run in PHP3 as well? Is it even possible? Would an older version (pre
2.0?) of pdflib have to be statically linked into PHP3?

Thanks!
-Matt

Rasmus Lerdorf wrote:

> Grab a snapshot release of PHP from http://snaps.php.net
>
> Download pdflib-3.0.1 and compile it using:
>
> ./configure --enable-shared-pdflib
> make
> make install
>
> Then configure PHP using: --with-pdflib=/usr/local
>
> -Rasmus






Hello guys,

Where can I get a guide on installing PHP on an iPlanet web server?

Thanks,
Lester


Lester June Cabrera
Chief Web Programmer
Worldroom.com
A service of I-Quest Corporation Ltd.
Phone : (632) 867-8460 / 867-8465 loc. 302
Fax : (632) 867-8077
Email : [EMAIL PROTECTED]

-------------------------------------------------------------------------------
Visit http://www.worldroom.com
We Make Business Trips Work.

Visit http://www.worldroom.com/pages/whotels.phtml before your next
business trip so you can book yourself into a Worldroom Connect
broadband-enabled hotel.



Reply via email to