php-install Digest 2 Jul 2002 20:21:45 -0000 Issue 912

Topics (messages 7573 through 7586):

GD2 compile
        7573 by: Balázs Csaba
        7583 by: Jason Reid
        7584 by: Matt Schroebel

Sendmail
        7574 by: Guilherme A. Mendes
        7575 by: Jonathan Thomas
        7580 by: Chris Hewitt

compile time LDAP include problems
        7576 by: Stewart Dean

Re: Win '98 & PHP 4.2 & Apache 1.3   (So close yet so far .......)
        7577 by: Julie Meloni

solaris7 and php4.2.1 problem with unix.h
        7578 by: Herve le Martret

Help...
        7579 by: David Schilling

reinstalling
        7581 by: Angelo Marcos Rigo
        7582 by: Matt Schroebel

problem installing php on apache 2 after unistalling apach 1.3
        7585 by: Desmond Lee
        7586 by: Jonathan Thomas

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 would like to find some inormation to build php4.2.1 with GD2. I have
downloaded the GD2 source (htp:/www.boutell.com/gd/), but there is not any
PHP specific .c or .h file. I cannot overwrite GD1 files in /php/ext/gd
directory.
Should I build an .SO or .A or .LIB file first?
Is there any simple mode (./configure or any other) to build this GD
version?

Thx,
Balázs Csaba

--- End Message ---
--- Begin Message ---
http://www.php.net/~rasmus/gd.html

----- Original Message -----
From: "Balázs Csaba" <[EMAIL PROTECTED]>
To: "PhpInstall (Elektronikus levelek)" <[EMAIL PROTECTED]>
Sent: Tuesday, July 02, 2002 3:56 AM
Subject: [PHP-INST] GD2 compile


> Hi!
>
> I would like to find some inormation to build php4.2.1 with GD2. I have
> downloaded the GD2 source (htp:/www.boutell.com/gd/), but there is not any
> PHP specific .c or .h file. I cannot overwrite GD1 files in /php/ext/gd
> directory.
> Should I build an .SO or .A or .LIB file first?
> Is there any simple mode (./configure or any other) to build this GD
> version?
>
> Thx,
> Balázs Csaba
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
>> ----- Original Message -----
>> From: "Balázs Csaba" <[EMAIL PROTECTED]>
>> To: "PhpInstall (Elektronikus levelek)" <[EMAIL PROTECTED]>
>> Sent: Tuesday, July 02, 2002 3:56 AM
>> Subject: [PHP-INST] GD2 compile
>>
>> I would like to find some inormation to build php4.2.1 with 
>> gD2. I have
>> downloaded the GD2 source (htp:/www.boutell.com/gd/), but there is not any
>> PHP specific .c or .h file. I cannot overwrite GD1 files in  /php/ext/gd
>> directory.
>> Should I build an .SO or .A or .LIB file first?
>> Is there any simple mode (./configure or any other) to build this GD version?

> -----Original Message-----
> From: Jason Reid [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 02, 2002 2:18 PM
> To: Balázs Csaba; PhpInstall (Elektronikus levelek)
> Subject: Re: [PHP-INST] GD2 compile
> 
> 
> http://www.php.net/~rasmus/gd.html
> 

Also: http://www.php-faq.com/gdinstall.php
--- End Message ---
--- Begin Message ---
Hi,

Finally the Apache and PHP are compiled together and now it's running. But
there are two problems:

1. The Sendmail Path is incorrect, so I changed it at php.ini but it didn't
work out...How can I change it ?

2. I have a PHP script that use a 'Refresh' to redirect the user to the
address like index.php?nID=index but the server start to redirect and don't
stop anymore...I think there's something disable at php compiler but I don't
have idea what may be.


Thanks
Guilherme A. Mendes

GM9 Technology
www.gm9.com.br



--- End Message ---
--- Begin Message ---
Good morning!

1:  With sendmail, usually (if you are using a page.php to use this binary)
the path is in your actual code.
Look for something like
$fd = popen("/usr/sbin/sendmail -t", "w");

As you can see my sendmail binary is in /usr/sbin
So you don't need to change this in the php.ini unless you're using another
method to send mail (no pun intended..heh).

2: without seeing your code I'm not sure what to recommend.  You may want to
try a simple

header("Location: index.php?nID=index\n"); exit;

If that fails then try it using the full path to your server

header("Location: www.foo.com/index.php?nID=index\n"); exit;

...and if THAT fails - make sure you have Register_Globals = ON  in your
php.ini file.

Ok, enough from me... :)
Thanks,
JT


-----Original Message-----
From: Guilherme A. Mendes [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 02, 2002 8:59 AM
To: PHP Install
Subject: [PHP-INST] Sendmail


Hi,

Finally the Apache and PHP are compiled together and now it's running. But
there are two problems:

1. The Sendmail Path is incorrect, so I changed it at php.ini but it didn't
work out...How can I change it ?

2. I have a PHP script that use a 'Refresh' to redirect the user to the
address like index.php?nID=index but the server start to redirect and don't
stop anymore...I think there's something disable at php compiler but I don't
have idea what may be.


Thanks
Guilherme A. Mendes

GM9 Technology
www.gm9.com.br




-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Guilherme,

I asume you are on unix (otherwise sendmail is irrelevant). Did you 
restart apache? Can you send mail as an ordinary user of the computer 
(that is, not via php)? If not, then you have a sendmail configuration 
problem.

HTH
Chris

Guilherme A. Mendes wrote:

>Hi,
>
>Finally the Apache and PHP are compiled together and now it's running. But
>there are two problems:
>
>1. The Sendmail Path is incorrect, so I changed it at php.ini but it didn't
>work out...How can I change it ?
>
>2. I have a PHP script that use a 'Refresh' to redirect the user to the
>address like index.php?nID=index but the server start to redirect and don't
>stop anymore...I think there's something disable at php compiler but I don't
>have idea what may be.
>
>
>Thanks
>Guilherme A. Mendes
>
>GM9 Technology
>www.gm9.com.br
>
>
>
>


--- End Message ---
--- Begin Message ---
I appear to be having problems with my PHP compile ldap linkage...

I am compiling PHP on a working AIX LDAP server that responds correctly to remote 
email address queries from mail clients and to PHP client requests from an 
existing PHP installation from a Sun machine.

The failure is detailed below, but apparently the PHP compile is looking for a 
symbolic that doesn't exist under IBM's LDAP implementation.

I can find next to nothing about the LDAP infrastructure that PHP is expecting; I 
can infer that PHP is expecting OpenLDAP (whatever that is) and perhaps is 
incompatible with IBM's LDAP?

Please help or give a pointer to someone that knows...I'm at a standstill on this...

The details ===============================================

First run through with my compile, I see two errors:

====1) In making zend....
"zend_extensions.c", line 33.16: 1506-068 (W) Operation between types "void*" and
"int" is not allowed.

== but everything completes and goes on....further on:
Target "all" is up to date.

=====2) but ldap fails
Making all in ldap
           /bin/sh /usr/php/php-4.2.1/libtool --silent --mode=compile cc  -I.
-I/usr/php/php-4.2.1/ext/ldap -I/usr/php/php-4.2.1/m
ain -I/usr/php/php-4.2.1 -I/usr/HTTPServer/include -I/usr/php/php-4.2.1/Zend
-I/usr/ldap/include -I/usr/php/php-4.2.1/ext/mysql
/libmysql -I/usr/php/php-4.2.1/ext/xml/expat  -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE
_EXPAT -DNO_DL_NEEDED -I/usr/php/php-4.2.1/TSRM -g -prefer-pic  -c ldap.c
"ldap.c", line 216.9: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1620.14: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1620.14: 1506-051 (S) Case expression must be a valid integral
constant.
"ldap.c", line 1715.14: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1715.14: 1506-051 (S) Case expression must be a valid integral
constant.
"ldap.c", line 1719.29: 1506-068 (W) Operation between types "void*" and "int" is
not allowed.
make: 1254-004 The error code from the last command is 1.
Stop.

So I look in /usr/ldap/include and grep LDAP_OPT_RESTART * and find nothing.

So I have perhaps a bigger question....what ldap is being expected in this build?
The LDAP configure options don't mention any qualification as to what ldap is
expected.
      "--with-ldap[=DIR] Include LDAP support. DIR is the LDAP base install 
directory."
My configure string was:
   ./configure --with-apxs=/usr/HTTPServer/bin/apxs --with-ldap=/usr/ldap
I have a working LDAP server....which serves emaill addresses to IMAP clients just
fine and to which our PHP developer can bind and work data from a previously setup 
Sun machine.

The environment I'm working to install PHP on is an IBM RS/6000 running AIX5.1L.
The webserving SW is IBM's rebranded (to HTTPServer) Apache V1.3.19.  The LDAP is
IBM's SecureWay....but that's just the name....it's actually slapd underneath
everything.  I would really, really, like to have IBM own the HTTP and Apache (be
responsible for generating updates, etc) and only own PHP....rather than compiling
everything and being responsible for all the updates, security, etc.

So, what gives?  Am I right in assuming that the compile is missing some includes
that another LDAP has?

Help.

===
Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York  12504
[EMAIL PROTECTED]  voice: 845-758-7475, fax: 845-758-7035



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
JLlec> I have Apache (1.3.26) running successfully on Windows '98 and have also
JLlec> installed PHP (4.2.1).  When I set up a .php file and open it in the web
JLlec> browser, the PHP screen flashes open and then closes immediately.

I am going to assume that you mean the DOS window.

This is a telltale sign that something in httpd.conf is not correct.
If you are using Windows shortcut links to start Apache, first use the
one that says something about test configuration.  Alternately, start
Apache from the DOS command prompt and your DOS box will stay open.

9.9 times out of 10, this problem is caused by not uncommenting
something like ServerName, or making other errors in httpd.conf.


- Julie

--> Julie Meloni
--> [EMAIL PROTECTED]
--> www.thickbook.com

Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20

--- End Message ---
--- Begin Message ---
Hello,

I tried to compile PHP 4.2.1 (static or dynamic) and I got the following
error:
zend.h:55: unix.h: No such file or directory


How can I fix this ?

thanks
Herve


--- End Message ---
--- Begin Message ---
My name is David Schilling.  I had a programmer in the Ukraine write me a
quote generating system for my business.  He wrote the app using .php to
generate the quotes.  He also installed all the apache components for my
server and everything worked great for many months.

Recently, my hard disk on my server crashed.  I had a backup of all my
website files and folders including the quoting system.

I followed instructions in the hotwire webmonkey website to load the php
system for apache.  I also compared that information with the http.conf file
that the ukrainian programmer had created on my server, and they were
identical, indicating that he probably also used similar instructions.

However, with apache running correctly, everything pointing to the correct
folders, etc...  the php does not run, and, i get the message that the file
cannot be found, even though it is definitely there and spelled correctly,
etc...

The website is www.valuepos.com:81/quotes/quotes.php and it should be
working properly but is not.

Unfortunately, I cannot reach the ukrainian programmer.  Any suggestions???

-David Schilling
[EMAIL PROTECTED]




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/02
--- End Message ---
--- Begin Message ---
        Hi 

        My name is Ângelo and i need to reinstall
        apache without loosing my actually php configuration.   
        how can it be done?

Ângelo Marcos Rigo
Webmaster Colégio Anchieta
http://www.colegioanchieta.g12.br

--- End Message ---
--- Begin Message ---
> From: Angelo Marcos Rigo
> Sent: Tuesday, July 02, 2002 10:46 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] reinstalling
> I need to reinstall apache without loosing my actually php
>  configuration.       how can it be done?

Unix answer: Depends on how you installed php.  If php is a DSO module (i.e. 
libphp4.so -- php built with --with-apxs=/path/to/apache/bin), then you can simply 
rebuild Apache.  If php is compiled into Apache, then:
1. save the config.status from apache somewhere
2. load your new apache sources
3. copy config.status into the apache source directory 
4. instead of using ./configure  use ./config.status
5. make, and make install. 

Apache will preserve your httpd.conf settings.
--- End Message ---
--- Begin Message ---
Hi there


I've installed apache 2 and now i'm trying to install php4.
I can't get php to work. When i install from the source i follow the 
instructions. But when i get to the 'make install' i get some errors as 
follows:

make[1]: Entering directory `/root/unzipped/php-4.2.1'
/root/unzipped/php-4.2.1/build/shtool mkdir -p "/usr/lib/apache" && apxs -S 
LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
apxs:Warning: /usr/sbin/httpd not found or not executable
apxs:Warning: Continuing anyway...
apxs:Warning: Sorry, no DSO support for Apache available
apxs:Warning: under your platform. Make sure the Apache
apxs:Warning: module mod_so is compiled into your server
apxs:Warning: binary `/usr/sbin/httpd'.
apxs:Warning: Continuing anyway...
apxs:Error: Config file /etc/httpd/conf/httpd.conf not found
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/root/unzipped/php-4.2.1'
make: *** [install-recursive] Error 1

I think that's why my php install isn't working. And in my httpd.conf file i 
have the following line:
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
but i don't have anything in my module directory. Is this because the 'make 
install' didn't work properly


I'm also thinking that from the error messages that php is getting confused 
as to where apache is installed. Apache 2 is installed in /usr/local/apache2 
the old apache install (which was installed when linux installed) was 
removed and it use to live in /etc/httpd/ which shows up in some of the 
warning messages above.


Any one have any ideas? Thanks a bunch, i'm totally lost.

Regards

Desmond





_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--- End Message ---
--- Begin Message ---
How are you compiling httpd?

Should be something like

./configure --with-apxs2=/path/to/apxs/binary
--with-config-file-path=/path/to/httpd.conf/directory
--enable-track-vars...blahblahblah...

If you are, and you're receiving this error - then it's possible that you
did not compile apache2 with DSO support (enable-module=so)...then you're
stuck actually compiling php INTO apache rather than as a module.


Thanks,
JT


-----Original Message-----
From: Desmond Lee [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 02, 2002 3:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] problem installing php on apache 2 after unistalling
apach 1.3


Hi there


I've installed apache 2 and now i'm trying to install php4.
I can't get php to work. When i install from the source i follow the 
instructions. But when i get to the 'make install' i get some errors as 
follows:

make[1]: Entering directory `/root/unzipped/php-4.2.1'
/root/unzipped/php-4.2.1/build/shtool mkdir -p "/usr/lib/apache" && apxs -S 
LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
apxs:Warning: /usr/sbin/httpd not found or not executable
apxs:Warning: Continuing anyway...
apxs:Warning: Sorry, no DSO support for Apache available
apxs:Warning: under your platform. Make sure the Apache
apxs:Warning: module mod_so is compiled into your server
apxs:Warning: binary `/usr/sbin/httpd'.
apxs:Warning: Continuing anyway...
apxs:Error: Config file /etc/httpd/conf/httpd.conf not found
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/root/unzipped/php-4.2.1'
make: *** [install-recursive] Error 1

I think that's why my php install isn't working. And in my httpd.conf file i

have the following line:
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
but i don't have anything in my module directory. Is this because the 'make 
install' didn't work properly


I'm also thinking that from the error messages that php is getting confused 
as to where apache is installed. Apache 2 is installed in /usr/local/apache2

the old apache install (which was installed when linux installed) was 
removed and it use to live in /etc/httpd/ which shows up in some of the 
warning messages above.


Any one have any ideas? Thanks a bunch, i'm totally lost.

Regards

Desmond





_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---

Reply via email to