php-install Digest 19 Jul 2002 10:27:13 -0000 Issue 939

Topics (messages 7813 through 7827):

Re: Apache 2.0.39 and Php 4.2.1 (again.. probably)
        7813 by: Matt

Re: php with ldap.
        7814 by: Matt Wirges

Re: why i can't execute my php codes
        7815 by: Viraj Kalinga Abayarathna

Re: php 4.2.1 and apache 2.0.39 compile error
        7816 by: leandro asnaghi-nicastro
        7817 by: leandro asnaghi-nicastro
        7818 by: electroteque
        7819 by: electroteque
        7821 by: leandro asnaghi-nicastro
        7822 by: electroteque
        7823 by: leandro asnaghi-nicastro

mod_perl install - sorry offf topic
        7820 by: electroteque

Never mind.
        7824 by: leandro asnaghi-nicastro

MYSQL vs POSTGRESQL
        7825 by: J Fazenda

heh, a new problem!
        7826 by: leandro asnaghi-nicastro

Re: php install
        7827 by: toby -

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 ---
Download more headders in this group as sum one has put 2geather a tutorial
cant remember link

i fink theres one here www.phpgeek.net

Matt


"Else Magni Vassvik Rovik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've installed Apache 2.0.39 on Win 98 and it's up and running. I tried to
> install the exe file of php 4.2.1, but I got an error message saying that
it
> couldn't configure Apache..
> What is that all about??
> I also tried to install the zip file, but I'm a newbie so you can probably
> imagine it going down the drain.
> I just can't find any information on how to install Php on Apache, can
> anyone help??
>
> -Kjetil
>
>


--- End Message ---
--- Begin Message ---
On Thursday 18 July 2002 11:41, SkyLeach wrote:
> I have been working on this for a couple of days now and I am getting
> nowhere.
>
> Has anyone here gotten PHP to work with OpenLDAP version 2.1?  I keep
> getting the following error:
>
> [root@the-anchor php-4.2.1]# /www/bin/apachectl configtestssl
> Syntax error on line 209 of /www/conf/httpd.conf:
> Cannot load /www/libexec/libphp4.so into server: /usr/lib/libldap.so.2:
> undefined symbol: ber_dupbv
>
> I have the following installed (plus other unrelated options):
> apache_1.3.26
> php-4.2.1
> mod_ssl-2.8.10-1.3.26
> openldap-2.1.3
>
> As you can see from the error, I have no trouble compiling it or getting it
> ready to load, it just won't load because of the ldap problem.  PHP works
> fine without ldap, but we are moving to LDAP authentication with OpenLDAP
> and I need to get this working.
>
> Thanks all for your help.

Make sure that your php module was linked against liblber as well as the appropriate 
libldap2.so library.
To check, use ldd.

For example:
morpork:/usr/local/apache/libexec# ldd libphp4.so  | grep -E "liblber|libldap"
        libldap.so.2 => /usr/local/ldap/lib/libldap.so.2 (0x40177000)
        liblber.so.2 => /usr/local/ldap/lib/liblber.so.2 (0x4019e000)

If I remember correctly, liblber is included with the ldap libraries, make sure that 
you tell php where they are
for example:
        ./configure --with-ldap=/path/to/open/ldap
-matt
--- End Message ---
--- Begin Message ---
Regarding your php code, did you configure the httpd conf file to
handle PHP on your server? If not, this is the reson, your server
still do not know how to handle the php scripts..

look for these entries in your httpd.conf file,
if not existed add them according to your paths.

        Action application/x-httpd-php /php/php.exe

        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps

        ScriptAlias /php/ "C:/php/"

No, if you have configure the apache properly(with default
settings) you can put the php code in any folder within the
root folder of the web server.

Server name, domain name and administrator e-mail address
are specific to your server. When a user get an error page of
you server, it will display these information to contact you. but
the mainthing is to identify the server on a network, this domain
name and server name are important. If you are using your
apache server for local test purposes, you have to use "127.0.0.1"
or "localhost" as your server name. When you install apache on
your system the instalation programme ask these values, 'cos they
are required inorder to configures httpd.conf file. If you want you can
change values manually.

regards
Happy Coding

V. K. Abayarathna  - ++  www.CeyNet.net - Low Cost web hosting, designing
services..++











-----Original Message-----
From: murtaza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 9:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] why i can't execute my php codes


I have a problem!
I cant make work PHP with Apache .
php is : php 4.2.1
apache is : Apache Server version 1.3.23
the installation is successful , but when i'm tring to run the php code i'm
not able to see any thing in the browser except the title in the php code
"Hello World".
I made the php code in dreamweaver 4 and saved it in the C:\Program
Files\Apache Group\Apache\htdocs and when i tried to execute the code in the
browser by giving http://192.168.0.170/php_test.php i'm not able to see any
thing in the browser except the title.
I also want to know that every thime i have to execute a php code i've to
save it in the C:\Program Files\Apache Group\Apache\htdocs, if yes the nis
ther any way out that i can execute my php code saved in any folder and any
drive on my hard disk with out saving it to C:\Program Files\Apache
Group\Apache\htdocs.
 and wht abot those information which i provided during the installation of
apache server info like :
Network Domain : Kuwaitnet
Server Name : Murtaza
Administrator's email add : [EMAIL PROTECTED]
wht r these information,
pls help , regarding this.

best regards
murtaza

--- End Message ---
--- Begin Message ---
On This Day, in the Year of Our Lord 18 Jul 02, at 13:08, thus spake dan rossi :

>     keep trying took me 2 days unfortunatly they release it without
>     even testing it out first 

That sounds a little stupid to me, or am I alone feeling this way?
 
>     its a simple procedure download the php-latest files extract it
>     go into sapi/apache2filter and then cp php_functions.c
>     /usr/local/etc/php/sapi/apache2filter for example then before
>     recompile php , rm config.cache , rm config.status, apache needs
>     the --enable-so on the configure first !! 

I have Apache2 configured all properly.  I shall give it a shot.  Do I 
just replace php_functions.c and not do the "patching" suggested in 
the message that was posted here previously?

Anyway, going to try now.  I'll let you know how it goes.

Argh.  I just wish I had this much time to spare for this thing.

leandro
---
leandro asnaghi-nicastro - editor in chief 
capital of nasty - http://con.ca/ 
[EMAIL PROTECTED] - icq uin: 889318 
My other signature is a Mercedes.
--- End Message ---
--- Begin Message ---
On This Day, in the Year of Our Lord 18 Jul 02, at 13:08, thus spake dan rossi :
 
>     its a simple procedure download the php-latest 

Which I did.

>     files extract it 

Done.

>     go into sapi/apache2filter 

Yup.  The php_functions.c file is there.

>     and then cp php_functions.c
>     /usr/local/etc/php/sapi/apache2filter 

Now, here is the problem.  There actually isn't that directory on my 
machine.  I checked all the other dirs where PHP is installed and I 
can't find said directory.

>     for example then before recompile php , rm config.cache , rm
>     config.status, apache needs the --enable-so on the configure
>     first !! 

Heh, well, I'll have to get there first ;)

leandro
___ 
leandro asnaghi-nicastro - editor in chief 
capital of nasty - http://con.ca/ 
[EMAIL PROTECTED] - icq uin: 889318  
 
Before Xerox, five carbons were the maximum extension of anybody's ego.
--- End Message ---
--- Begin Message ---
i tried that patch to the php_functions.c file as suggested it didnt work,
it didnt like that include file there , so i went to the snapshot version
copied over the php_functions.c file from there which was already patched
and fixed , and everything compiled fine and is running i sent my configure
lines a bit ago should give some indication how to set it up , its wierd
apache 2 requires and ip to be binded to a listen port, not good for dynamic
ip's like i am on at home, dynamic dns dont work either it needs straight
ip's

-----Original Message-----
From: leandro asnaghi-nicastro [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 11:03 AM
To: dan rossi
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] php 4.2.1 and apache 2.0.39 compile error


On This Day, in the Year of Our Lord 18 Jul 02, at 13:08, thus spake dan
rossi :

>     keep trying took me 2 days unfortunatly they release it without
>     even testing it out first

That sounds a little stupid to me, or am I alone feeling this way?

>     its a simple procedure download the php-latest files extract it
>     go into sapi/apache2filter and then cp php_functions.c
>     /usr/local/etc/php/sapi/apache2filter for example then before
>     recompile php , rm config.cache , rm config.status, apache needs
>     the --enable-so on the configure first !!

I have Apache2 configured all properly.  I shall give it a shot.  Do I
just replace php_functions.c and not do the "patching" suggested in
the message that was posted here previously?

Anyway, going to try now.  I'll let you know how it goes.

Argh.  I just wish I had this much time to spare for this thing.

leandro
---
leandro asnaghi-nicastro - editor in chief
capital of nasty - http://con.ca/
[EMAIL PROTECTED] - icq uin: 889318
My other signature is a Mercedes.

--- End Message ---
--- Begin Message ---
" for example" whereever your original php source is , i put it in
/usr/local/etc then symlink it back to php for easy reference, and i keep
all my sources there so if it craps out i can symlink back to and older
version, unfortunatly apache 2 doesnt like to be compiled into itself, so i
put that in /usr/src and then in  the configure like prefix it back to
/usr/local/etc/httpd

-----Original Message-----
From: leandro asnaghi-nicastro [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 11:33 AM
To: dan rossi
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] php 4.2.1 and apache 2.0.39 compile error


On This Day, in the Year of Our Lord 18 Jul 02, at 13:08, thus spake dan
rossi :

>     its a simple procedure download the php-latest

Which I did.

>     files extract it

Done.

>     go into sapi/apache2filter

Yup.  The php_functions.c file is there.

>     and then cp php_functions.c
>     /usr/local/etc/php/sapi/apache2filter

Now, here is the problem.  There actually isn't that directory on my
machine.  I checked all the other dirs where PHP is installed and I
can't find said directory.

>     for example then before recompile php , rm config.cache , rm
>     config.status, apache needs the --enable-so on the configure
>     first !!

Heh, well, I'll have to get there first ;)

leandro
___
leandro asnaghi-nicastro - editor in chief
capital of nasty - http://con.ca/
[EMAIL PROTECTED] - icq uin: 889318

Before Xerox, five carbons were the maximum extension of anybody's ego.

--- End Message ---
--- Begin Message ---
On This Day, in the Year of Our Lord 19 Jul 02, at 12:32, thus spake electroteque :

>     " for example" whereever your original php source is , i put it
>     in /usr/local/etc then symlink it back to php for easy
>     reference, and i keep all my sources there so if it craps out i
>     can symlink back to and older version, unfortunatly apache 2
>     doesnt like to be compiled into itself, so i put that in
>     /usr/src and then in  the configure like prefix it back to
>     /usr/local/etc/httpd 

Well, I can't deny that I am tired, frustrated and confused at the 
moment.  Where do I fetch the latest stable of PHP? I  went to PHP.NET 
looking in their downloads section, but as far as I can tell, I can 
see just the current release.

Sorry, I'm either dumb, or tired, or a combination of both right now.

leandro
--- End Message ---
--- Begin Message ---
just get the 4.1.2 from there
http://www.php.net/do_download.php?download_file=php-4.2.1.tar.gz, then goto
http://snaps.php.net then get http://snaps.php.net/php4-latest.tar.gz <--
this is  the snapshot file i was talking about, which u transfer the
php_functions.c file over from to the original source , it took me 2 days to
figure all this out, the old days install took me an hour or even less , 2
days is rediculous

-----Original Message-----
From: leandro asnaghi-nicastro [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 12:41 PM
To: electroteque
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] php 4.2.1 and apache 2.0.39 compile error


On This Day, in the Year of Our Lord 19 Jul 02, at 12:32, thus spake
electroteque :

>     " for example" whereever your original php source is , i put it
>     in /usr/local/etc then symlink it back to php for easy
>     reference, and i keep all my sources there so if it craps out i
>     can symlink back to and older version, unfortunatly apache 2
>     doesnt like to be compiled into itself, so i put that in
>     /usr/src and then in  the configure like prefix it back to
>     /usr/local/etc/httpd

Well, I can't deny that I am tired, frustrated and confused at the
moment.  Where do I fetch the latest stable of PHP? I  went to PHP.NET
looking in their downloads section, but as far as I can tell, I can
see just the current release.

Sorry, I'm either dumb, or tired, or a combination of both right now.

leandro

--- End Message ---
--- Begin Message ---
On This Day, in the Year of Our Lord 19 Jul 02, at 12:48, thus spake electroteque :

>     just get the 4.1.2 from there
>     http://www.php.net/do_download.php?download_file=php-4.2.1.tar.g
>     z, then goto http://snaps.php.net then get
>     http://snaps.php.net/php4-latest.tar.gz <-- this is  the
>     snapshot file i was talking about, which u transfer the
>     php_functions.c file over from to the original source , it took
>     me 2 days to figure all this out, the old days install took me
>     an hour or even less , 2 days is rediculous 

Allright.  Thank you.
I'm downloading PHP-latest as we speak.
Last dumb question: where do I find phpfunctions?  I had it and now I 
lost it and I'm wandering aimlessly through directories, probably 
passing by it.  I need sleep.  Or Jolt.

leandro
___ 
leandro asnaghi-nicastro - editor in chief 
capital of nasty - http://con.ca/ 
[EMAIL PROTECTED] - icq uin: 889318  
 
Before Xerox, five carbons were the maximum extension of anybody's ego.
--- End Message ---
--- Begin Message ---
hi where could i find a howto to get mod_perl working in apache ?
--- End Message ---
--- Begin Message ---
I remembered right after I sent that message.

/php-4.2.1/sapi/apache2filter

Duh.
--- End Message ---
--- Begin Message ---
Hi Scott,

I do understand your comment very well. I always do a bit of reading
before doing anything (but not always enough).
I believe Postgre is better in several ways. I read about the
differences between the 2 SQL's and the "ACID" test. I also understand
the difference in the way the two handle transactions.
I selected MySQL only because the first use I have only needs a
relatively small and not very critical database and I already have an
application  to start with that requires PHP and MySQL.
This is all part of a learning curve. I'm planning to dump M$ Windoze
completely from my small company before end of this year. First, I'll
get something in place quickly and later I go back and improve.

Thanks again for your advice, Joe


J Fazenda wrote:
> I've been through installing/configuring Linux, KDE, FTP (had small
> problem I fixed myself), PHP (major screw-up) and next step will be
> MySQL.

Cool. Glad to hear you've had so much success in so little time.

I'd recommend PostgreSQL over MySQL. People say that it is more
difficult to install, but I don't think that's fair at all. And it's a
much more solid database - it comes much, much closer to the definition
of relational database used by the guy who invented the term. (Do a
search for Codd's twelve rules if you want more information.) That
probably won't mean much to you for a while, but it doesn't interfere
(another common misconception - that having a correct structure makes it

harder to use or significantly less efficient) and will eventually help
you create a much more solid system.

> Many thanks for you assistance and for your time, JF

Glad to help.

Scott

--- End Message ---
--- Begin Message ---
So I did what was suggested, I grabbed the php_fuctions.c or whatever 
it was called off of php-stable, reconfigured, make clean, make, make 
install and this is what I end up with:

Making install in .
make[1]: Entering directory `/root/php-4.2.1'
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/root/php-4.2.1'
make: *** [install-recursive] Error 1

At least now it gets past the problem during make...

Sigh.

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

try replacing double qoutes with single qoutes thru ur form
:S ....

might work .....

good luck....

toby ....



_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--- End Message ---

Reply via email to