php-install Digest 12 Dec 2002 13:21:14 -0000 Issue 1158

Topics (messages 9360 through 9365):

Re: problems with apache 2.0.43 and newest snapshot
        9360 by: Chris Hewitt
        9361 by: Josh Marcus
        9364 by: Josh Marcus

Configurung Apache
        9362 by: Dereck Marchinski
        9363 by: Chris Hewitt

GD not loading
        9365 by: Anibal

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 ---
Josh Marcus wrote:

I'm running linux.  Redhat 6.2.

That is rather old now. Does it use the <If Define> syntax in httpd.conf? Oops, if you've installed new Apache versions presumably not?

I have now tried a number of different relatively new apaches,
with a number of recent phps.  And I always can compile fine.

Good.

And apache doesn't complain.
It will complain if httpd.conf contains something it does not understand. One test I do to check Apache is actually looking at the httpd.conf I am editing is to put some rubbish in it and check Apache complains when restarting it.

but it doesn't list the loaded

httpd -l will only list statically linked modules. How did you compile php (what is your configure line)?

module.  Will apache complain if the module doesn't load correctly?

Yes.

LoadModule php4_module        modules/libphp4.so
AddType application/x-httpd-php php

The second line should have a full stop (".php" not "php"). You may also need an AddModule line. The url of the file you are calling in your browser will need to have the extension ".php".

HTH
Chris

--- End Message ---
--- Begin Message ---
Thanks for the comments!

On Wed, Dec 11, 2002 at 06:55:11PM +0000, Chris Hewitt wrote:
> It will complain if httpd.conf contains something it does not 
> understand. One test I do to check Apache is actually looking at the 
> httpd.conf I am editing is to put some rubbish in it and check Apache 
> complains when restarting it.

I'm definitely using the httpd.conf I'm editing.  If I put in an "AddModule"
directive, for example, it complains -- because I'm using apache2 which
doesn't use the AddModule directive.

> 
> >but it doesn't list the loaded
> >
> httpd -l will only list statically linked modules. How did you compile 
> php (what is your configure line)?

Riight -- but the [notify] line put in the error_log upon httpd start
will list modules, won't it?  It lists my mod_perl and mod_ssl ...
and used to list php.  

> >>LoadModule php4_module        modules/libphp4.so
> >>AddType application/x-httpd-php php
> >>
> The second line should have a full stop (".php" not "php"). You may also 
> need an AddModule line. The url of the file you are calling in your 
> browser will need to have the extension ".php".
Right, I fixed the AddType line (so it is now ".php").  I believe AddModule
is not needed or supported in apache2.

thanks again!  but still I can't get it to work. 

--j
--- End Message ---
--- Begin Message ---
well.  anyway.  jeez.

i resolved this by finally trying to use apache 2.0.36 against
php 4.2.2.  

why am i not surprised apache2 adaption is slow.  :)

--j


On Wed, Dec 11, 2002 at 02:20:06PM -0500, Josh Marcus wrote:
> Thanks for the comments!
> 
> On Wed, Dec 11, 2002 at 06:55:11PM +0000, Chris Hewitt wrote:
> > It will complain if httpd.conf contains something it does not 
> > understand. One test I do to check Apache is actually looking at the 
> > httpd.conf I am editing is to put some rubbish in it and check Apache 
> > complains when restarting it.
> 
> I'm definitely using the httpd.conf I'm editing.  If I put in an "AddModule"
> directive, for example, it complains -- because I'm using apache2 which
> doesn't use the AddModule directive.
> 
> > 
> > >but it doesn't list the loaded
> > >
> > httpd -l will only list statically linked modules. How did you compile 
> > php (what is your configure line)?
> 
> Riight -- but the [notify] line put in the error_log upon httpd start
> will list modules, won't it?  It lists my mod_perl and mod_ssl ...
> and used to list php.  
> 
> > >>LoadModule php4_module        modules/libphp4.so
> > >>AddType application/x-httpd-php php
> > >>
> > The second line should have a full stop (".php" not "php"). You may also 
> > need an AddModule line. The url of the file you are calling in your 
> > browser will need to have the extension ".php".
> Right, I fixed the AddType line (so it is now ".php").  I believe AddModule
> is not needed or supported in apache2.
> 
> thanks again!  but still I can't get it to work. 
> 
> --j
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
OK so I give up, I have tried for days now to get apache 1.3.27 and php 2.4.3 to work in harmony on my WinXP machine.  I have done everything the tutorial say and everything the install file says can someone please look over my httpd file and tell me where I have gone wrong,  I can't get my php file to load correctly in the browser.  All I get is the php code returned to me as text.
 
Thanks
Dereck Marchinski
--- End Message ---
--- Begin Message ---
Dereck Marchinski wrote:

OK so I give up, I have tried for days now to get apache 1.3.27 and php 2.4.3 to work in harmony on my WinXP machine. I have done everything the tutorial say and everything the install file says can someone please look over my httpd file and tell me where I have gone wrong, I can't get my php file to load correctly in the browser. All I get is the php code returned to me as text.

How have you compiled Apache (DSO or compiled into Apache)? The AddType line needs to have the extension you are using for you test php file (ie. both ".php" or both ".php4" etc).

HTH
Chris (closing down for the night)

--- End Message ---
--- Begin Message ---
I`m trying to load GDlib in PHP, but it`s not working. Everything
seems to be OK, but when i try to execute some GD function, i get error.
What is happening ? Ideas ?

I recompiled PHP with:
./configure --with-mysql --with-apxs --enable-dbase --with-gd
--with-gd-lib=/usr/local/lib --with-jpeg-dir=/usr/src/jpeg-6b
--with-png-dir=/usr/src/libpng-1.2.5 --with-zlib
--with-zlib-dir=/usr/src/zlib-1.1.4

The versions are: php-4.2.3, gd-2.0.8 (with the patch), jpeg-6b,
libpng-1.2.5, and zlib-1.1.4

Configure gets:
checking for GD support... yes
checking whether to enable truetype string function in GD... no
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for the location of libpng... yes
checking for png_write_image in -lpng... (cached) yes
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
checking for freetype(2)... no
If configure fails try --with-freetype-dir=<DIR>
checking for FreeType 1.x support... no
checking for T1lib support... no
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) yes
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking for gdImageCreateFromGd2 in -lgd... (cached) yes
checking for gdImageCreateTrueColor in -lgd... (cached) no

And i receive no errors compiling or installing.

Please, i'm lost.

Thanks,
Anibal









--- End Message ---

Reply via email to