php-install Digest 23 Oct 2001 23:12:13 -0000 Issue 519

Topics (messages 4710 through 4724):

Re: How to install PHP4 as interpreter?
        4710 by: Yasuo Ohgaki

big pb 2: gdimagecreatefromjpeg not working
        4711 by: n.windpassinger.toutophone.com

Flatrate - Request 559
        4712 by: followup.phone_systems.ca ()

PHP with Apache (DSO)
        4713 by: Michael Chan

php 4.0.6 and Iplanet 6.0 include problem....
        4714 by: Jason Wood

Re: help with --with-apxs please!
        4715 by: Michael Chan

Re: W2k + php 4.0.6 + iPlanet 4.1 Arrrrgggh
        4716 by: Jason Wood

Re: PHP and HP-UNix
        4717 by: Michael Chan
        4721 by: Mark Newnham

php3 extension not being picked up....
        4718 by: Todd Williamsen
        4720 by: Jason Wood

Re: win2k install trouble
        4719 by: Todd Williamsen

It gives me just a header!
        4722 by: Stefįn Vingir Skarphéšinsson
        4723 by: Jason Wood

Re: NES 3.5.1 PHP4 Solaris 2.6
        4724 by: Big G

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]


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


Joe Hu wrote:

> I'm new to PHP. I just installed PHP4 as an apache module. I'd also like to
> run php scripts on command line. However, I didn't find php or php4 command
> on my system. Does any know how to install php4 also as an interpreter?
> 
> Thanks in advance.
> 
> joe


Just build php with CGI SAPI.
For example, build without --with-apxs, if you are using Apache.

--
Yasuo Ohgaki









Hi again,
I forgot to mention that if I used:> imagecreatefromjpeg
an similar error comes out:

Warning: ImageCreateFromJpeg: No JPEG support in this PHP build in
/usr/apache/savophone/test.php on line 5

I searched the whole web for this error

Here is what I get out when I configure Php:
checking for the location of -ljpeg... yes
checking for the location of -lpng... yes
...
checking for gdImageCreateFromJpeg in -lgd... yes

This seems ok.....and Php works perfectly well. But not when calling
functions using the gd library.

What I really do not understand is that jpeg seems to be correctly
installed and Php is ok top use it since the "checking for
gdImageCreateFromJpeg in -lgd... yes" says that the functions are ok to be
used.
All the libraries are also in teh correct paths....

Does anybody have a clue about what I could do to solve the problem???

Thanks for the help in advance....

NIcolas.

"""""""""""""""""""""""""""""""






[EMAIL PROTECTED] écrit:

> Eh,
> 
> that function,
> 
> try only
> imagecreatefromjpeg (without starting with gd)
> 
> ok ?
> 
> Roman
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 23, 2001 1:03 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-INST] big pb: gdimagecreatefromjpeg not working
> > 
> > 
> > 
> > Hi all,
> > 
> > I am having a problem with our GD library "friend" ;-)
> > ok, here it is:
> > 
> > I have installed gd with the correct jpeg libraries.
> > I then ./configure PHP:
> > ./configure --with-apxs=/usr/apache/bin/apxs --with-zlib=/usr
> > --with-oci8=/export/home0/oracle/OraHome --with-gd=/usr/local
> > --with-jpeg-dir=/usr/local/lib --with-png=/usr/local/lib
> > 
> > works fine:
> > 
> > checking for the location of -ljpeg... yes
> > checking for the location of -lpng... yes
> > ...
> > checking for gdImageCreateFromJpeg in -lgd... yes
> > 
> > ok so that means (I suppose) that the function 
> > gdImageCreateFromJpeg  works
> > fine and should be ok in php code......
> > 
> > Then I do a make and make install, no problems.
> > BUT:
> > when I do this code:
> > 
> > $img=gdImageCreateFromJpeg(".test.jpg");
> > $blue=ImagecolorAllocate($img,0,0,250);
> > imagestring($img,4,10,4,"Connexion",$blue);
> > 
> > it then sends me out an error:
> > Fatal error: Call to undefined function: gdimagecreatefromjpeg() in
> > /usr/apache/savophone/test.php
> > 
> > Please HELP !!!!
> > Thanks a  lot in advance,
> > 
> > Nicolas.
> > 
> > 
> > 
> > 
> > 
> > -- 
> > 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]
> > 
> > 
> > 
> 




Below is the result of your feedback form.  It was submitted by
 ([EMAIL PROTECTED]) on Tuesday, October 23, 2001 at 09:57:04
---------------------------------------------------------------------------

message: 
Introducing
The Newest Flatrate LongDistance Plan
Along With A System To Make $5800 Per Month Using Our Unique System.

email us at [EMAIL PROTECTED]
Include your name, phone number, and best time to call or you will not receive a 
response back.


__________________________________________________________________
To be romoved from this database email [EMAIL PROTECTED]
__________________________________________________________________



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





Help!!!, Has any one ever got PHP 4.x to work with Apache_1.3.20 (DSO)?  I
have added this to httpd.conf" file:

#LoadModule ows_module     /opt/oas/4.0/ows/4.0/lib/ndwfapd.so
LoadModule php4_module    libexec/libphp4.so
#ClearModuleList
AddModule    mod_php4.c

AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps
 AddType text/html .html
 AddType application/x-tar .tgz

But when I started httpd up, it core on me.  I had compile apache as an
oracle user (oas user) and php as root.  Could this be the problem or is it
my configuration file (httpd.conf)?  Thanks for your help in advance.









I've got Iplant 6.0 and PHP 4.0.6 installed successfully...  but, i'm
getting the following error:

Failed opening 'global.php' for inclusion (include_path='') in etc etc...

I dont have an include path set, because i've never needed it before.  I'm
runnin win2k on this machine, and IIS and Apache have no problem on this
machine with the EXACT same files.  they all handle the include just fine.
Yes, i do have 3 web servers setup on this machine ;)

Is there a way to setup a relative path, so I don't have to drop all my
include in one directory?  Thanks for your help!!



--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com







have you tested out perl? I ran into similar problems but when i tested out
my perl binary, it pukes on libgdbm. My is located in /usr/local/lib. I hope
this helps.

"Shaun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am building PHP with the --with-apxs=/usr/local/apache/bin/apxs option.
> When I try to configure, I get:
>
> ./configure: /usr.local/apache/bin/apxs: bad interpreter: No such file or
> directory
> 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.
> configure: error: ;
>
> 1. perl is definitely installed
> 2. running httpd -l results in:
>     Compiled-in modules:
>     http_core.c
>     mod_so.
> 3. as you can see from my config option above 'apxs' is in the path
>
> I have also read the Chapter 31 Build Problems question 11 and verified
that
> the /usr/local/apache/bin/apxs script is correct.
>
> Can someone shed some light on this for me please?
>
> Shaun
>
>






you have to make the dummy shell-cgi directory, then remove it. make sure
you did this, then double check your mime types to make sure you have
Content Type: magnus-internal/shellcgi  Ext. php  in there.  any probs, drop
me an email.


--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com


"R." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can fine a proper way to install Php4 on an Netscape server 4.1.
> Try to install it like CGI (as explained here
> http://http://benoit.noss.free.fr/php/install-php.html
> )
> But i got this error
> trying to GET /index.php, handle-processed reports: no way to service
> request for /index.php
> Anybody have a solution.
>
> I tried the SAPI solution but php crash each time it's read a file.
>
> R.
>
>
>
>
>
>
>






Hi, I am in the same boat. I've compiled apache as an oracle user and php as
root user, but after editing httpd.conf file for php and restarting it, it
cored on me.  Do you think I should have compiled php as a regular user?
Thanks.


"Brian Mauter" <[EMAIL PROTECTED]> wrote in message
000a01c157d1$35ad8470$0b00a8c0@godfather">news:000a01c157d1$35ad8470$0b00a8c0@godfather...
> Hi, I think the reason behind all of this is that I cannot find where in
the
> httpd.conf file you actually reference the module.  You should have these
> two lines in conf file somewhere:
> LoadModule php_module    lib/modules/lib_php4.so
> AddModule mod_php4.c
>
> You'll see sections near the top.  Verify that the files do exist in those
> paths and then put each line in the similar section (preferably at the end
> of each section), then restart Apache.  You should then be set.
>
> Good luck,
> -Brian
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 18, 2001 7:19 AM
> To: Brian Mauter
> Subject: RE: PHP and HP-UNix
>
>
> Hi Brian,
>
> Please find attached my httpd.conf file.
>
> Thanks for the idea.
>
> Andrew
>
> Quoting Brian Mauter <[EMAIL PROTECTED]>:
>
> > Why don't you include your httpd.conf file?  I'm betting that there is
> some
> > small error in it that is preventing it from working for you.
> >
> > -Brian
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 17, 2001 3:40 PM
> > To: [EMAIL PROTECTED]
> > Subject: PHP and HP-UNix
> >
> >
> > Hello,
> >
> > If anyone has PHP 4.04 was statically or dynamically installed with
Apache
> > ver
> > 1.3.20 on HP-Unix could you let me know. The reason being is I am still
> > trying
> > to figure out why PHP is not being interpreted (basically no PHP
commands
> > work)
> > even though Apache and PHP were complied was succesfully.
> >
> > Any help would be greatly appreciated.
> >
> > Thanks
> >
> > Andrew
> >
>






PHP/Apache compiles ok under HPUX. here is my configure

PHP
./configure --with-iodbc=/opt/openlink4/odbcsdk --without-mysql
--with-pdflib=/usr/local --without-gd --with-apache=../apache_1.3.20
--enable-trans-sid --with-xml --with-imap --enable-track-vars

Apache
./configure --prefix=/opt/apache --datadir=/opt/apache/lib
--logfiledir=/opt/apache/adm --runtimedir=/opt/apache/adm
--sysconfdir=/opt/apache/etc --activate-module=src/modules/php4/libphp4.a
--enable-module=imap

Also, heres a note from httpd.conf that might be relevent

#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group nogroup on these systems!



> -----Original Message-----
> From: Michael Chan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 23, 2001 11:23 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] Re: PHP and HP-UNix
> 
> 
> Hi, I am in the same boat. I've compiled apache as an oracle 
> user and php as
> root user, but after editing httpd.conf file for php and 
> restarting it, it
> cored on me.  Do you think I should have compiled php as a 
> regular user?
> Thanks.
> 
> 
> "Brian Mauter" <[EMAIL PROTECTED]> wrote in message
> 000a01c157d1$35ad8470$0b00a8c0@godfather">news:000a01c157d1$35ad8470$0b00a8c0@godfather...
> > Hi, I think the reason behind all of this is that I cannot 
> find where in
> the
> > httpd.conf file you actually reference the module.  You 
> should have these
> > two lines in conf file somewhere:
> > LoadModule php_module    lib/modules/lib_php4.so
> > AddModule mod_php4.c
> >
> > You'll see sections near the top.  Verify that the files do 
> exist in those
> > paths and then put each line in the similar section 
> (preferably at the end
> > of each section), then restart Apache.  You should then be set.
> >
> > Good luck,
> > -Brian
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, October 18, 2001 7:19 AM
> > To: Brian Mauter
> > Subject: RE: PHP and HP-UNix
> >
> >
> > Hi Brian,
> >
> > Please find attached my httpd.conf file.
> >
> > Thanks for the idea.
> >
> > Andrew
> >
> > Quoting Brian Mauter <[EMAIL PROTECTED]>:
> >
> > > Why don't you include your httpd.conf file?  I'm betting 
> that there is
> > some
> > > small error in it that is preventing it from working for you.
> > >
> > > -Brian
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, October 17, 2001 3:40 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: PHP and HP-UNix
> > >
> > >
> > > Hello,
> > >
> > > If anyone has PHP 4.04 was statically or dynamically 
> installed with
> Apache
> > > ver
> > > 1.3.20 on HP-Unix could you let me know. The reason being 
> is I am still
> > > trying
> > > to figure out why PHP is not being interpreted (basically no PHP
> commands
> > > work)
> > > even though Apache and PHP were complied was succesfully.
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Thanks
> > >
> > > Andrew
> > >
> >
> 
> 
> 
> -- 
> 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 have the latest release of php, but it is not reading the php3 extension,
but it runs perfectly fine with the .php extension.

I could rename them all, but they all link to each other and that means a
lot of editing...

I do recall making sure that php3 extension is handled by php.exe, but what
can cause it not to work and how do I get it to work?






depending on what web server you're using, you need to add the php3
extention to the extentions that php4 parses.

for apache, this would look like:

    AddType application/x-httpd-php .php, .php3

give me a few more details, and i'll try and help more...


--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com



"Todd Williamsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have the latest release of php, but it is not reading the php3
extension,
> but it runs perfectly fine with the .php extension.
>
> I could rename them all, but they all link to each other and that means a
> lot of editing...
>
> I do recall making sure that php3 extension is handled by php.exe, but
what
> can cause it not to work and how do I get it to work?
>
>






I have disabled IIS and use Apache... not so much overhead for memory, plus
it doesn't leak like a sive either when it comes down to security

"Daniel Gallagher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i am new to php and has tried to install it. i have made a small test
page,
> ( the origonal hello world) and i cannot view it in my browser althought i
> am running IIS 4. any thoughts
>
>






Hello folks!

I was trying to execute a PHP script (on Win98) but it came only this source
code from my server:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

This happens to all the scripts I try to execute both from my server and
using MS-DOS-Prompt (php webpage.php) it returns nothing

What's wrong?
Please help!










It means that either PHP is not running, or there's a parse error on the
page and you dont have the error handling set.


--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com



"StefįN Vingir SkarphéšInsson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello folks!
>
> I was trying to execute a PHP script (on Win98) but it came only this
source
> code from my server:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> <BODY></BODY></HTML>
>
> This happens to all the scripts I try to execute both from my server and
> using MS-DOS-Prompt (php webpage.php) it returns nothing
>
> What's wrong?
> Please help!
>
>
>
>
>
>






Thank you!  The latest snapshot solved the problem.  How stable is it?

-G

Aki Häkkilä wrote:

> There was a typo in his obj.conf ("php4_executes") and he needed latest
> snapshot because the TSRM was recently rewritten. If your NES/iPlanet
> crashes during init, you may have same problems. This is my original bug
> report:
> http://bugs.php.net/bug.php?id=13174
> 
> PHP uses pthreads now instead of the NSAPI thread functions. iPlanet
> claims that it will cause problems (server crash), but I haven't noticed
> anything yet.
> 
> There used to be an attempt to use NSAPI thread functions (php-4.0.6),
> but it didn't work too well. When compiled --with-nsapi, it still used
> some pthread-functions etc. (see the bug report). If compiled
> --without-pthreads --with-nsapi, the compilation failed. I don't know
> why, perhaps the NSAPI header files weren't included yet at that stage
> (unknown symbols).
> 
> Big G wrote:
>> 
>> Any answer on this?
>> 
>> [EMAIL PROTECTED] wrote:
>> 
>> >
>> >
>> > Hi everyone!
>> >
>> > Is it possible to install PHP4 with NES 3.5.1? Everywhere I have looked
>> > I onley find instructions
>> > for installing on NES 3.6.
>> >
>> > I have followed those instructions but I can?t get it to work.
>> >
>> > When I start the Netscape server after modification i get the following
>> > error:
>> >
>> > [https-www.saabsupplier.com]: pclose() failed. (2: unknown early
>> > [startup error) https-www.saabsupplier.com]: conf_init: Error running
>> > [init function(late)
>> > load-modules: dlsym for php4_executes failed (ld.so.1: ns-httpd: fatal:
>> > php4_executes: can't find symbol)
>> > [https-www.saabsupplier.com]: server exit: status 1
>> >
>> > Any help is apreciated!
>> >
>> > Regards
>> > Daniel
>> 
>> --

-- 
Microsoft: All your crashes are belong to us!



Reply via email to