php-install Digest 6 Oct 2002 12:03:02 -0000 Issue 1056

Topics (messages 8676 through 8691):

General PHP4 question
        8676 by: Beauford 2002
        8680 by: John Coder
        8685 by: Beauford 2002

crypt() broken w/php + Apache2 + OpenSSL?
        8677 by: Don MacAskill
        8678 by: Rasmus Lerdorf
        8682 by: Don MacAskill

Re: getting jpeg to work with php (fwd)
        8679 by: John Coder

GD2.0 and recompiling php
        8681 by: John Coder

Re: Stuck at PHP4 installation( with Apache2 )
        8683 by: kramer

Re: [PHP] Re: Stuck at PHP4 installation( with Apache2 )
        8684 by: Rasmus Lerdorf

WinXP Apache php 4.3.2 php4apache2.dll
        8686 by: Aleksandar Petreski
        8687 by: Pierre-Alain Joye

general question
        8688 by: Jon  Miller
        8689 by: Jason Reid

how to change??
        8690 by: ferio arsyad

php4apache.dll
        8691 by: Lasse Vangen

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 ---
Hi,

I just got PHP4 and Apache 1.3.26 working (sort of I think) after 4 days
of messing around, but something is still not right. When I run the test
<?phpinfo()?> it works fine, but when I run a previous test file I
created, it doesn't work. I know the syntax is correct as it works on
the machine at work, but no go here. All it does is take a form to input
addresses and outputs it to a php file, but it is not passing the
variables. There are some "if" statements in the php file that are also
not working. You can see what I mean at
http://beauford.dyndns.org/info.htm. 

I am thinking that there is still something I am missing in httpd.conf
or php.ini, but any input is appreciated.

TIA

Oh, by the way. I'm running FreeBSD 4.6.2 as is the machine at work.


--- End Message ---
--- Begin Message ---
On Sun, 2002-10-06 at 17:11, Beauford 2002 wrote:
> Hi,
> 
> I just got PHP4 and Apache 1.3.26 working (sort of I think) after 4 days
> of messing around, but something is still not right. When I run the test
> <?phpinfo()?> it works fine, but when I run a previous test file I
> created, it doesn't work. I know the syntax is correct as it works on
> the machine at work, but no go here. All it does is take a form to input
> addresses and outputs it to a php file, but it is not passing the
> variables. There are some "if" statements in the php file that are also
> not working. You can see what I mean at
> http://beauford.dyndns.org/info.htm. 
> 
> I am thinking that there is still something I am missing in httpd.conf
> or php.ini, but any input is appreciated.
> 
> TIA
> 
> Oh, by the way. I'm running FreeBSD 4.6.2 as is the machine at work.
 Check the register globals on the one at home in your php.ini file.

John Coder


--- End Message ---
--- Begin Message ---
> Hi,
> 
> I just got PHP4 and Apache 1.3.26 working (sort of I think) after 4 
> days of messing around, but something is still not right. When I run 
> the test <?phpinfo()?> it works fine, but when I run a previous test 
> file I created, it doesn't work. I know the syntax is correct as it 
> works on the machine at work, but no go here. All it does is take a 
> form to input addresses and outputs it to a php file, but it is not 
> passing the variables. There are some "if" statements in the php file 
> that are also not working. You can see what I mean at 
> http://beauford.dyndns.org/info.htm.
> 
> I am thinking that there is still something I am missing in httpd.conf

> or php.ini, but any input is appreciated.
> 
> TIA
> 
> Oh, by the way. I'm running FreeBSD 4.6.2 as is the machine at work.
 Check the register globals on the one at home in your php.ini file.

It was off and I turned it to on and the same thing.




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

PHP's crypt() function doesn't seem to return MD5 results, even when
using an MD5 salt, when it's used in conjunction with Apache2 (2.0.43)
and OpenSSL (0.9.6g).  Instead, it always returns a DES result.  FYI,
CRYPT_MD5 = 1 and CRYPT_SALT_LENGTH = 12.

Apache 1.3.x and the same versions of PHP and OpenSSL work fine.  Apache
2 compiled without '--enable-ssl' also works fine.  PHP standalone works
fine.  

I've also tried other versions of OpenSSL (0.9.6b) and PHP (4.2.2,
4.3.0-dev) and Apache2 (2.0.42).  No luck.

Does anyone know what might be causing this?  Is there a workaround or a
fix?  

Thanks!

Don

--- End Message ---
--- Begin Message ---
Probably something interfering with the configure checks.  See your
config.log.

-Rasmus

On Sat, 5 Oct 2002, Don MacAskill wrote:

>
> PHP's crypt() function doesn't seem to return MD5 results, even when
> using an MD5 salt, when it's used in conjunction with Apache2 (2.0.43)
> and OpenSSL (0.9.6g).  Instead, it always returns a DES result.  FYI,
> CRYPT_MD5 = 1 and CRYPT_SALT_LENGTH = 12.
>
> Apache 1.3.x and the same versions of PHP and OpenSSL work fine.  Apache
> 2 compiled without '--enable-ssl' also works fine.  PHP standalone works
> fine.
>
> I've also tried other versions of OpenSSL (0.9.6b) and PHP (4.2.2,
> 4.3.0-dev) and Apache2 (2.0.42).  No luck.
>
> Does anyone know what might be causing this?  Is there a workaround or a
> fix?
>
> Thanks!
>
> Don
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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

I've been pouring over config.log files, among other things, for hours.
:)

I assume you meant php's config.log, in which case, there is an error
when it first checks for crypt, but this error is present even when I
build php for Apache1 or standalone, both of which work perfectly.

When it checks for crypt in -lcrypt, it passes, and when it checks for
MD5 crypt, it passes.  (I see your name when it's checking for the
various crypt flavors, so I guess I'm talking to the right guy :).

In Apache2's config.log, I don't have any references to crypt or MD5,
and don't see anything obvious there.  OpenSSL doesn't have a config log
that I can find.

At this point, I'm 99.9% positive the problem exists between Apache2 and
OpenSSL, and not PHP.  (Afterall, Apache1 + OpenSSL + PHP works, as does
Apache2 + PHP - OpenSSL.  Just not Apache2 + OpenSSL + PHP).  I'm just
wondering if anyone else has seen this and knows anything.

Thanks!

Don




> -----Original Message-----
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, October 05, 2002 3:12 PM
> To: Don MacAskill
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] crypt() broken w/php + Apache2 + OpenSSL?
> 
> 
> Probably something interfering with the configure checks.  
> See your config.log.
> 
> -Rasmus
> 
> On Sat, 5 Oct 2002, Don MacAskill wrote:
> 
> >
> > PHP's crypt() function doesn't seem to return MD5 results, 
> even when 
> > using an MD5 salt, when it's used in conjunction with 
> Apache2 (2.0.43) 
> > and OpenSSL (0.9.6g).  Instead, it always returns a DES 
> result.  FYI, 
> > CRYPT_MD5 = 1 and CRYPT_SALT_LENGTH = 12.
> >
> > Apache 1.3.x and the same versions of PHP and OpenSSL work fine.  
> > Apache 2 compiled without '--enable-ssl' also works fine.  PHP 
> > standalone works fine.
> >
> > I've also tried other versions of OpenSSL (0.9.6b) and PHP (4.2.2,
> > 4.3.0-dev) and Apache2 (2.0.42).  No luck.
> >
> > Does anyone know what might be causing this?  Is there a 
> workaround or 
> > a fix?
> >
> > Thanks!
> >
> > Don
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 

--- End Message ---
--- Begin Message ---
On Sat, 2002-10-05 at 16:59, New Disorder Records wrote:
> Hi,
>  I am on a redhat linux box running apache 1.3.26, sybase 11.9.2 and php 
> 4.2.3.  I've been trying to get gd with jpeg output to work.  I have been 
> configuring php with this command:
> 
> ./configure --with-gd --with-jpeg-dir=/usr/lib 
> --with-sybase-ct=/opt/sybase-11.9.2 --enable-gd-native-ttf 
>--with-apache=../apache_1.3.26
> 
> though I've tried setting --with-gd to 
> =yes
> =/usr
> =/usr/lib
> =../gd-1.8.4
> 
> I've also tried all combinations of setting --with-jpeg-dir to
> =/usr
> =../jpeg-6b
> =/usr/local/lib
> 
> all of these seem to be reasonable settings, and all of them compile fine.  
> However, when I run the code:
> 
> <?php
> $im = imagecreate(50,100);
> $white = imagecolorallocate($im, 255,255,255);
> $black = imagecolorallocate($im, 0, 0, 0);
> imagefilledrectangle($im, 0,0, 49, 99, $white);
> imagefilledrectangle($im, 15, 15, 20, 60, $black);
> imageJpeg($im);
> 
> ?>
> 
> I get this error:
> 
> [Sat Oct  5 13:47:47 2002] [error] PHP Fatal error:  Call to undefined 
> function:  imagejpeg() in /usr/www/gold/imgen/index.php on line 7
> 
> That makes me think that gd is installed, because the other image commands 
> don't choke, but what the hell do I have to do to make imagejpeg work?
> 
> Thanks,
> Ernst Schoen-Rene
> 
 Do you have a header showing that the content should be jpeg? as in
header("Content-type; image/png");


--- End Message ---
--- Begin Message ---
I'm installing gd2.0.2 on a linux suse 8.0 distro and while I've had
success doing it on my home computer I've ran into a make error when I
do it at work. here is the output of make:
In file included from gd.c:36:
php_gd.h:69 warning: static declaration for `gdImageColorResolve'
follows non-static
gd.c:92: conflicting types for `gdIOCtx'
/usr/local/gd/gd_io.h:18 previous declaration of `gdIOCtx'
make[3]: ***[gd.lo] Error 1

aghh the only difference between them is the architecture of the machine
home is an Duron and at work a Pentium 2. but mine installed great at
home and now this.
I changed the static declaration and got rid of the first but am lost
on the second error.

some further information I configured php4.2.3 as follows:
--with-mysql
--with-apxs
--with-gd=/usr/local/gd
--with-freetype-dir=/usr/local
--enable-gd-native-ttf  
--enable-gd-imgstrttf
--with-jpeg-dir=/usr/include
--with-png-dir=/usr/include
--with-zlib 

Any ideas? 


Btw GD compiled with no probs except warnings about bison not being
present. should I make libgd.a again?

John Coder

--- End Message ---
--- Begin Message ---
Ok guys,
To correcte all the typos, this is what I did.
1. Removed PHP( directory ) completely.
2. Start Apache - went fine( without any reference of PHP )
3. Installed PHP in a simple directory( not Program Files et al. ), so now
its e:\php-4.2.3-Win32\...
4. Copied php4ts.dll to \WINNT\system32 directory
5. Added the following lines to httpd.conf( at the end of the file, I hope
that's ok )...

LoadModule php4_module e:/php-4.2.3-Win32/sapi/php4apache2.dll
[ tried with LoadModule php4_module
e:\php-4.2.3-Win32\sapi\php4apache2.dll ]
AddModule mod_php4.c
#Action application/x-httpd-php e:\php-4.2.3-Win32\sapi\php.exe
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

Guess what ? No luck, it doesn't work. It failes while trying to bring up
Apache.

I read one suggesstion to copy php4ts LIB file to Apache's lib directory.
That didn't work either.
I went line by lile in the notes on install.txt that comes along with the
PHP zip-file, what am I missing ?
Basically its not liking the "loadmodule" !
Appreciate your help. Thanks.

----- Original Message -----
From: "Erwin Bovendeur" <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
To: "kramer" <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
Sent: Saturday, October 05, 2002 1:39 AM
Subject: Re: Stuck at PHP4 installation( with Apache2 )

> Hi,
>
> > Thanks Erwin. Unfortunately it doesn't work, even after I copied
> php4ts.dll.
> >
> > How would I specify the drive:\Program Files, which has a space
> in-between.
> > Should I include single or double quote ?
> >
> > I tried all these combinations...
> >
> > LoadModule php4_module F:/Progra~1/php-4.2.3-Win32/php4ts.dll
> > LoadModule php4_module 'F:/Program Files/php-4.2.3-Win32/php4ts.dll'
> > LoadModule php4_module "F:/Program Files/php-4.2.3-Win32/php4ts.dll"
> > LoadModule php4_module
"F:/Progra~1/php-4.2.3-Win32/sapi/php4apache2.dll"
> >
> > LoadModule php4_module D:/WINNT/system32/php4ts.dll
> > LoadModule php4_module 'D:/WINNT/system32/php4ts.dll'
> > LoadModule php4_module 'D:/WINNT/system32/php4ts.dll'
>
> Hmz...hold a second...
> You tried to include php4ts.dll? That's not correct. php4ts.dll must be in
> the path, so php4apache2.dll can find it. After that, use the line
>
> LoadModule php4_module f:/progra~1/php-4.2.3-Win32/sapi/php4apache2.dll
>
> to include php support. That should work (you didn't try this one ;-))
>
> HTH
> Erwin
>
>


--- End Message ---
--- Begin Message ---
Keep in mind that we do not officially support Apache2 yet.  Will be a
while before it will be anywhere near stable.

-Rasmus

On Sat, 5 Oct 2002, kramer wrote:

> Ok guys,
> To correcte all the typos, this is what I did.
> 1. Removed PHP( directory ) completely.
> 2. Start Apache - went fine( without any reference of PHP )
> 3. Installed PHP in a simple directory( not Program Files et al. ), so now
> its e:\php-4.2.3-Win32\...
> 4. Copied php4ts.dll to \WINNT\system32 directory
> 5. Added the following lines to httpd.conf( at the end of the file, I hope
> that's ok )...
>
> LoadModule php4_module e:/php-4.2.3-Win32/sapi/php4apache2.dll
> [ tried with LoadModule php4_module
> e:\php-4.2.3-Win32\sapi\php4apache2.dll ]
> AddModule mod_php4.c
> #Action application/x-httpd-php e:\php-4.2.3-Win32\sapi\php.exe
> AddType application/x-httpd-php .php .phtml
> AddType application/x-httpd-php-source .phps
>
> Guess what ? No luck, it doesn't work. It failes while trying to bring up
> Apache.
>
> I read one suggesstion to copy php4ts LIB file to Apache's lib directory.
> That didn't work either.
> I went line by lile in the notes on install.txt that comes along with the
> PHP zip-file, what am I missing ?
> Basically its not liking the "loadmodule" !
> Appreciate your help. Thanks.
>
> ----- Original Message -----
> From: "Erwin Bovendeur" <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> To: "kramer" <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> Sent: Saturday, October 05, 2002 1:39 AM
> Subject: Re: Stuck at PHP4 installation( with Apache2 )
>
> > Hi,
> >
> > > Thanks Erwin. Unfortunately it doesn't work, even after I copied
> > php4ts.dll.
> > >
> > > How would I specify the drive:\Program Files, which has a space
> > in-between.
> > > Should I include single or double quote ?
> > >
> > > I tried all these combinations...
> > >
> > > LoadModule php4_module F:/Progra~1/php-4.2.3-Win32/php4ts.dll
> > > LoadModule php4_module 'F:/Program Files/php-4.2.3-Win32/php4ts.dll'
> > > LoadModule php4_module "F:/Program Files/php-4.2.3-Win32/php4ts.dll"
> > > LoadModule php4_module
> "F:/Progra~1/php-4.2.3-Win32/sapi/php4apache2.dll"
> > >
> > > LoadModule php4_module D:/WINNT/system32/php4ts.dll
> > > LoadModule php4_module 'D:/WINNT/system32/php4ts.dll'
> > > LoadModule php4_module 'D:/WINNT/system32/php4ts.dll'
> >
> > Hmz...hold a second...
> > You tried to include php4ts.dll? That's not correct. php4ts.dll must be in
> > the path, so php4apache2.dll can find it. After that, use the line
> >
> > LoadModule php4_module f:/progra~1/php-4.2.3-Win32/sapi/php4apache2.dll
> >
> > to include php support. That should work (you didn't try this one ;-))
> >
> > HTH
> > Erwin
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
APACHE:
module
"c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not comp
atible with this version of Apache.
Please contact the vendor for the correct version.

Help!!!


--- End Message ---
--- Begin Message ---
On Sun, 6 Oct 2002 04:09:15 +0200
"Aleksandar Petreski" <[EMAIL PROTECTED]> wrote:

> APACHE:
> module
> "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not comp
> atible with this version of Apache.
> Please contact the vendor for the correct version.
> 
> Help!!!

Can you try from the snapshot ?

http://snaps.php.net/win32/

pa
--- End Message ---
--- Begin Message ---
I want to install a web-based e-mail system (Twig) and I see it requires apache, mysql 
and php.  I'm using this on a test server so it really does not have access to the 
internet (yet) and I was wondering if there is another way of testing such a setup?
It appears that I have to have apache up and running then php and then mysql.  Is this 
the correct order? or should I have the web-server, database installed before php4.  
Directions are not too clear.

Thanks
--- End Message ---
--- Begin Message ---
Install apache, then php, and then mysql.

php MUST come after apache, though mysql can be done after or before apache.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

----- Original Message -----
From: "Jon Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 06, 2002 1:35 PM
Subject: [PHP-INST] general question


> I want to install a web-based e-mail system (Twig) and I see it requires
apache, mysql and php.  I'm using this on a test server so it really does
not have access to the internet (yet) and I was wondering if there is
another way of testing such a setup?
> It appears that I have to have apache up and running then php and then
mysql.  Is this the correct order? or should I have the web-server, database
installed before php4.  Directions are not too clear.
>
> Thanks
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
ok..
i'm running winxp/apache2.0.43/php4.2.3
default document root is on c:\apache\apache2\htdocs

1st time intalled apache, then i direct my browser to my server which  
http://localhost, it display the page which is index.html(default) on that 
root.
now the question is, how to change my default server so that everytime i 
type http://localhost, it directing to my index.php(of coz on the same dir) 
instead of display index.html

soory for noob question.newbie here :)


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--- End Message ---
--- Begin Message ---
I have a big problem when i try to start Apache 2.0.43
with php 4.2.3;

Syntax error on line 978 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/Program Files/php/sapi/php4apache.dll into server: The
specified module could not be found.

This i s what I`ve putted in the httpd.conf:
#PHP
LoadModule php4_module "c:/program files/php/sapi/php4apache.dll"
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

I copied php4ts.dll into the %systemroot%\system\

I`m running windows xp pro with sp1. I have searched the net for simular
problem,
but no one seems to have an exact answer.
Please help me! I`m really stuck. :)

rgds,

Lasse Vangen
[EMAIL PROTECTED]


--- End Message ---

Reply via email to