php-install Digest 22 Apr 2002 21:34:55 -0000 Issue 801
Topics (messages 6708 through 6718):
[WIN2k][APACHE 2] Problem loading php4apache.dll
6708 by: Myster Cool
6714 by: Bryan Thoreson
problems to configure php update
6709 by: Daniel Liebig
Re: Installing PHP for command-line use
6710 by: Dr CHEUNG Ngai Tseung
6711 by: Sam
6712 by: Sam
Re: Viewing Php code
6713 by: Jonathan Hilgeman
PHP 4.1.2 problem with IE
6715 by: Dave Sugar
Re: FreeBSD + gd + PHP4.1.2
6716 by: Batch
6718 by: Jonathan Hilgeman
Error during Make file...need help.
6717 by: Batch
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've got a big problem while trying to load this damend library in order to
make php working as module :(
I've copied the php4ts.dll in the winnt\system32 directory
I've set in my httpd.ini :
* LoadModule php4_module "c:/php/sapi/php4apache.dll"
* AddType application/x-httpd-php .php
i've set in my php.ini :
* doc_root = "c:\Web"
* extension_dir = c:\php
since it still wasn't working i've copied all the dlls of my php\dll
directory in the winnt\system32\ directory but i've always got the same
problem :
Syntax error on line 175 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/PHP/SAPI/php4apache.dll into server:
cannot find c:/PHP/SAPI/php4apache.dll
I'm going slightly mad, Please help i'm really stuck ! :(
--- End Message ---
--- Begin Message ---
Hi,
PHP 4.1.x php4apache.dll WILL NOT WORK with Apache 2. You can
download the PHP 4.2RC4 and there is an experimental dll in the
experimental folder of the download that works with Apache 2. Apache
2 is configured the same in the conf file just replace
php4apache.dll with the experimental dll.
I've been using this on a test server with no problems. You need the
experimental dll because apache 2 talks to the dll differently then
apache 1.3.x.
Bryan
On Mon, 22 Apr 2002 11:24:46 +0200, Myster Cool wrote:
>Hi !
>
>I've got a big problem while trying to load this damend library in
order
>to
>make php working as module :(
>I've copied the php4ts.dll in the winnt\system32 directory
>I've set in my httpd.ini :
>* LoadModule php4_module "c:/php/sapi/php4apache.dll"
>* AddType application/x-httpd-php .php
>i've set in my php.ini :
>* doc_root = "c:\Web"
>* extension_dir = c:\php
>
>since it still wasn't working i've copied all the dlls of my php\dll
>directory in the winnt\system32\ directory but i've always got the
same
>problem :
>
>Syntax error on line 175 of C:/Program Files/Apache
>Group/Apache2/conf/httpd.conf:
>Cannot load C:/PHP/SAPI/php4apache.dll into server:
>cannot find c:/PHP/SAPI/php4apache.dll
>
>I'm going slightly mad, Please help i'm really stuck ! :(
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bryan Thoreson 04/22/2002
Infotech Professional
CLA-Net University of Minnesota
--- End Message ---
--- Begin Message ---
Hi out there,
i seem to have a bigger problem with the compilation of PHP 4.1.2
on a SuSe Linux 7.0 standard installation.
I have currently running an Apache 1.3.12 with PHP 4.0.0 as
module and MySQL 3.22.23. They came with the distribution, i just
installed the packages and they do all work fine.
Now i have and want to upgrade to PHP 4.1.2.
After installing several packages (e.g. Flex, bison and mysql dev)
to resolve some problems occuring with ./configure, i'm now at a
point where nether myself nor the german newsgroups for PHP or
Linux have any idea left.
After using the attached configure file config.sh the configuration
ends up with the "Something is likely to be messed up here,.."
message and the advice to send the debug.log to this newsletter.
Since i tried everything else i or someone in the mentioned
newsgroups could imagine, this is exactly what i'm doing now *g*.
Would be great if someone had a hint for me.
thx a lot 4 Your help
D.
--
Daniel Liebig
Web Developer
Wevin - We Visualize Information
http://www.wevin.de
Tel.: 089 / 23 07 74 64
Klenzestr. 44 Rgb.
80469 Muenchen
#!/bin/sh
./configure \
--with-mysql=/usr \
--with-zlib=yes \
--with-gd=yes \
--enable-ftp \
--with-xml \
--with-ttf \
--with-yd \
--with-smnp \
--with-config-file-path=/etc/httpd \
--with-apxs=/usr/sbin/apxs \
--with-exec-dir=/usr/lib/apache/bin \
--enable-versioning \
--enable-yp \
--enable-trans-sid \
--enable-inline-optimization \
--enable-track-vars \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sysvsem \
--enable-sysvshm \
--enable-bcmath \
--enable-calendar \
--with-openssl \
i386-suse-linux-gnu
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: debug.log
Date: 22 Apr 2002, 8:36
Size: 1303 bytes.
Type: Unknown
--- End Message ---
--- Begin Message ---
Build php without the -apxs command
-----Original Message-----
From: webmaster [mailto:[EMAIL PROTECTED]]
Sent: Monday, 22 April 2002 17:33
To: phpinstall
Subject: Installing PHP for command-line use
Hi all,
working with my website I have ofund it would be practical to be able to run
PHP from the command-line.
This would be nice when it comes to writing "at"-jobs etc, where now I have
to use PERL. It would be so much easier to do that kind of work if I could
just write it in PHP.
I have heard this is possible, but I dont know how and honestly haven't been
able to find info on it; at least not on the php.net website.
Any suggestions?
Best regards,
Eivind
--- End Message ---
--- Begin Message ---
In order to not affect your current Apache (or whatever) setup, I find it
best to not run "make install" after building -- instead, just manually copy
the php binary (it's somewhere in the build tree, I forget where) into
/usr/bin or /usr/local/bin. That way apache is left using the Apache
module.
----- Original Message -----
From: "Dr CHEUNG Ngai Tseung" <[EMAIL PROTECTED]>
To: "webmaster" <[EMAIL PROTECTED]>; "phpinstall"
<[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 10:30 PM
Subject: [PHP-INST] RE: Installing PHP for command-line use
> Build php without the -apxs command
>
> -----Original Message-----
> From: webmaster [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 22 April 2002 17:33
> To: phpinstall
> Subject: Installing PHP for command-line use
>
>
> Hi all,
> working with my website I have ofund it would be practical to be able to
run
> PHP from the command-line.
> This would be nice when it comes to writing "at"-jobs etc, where now I
have
> to use PERL. It would be so much easier to do that kind of work if I could
> just write it in PHP.
> I have heard this is possible, but I dont know how and honestly haven't
been
> able to find info on it; at least not on the php.net website.
>
> Any suggestions?
>
> Best regards,
>
> Eivind
>
>
>
>
--- End Message ---
--- Begin Message ---
In order to not affect your current Apache (or whatever) setup, I find it
best to not run "make install" after building -- instead, just manually copy
the php binary (it's somewhere in the build tree, I forget where) into
/usr/bin or /usr/local/bin. That way apache is left using the Apache
module.
----- Original Message -----
From: "Dr CHEUNG Ngai Tseung" <[EMAIL PROTECTED]>
To: "webmaster" <[EMAIL PROTECTED]>; "phpinstall"
<[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 10:30 PM
Subject: [PHP-INST] RE: Installing PHP for command-line use
> Build php without the -apxs command
>
> -----Original Message-----
> From: webmaster [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 22 April 2002 17:33
> To: phpinstall
> Subject: Installing PHP for command-line use
>
>
> Hi all,
> working with my website I have ofund it would be practical to be able to
run
> PHP from the command-line.
> This would be nice when it comes to writing "at"-jobs etc, where now I
have
> to use PERL. It would be so much easier to do that kind of work if I could
> just write it in PHP.
> I have heard this is possible, but I dont know how and honestly haven't
been
> able to find info on it; at least not on the php.net website.
>
> Any suggestions?
>
> Best regards,
>
> Eivind
>
>
>
>
--- End Message ---
--- Begin Message ---
Most PHP files will be like regular text files, and you can use any standard
viewer to see them, as long as you have the SOURCE (original) file. You
can't get a php file by just going to that file on the web and getting it.
If you saw an interesting message board that was programmed in PHP, you
couldn't just view the HTML source and expect to get the PHP code. That is
like taking a photograph of a running program with your camera and hoping
that it will somehow let you change that program.
If you are seeing PHP as binary code, that probably means that it was put
into a program called the Zend Encoder. That program encrypts your program
code so you can sell PHP programs and you don't have to worry about people
stealing your code or giving it away for free once they have bought it. So
if you have an encoded/encrypted PHP file, then you cannot change it or view
it. However, MOST PHP files are like regular text files and you CAN change
and view their code.
- Jonathan
-----Original Message-----
From: Leo Tung [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 8:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Viewing Php code
Hi all,
I am a newbie of php. Now I am learning the php from reading some
existing on a server which is already compiled as running of Apache and
PHP. However, there is a problem on reading all php code as all are
binary. My question is why all php is interpreted in binary and How can
I use any standard viewer, such as wordpad or emacs etc to viewing them?
Thanks for any help.
Leo
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
A client of ours has recently upgraded from PHP 4.0.6 to PHP 4.1.2 and now
they are receiving complaints from users of their website that they
frequently are getting 'Page Not found' errors when going to the website.
The Website was developed under PHP 4.0.6. And the index.html file is
just a forward to the main PHP page. But going straight to the main page
does not seem to make any difference. I have seen some error reports at
http://bugs.php.net about seemingly similar problems and the answer is 'It
is an Apache Configuration Problem'. But I have not seen any real answer
and to what the problem is or how to solve this problem. I can't believe
that no one else is having similar problems.
Any help in to how to solve this problem would be greatly appreciated. I
have already spent a whole lot of time looking into this and don't know what
else to try to solve the problem (besides going back to version 4.0.6 of
PHP).
The live website is running on Solaris version 8 on a Sparc processor. I
don't know all the details of the hardware. But it is PHP 4.1.2, Apache
1.3.14.
Options to configure when compiling PHP are as follows:
--with-apxs --with-mysql=/web/tech/mysql --with-gd --with-jpeg-dir=/usr/loca
l/lib --enable-debug=no --enable-track-vars=yes --with-oracle=/oracle/prod
uct/8.0.5 --enable-trans-sid --enable-magic-quotes
Thanks for the help
Dave Sugar
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Anyone know what this problem is? I am getting the exact same problem under
RedHat 7.2
Thanks.
"Kasper" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have some problems with GD and php4.1.2.
>
> I have FreeBSD and i have gd zlib freetype jpeg and all that is required
> installed.
>
> My line is like this,
>
>
/configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs --with-gd-dir
>
=/usr/local/lib/gd --with-zlib --with-png-dir=/usr/local/lib --with-jpeg-dir
> =/usr/local/lib --with-freetype-dir=/usr/local/lib
>
> I have also tried
>
>
/configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs --with-gd --w
> ith-zlib --with-png --with-jpeg
>
> --with-freetype
>
> And the error i get is this one,
>
> In file included from internal_functions.c:33:
>
> /home/miffo/php/ext/gd/php_gd.h:33: gd.h: No such file or directory
>
> *** Error code 1
>
> Stop in /home/miffo/php/main.
>
> *** Error code 1
>
> Stop in /home/miffo/php/main.
>
> *** Error code 1
>
> Stop in /home/miffo/php.
>
> And when configuring php says,
>
> checking whether to include 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_info_init in -lpng... (cached) yes
>
> checking for the location of libXpm... no
>
> If configure fails try --with-xpm-dir=<DIR>
>
> checking for freetype(2)... yes
>
> checking whether to include include FreeType 1.x support... no
>
> checking whether to include 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) yes
>
> 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
>
> checking for gdImageSetTile in -lgd... (cached) yes
>
> checking for gdImageSetBrush in -lgd... (cached) yes
>
> checking for gdImageStringTTF in -lgd... (cached) yes
>
> checking for gdImageStringFT in -lgd... (cached) yes
>
> checking for gdImageStringFTEx in -lgd... (cached) no
>
> checking for gdImageColorClosestHWB in -lgd... (cached) yes
>
> checking for gdImageColorResolve in -lgd... (cached) yes
>
> checking for gdImageGifCtx in -lgd... (cached) no
>
>
>
> Whats wrong ??
>
> /K
>
>
>
--- End Message ---
--- Begin Message ---
Why don't you just use the ports system on FreeBSD to set up PHP? It would
be much cleaner and a lot faster.
To address your problem, it seems as though it can't find your gd.h file in
the include paths. What happens when you run "locate gd.h" ?
- Jonathan
-----Original Message-----
From: Batch [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Re: FreeBSD + gd + PHP4.1.2
Anyone know what this problem is? I am getting the exact same problem under
RedHat 7.2
Thanks.
"Kasper" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have some problems with GD and php4.1.2.
>
> I have FreeBSD and i have gd zlib freetype jpeg and all that is required
> installed.
>
> My line is like this,
>
>
/configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs --with-gd-dir
>
=/usr/local/lib/gd --with-zlib --with-png-dir=/usr/local/lib --with-jpeg-dir
> =/usr/local/lib --with-freetype-dir=/usr/local/lib
>
> I have also tried
>
>
/configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs --with-gd --w
> ith-zlib --with-png --with-jpeg
>
> --with-freetype
>
> And the error i get is this one,
>
> In file included from internal_functions.c:33:
>
> /home/miffo/php/ext/gd/php_gd.h:33: gd.h: No such file or directory
>
> *** Error code 1
>
> Stop in /home/miffo/php/main.
>
> *** Error code 1
>
> Stop in /home/miffo/php/main.
>
> *** Error code 1
>
> Stop in /home/miffo/php.
>
> And when configuring php says,
>
> checking whether to include 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_info_init in -lpng... (cached) yes
>
> checking for the location of libXpm... no
>
> If configure fails try --with-xpm-dir=<DIR>
>
> checking for freetype(2)... yes
>
> checking whether to include include FreeType 1.x support... no
>
> checking whether to include 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) yes
>
> 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
>
> checking for gdImageSetTile in -lgd... (cached) yes
>
> checking for gdImageSetBrush in -lgd... (cached) yes
>
> checking for gdImageStringTTF in -lgd... (cached) yes
>
> checking for gdImageStringFT in -lgd... (cached) yes
>
> checking for gdImageStringFTEx in -lgd... (cached) no
>
> checking for gdImageColorClosestHWB in -lgd... (cached) yes
>
> checking for gdImageColorResolve in -lgd... (cached) yes
>
> checking for gdImageGifCtx in -lgd... (cached) no
>
>
>
> Whats wrong ??
>
> /K
>
>
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi guys.
I am getting this nasty little error when I try to build the make file.
I am trying to install PHP 4.1.2 with RH 7.2
Not really sure what is going on here and any help is greatly appreciated.
Here is the error:
/usr/local/src/php-4.1.2/ext/gd/php_gd.h:33:16: gd.h: No such file or
directory
Thanks.
--- End Message ---