php-install Digest 18 Jul 2002 21:38:28 -0000 Issue 938
Topics (messages 7802 through 7812):
cancel of <[EMAIL PROTECTED]>
7802 by: Azzkikr
Re: patches
7803 by: Moraes, Fabio
Re: apache issues with shared object
7804 by: Robert Abbate
Re: php 4.2.1 and apache 2.0.39 compile error
7805 by: Chris Santerre
7806 by: electroteque
7812 by: Azzkikr
Apache 2.0.39 and Php 4.2.1 (again.. probably)
7807 by: ELSE MAGNI VASSVIK ROVIK
Problem with download of PDF files
7808 by: Lehmann, Frank (GE51)
PHP.INI...Pleas help.
7809 by: Rodrigo San Martin
7810 by: toby -
php with ldap.
7811 by: SkyLeach
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 ---
cancel by original author
--- End Message ---
--- Begin Message ---
bash$ gzip -d file.patch.gz
bash$ patch -p0 -N < file.patch
---
Fabio Moraes
[EMAIL PROTECTED]
+55 21 3088 9548
-----Original Message-----
From: John Wulff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 9:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] patches
How do I install the patches downloadable from the php.net site?
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Oh, I forgot to mention, my configuration options:
./configure --with-apxs=/usr/sbin/apxs --disable-static --enable-pic --inclu
dedir=/usr/include --enable-inline-optimization --libdir=/usr/lib,/usr/local
/lib --with-config-file-path=/etc --enable-magic-quotes --enable-debugger --
enable-track-vars --enable-safe-mode --with-exec-dir=/usr/bin --with-regex=s
ystem --enable-sysvsem --with-mod_charset --with-mm --enable-trans-sid --ena
ble-yp --enable-ftp --with-xml --with-gettext --with-curl=/usr/bin/curl --e
nable-sockets --enable-shmop --with-png-dir=/usr/lib --with-tiff-dir=/usr/li
b --with-imap --with-imap-ssl --with-jpeg-dir=/usr/lib --with-pgsql --with-o
penssl --with-gd --with-gdbm --with-mhash --with-mcrypt --with-zlib-dir=/us
r/local/lib --with-mysql --with-java=/usr/java --enable-force-cgi-redirect
Robert Abbate <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> after configuring everything version 4.2.1, and I include the new shared
> object, I get this error:
>
> [root@performancehosting php-4.2.1]# apachectl configtest
> Checking configuration sanity for httpd: Syntax error on line 60 of
> /etc/httpd/conf/httpd.conf:
> Cannot load /etc/httpd/modules/libphp4.so into server:
> /etc/httpd/modules/libphp4.so: undefined symbol: gss_nt_service_name
> [FAILED]
> Checking configuration sanity for httpd-perl: Syntax error on line 56 of
> /etc/httpd/conf/httpd-perl.conf:
> Cannot load /etc/httpd/modules/libphp4.so into server:
> /etc/httpd/modules/libphp4.so: undefined symbol: gss_nt_service_name
> [FAILED]
>
> I'm using Mandrake Linux 8.2, installing php 4.2.1 and you can see the
older
> PHP configuration here:
>
> http://www.performancehosting.net/php.php
>
> Anyone seen something like this or have any ideas on what's up?
>
> Thanks
> Robert
>
>
--- End Message ---
--- Begin Message ---
I think I lucked out with the snapshot version I received. When I did it,
the php_functions.c problem went away. Good idea copying the newer file
over. For those of you who have had success, your old code may not work now
:(
Register_globals is defaulted to off instead of on for security reasons. Do
a google on it for more info. There are ways to turn it on, but it is better
to rewrite the code using the newer functions.
-----Original Message-----
From: dan rossi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 11:08 PM
To: leandro asnaghi-nicastro
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] php 4.2.1 and apache 2.0.39 compile error
keep trying took me 2 days unfortunatly they release it without even testing
it out first
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 !!
-----Original Message-----
From: leandro asnaghi-nicastro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 18 July 2002 12:52 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 18 Jul 02, at 11:38, thus spake
electroteque :
> sorry guys update here , i copied the php_functions.c from the
> sapi/apache2filter dir of the latest snapshot file
> http://snaps.php.net back into my php source sapi/apache2filter
Wow. I am now more confused than I was before.
I think I'll just go to Apache 1 and make my life a little easier at
this point. I've been trying to figure this one out for too long
without any luck.
leandro
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
after a few goes i got this to work , then added sablotron and is working
perfect, i already had a php.ini file and it didnt seem to overwrite it
cause my globals were still on :) , i have started using $_GET['bla']; but i
have alot of code like $blah from form variables :|
trouble i had with apache was i was compiling back into the source dir which
is ok with php so i mv the source to /usr/src then after its compiled it
altalled to /usr/local/etc/httpd as requested in my configure
-----Original Message-----
From: Chris Santerre [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 1:09 AM
To: 'dan rossi'; leandro asnaghi-nicastro
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] php 4.2.1 and apache 2.0.39 compile error
I think I lucked out with the snapshot version I received. When I did it,
the php_functions.c problem went away. Good idea copying the newer file
over. For those of you who have had success, your old code may not work now
:(
Register_globals is defaulted to off instead of on for security reasons. Do
a google on it for more info. There are ways to turn it on, but it is better
to rewrite the code using the newer functions.
-----Original Message-----
From: dan rossi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 11:08 PM
To: leandro asnaghi-nicastro
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-INST] php 4.2.1 and apache 2.0.39 compile error
keep trying took me 2 days unfortunatly they release it without even testing
it out first
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 !!
-----Original Message-----
From: leandro asnaghi-nicastro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 18 July 2002 12:52 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 18 Jul 02, at 11:38, thus spake
electroteque :
> sorry guys update here , i copied the php_functions.c from the
> sapi/apache2filter dir of the latest snapshot file
> http://snaps.php.net back into my php source sapi/apache2filter
Wow. I am now more confused than I was before.
I think I'll just go to Apache 1 and make my life a little easier at
this point. I've been trying to figure this one out for too long
without any luck.
leandro
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi there ,
i had the same prob for some days now.
But now it works...
I tell you my solution....
Download
apache 2.0.39
and
php 4.2.1
and
php4-STABLE-latest.tar.gz at
http://snaps.php.net/php4-STABLE-latest.tar.gz
cd to dl location of php4-STABLE-latest.tar.gz
tar -zxvf php4-STABLE-latest.tar.gz
cd to dl location of apache 2.0.39
tar -zxvf httpd-2.0.39.tar.gz
cd httpd-2.0.39
./configure --enable-so
wait till the bash
make
wait till the bash
make install
wait till the bash
so far its easy
this is a standard install into "/usr/local/apache2"
now lets do the php thing
cd to dl location of php 4.2.1
tar -zxvf php-4.2.1.tar.gz
copie all the content of the dir "php4-STABLE-latest" you have un tar t at
the begining to the dir php-4.2.1 overwright everything.
i'll hope you have mysql-3.23.51-pc-linux-gnu-i686 installed in
/usr/local/mysql
if so do the the following....
cd to php-4.2.1
./configure --prefix=/usr/local/apache2/php
--with-apxs2=/usr/local/apache2/bin/apxs
--with-config-file-path=/usr/local/apache2/php --with-mysql=/usr/local/mysql
wait till the bash
make
wait till the bash
make install
Ok when i dit this i finally had no probs at compiling these.
but you are still not there yet
when still in dir "php-4.2.1
copy php.ini-dist to /usr/local/lib/
at a line just like this
LoadModule php4_module modules/libphp4.so
to apache configuration file (/usr/local/apache2/conf/httpd.conf). This line
allows Apache to automatically load PHP module when Apache starts. If this
line is not added by php install then you can add it yourself. To add this
line yourself, search for a word LoadModule in /wwwroot/conf/httpd.conf file
and then add the above line on a new line. Note all lines that start with a
#
are comments and are ignored by Apache.
Like:
AddType application/x-httpd-php .phtml
will invoke PHP parser whenever any file with phtml extension (.phtml) is
accessed.
To add this line search for word AddType in httpd.conf file. There will be
line like this:
AddType application/x-tar .tgz
Below this line add (on a new line):
AddType application/x-httpd-php
Save this file and then start Apache like this
/usr/local/apache2/bin/apachectl start
If no error message is displayed and everything is fine, Apache is started
and message like httpd started is displayed and you are returned to shell
prompt.
Testing the PHP Installation
Now create a PHP file called info.php, using any editor like vi or emacs, in
the /wwwroot/htdocs directory and enter the three lines shown below in this
file. This directory is the Apache root directory. Apache publishes all
files
present in this directory to web users. This directory can be changed by
editing httpd.conf file and changing DocumentRoot value to some other
directory.
info.php
<?php
phpinfo();
?>
Save this file and then access this file using a web browser like lynx or
Netscape navigator by entering a url shown below:
http://localhost/info.php
If PHP was installed successfully a page will be displayed containing
detailed information about your PHP installation, Apache environment and
PHP
extensions loaded etc.
I hope you just said jippie....
it worked for me...
sincerrerly yours,
aZzKikr "king of the nOObs"
With thanks to Sukhwinder Singh
at
http://www.geocities.com/honey_jal/index.htm#before
--- End Message ---
--- Begin Message ---
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 ---
Dear Sirs,
my Apache/2.0.36(Win32) web server is running in combination with
PHP 4.2.1 as CGI on a Windows XP Professional machine.
Everything runs fine including some PHP software. Unfortunately
there is one exception.
I want to use PHP to provide PDF file download within my HTML code.
When I test the HTML and PHP code on my local PC (the Apache is
running as "localhost") I don't have any problem with the download
of PDF-files.
On the other side, when I access my remote machine (same
configuration than my local machine), the downloaded files are
destroyed.
The destroyed PDF files have the same size as the originals, but
the content is different.
I assume it is a question of how to process binary files.
Here the code of my "load.php" which is destined to provide the
download of PDF files:
<?php
$path=getenv("QUERY_STRING"); //
get the file path
$filename=preg_replace("/.+\//","",$path); //
separate the pure filename
header("Content-Length: ".filesize($path));
header("Content-Disposition: attachment;
filename=".$filename);
readfile($path);
?>
If you have any idea what's going wrong, please let me know.
I would appreciate any help.
Thank you in advance and best regards,
Frank Lehmann
--- End Message ---
--- Begin Message ---
Hi everyone.
I`m trying to install php-4_0_0-Win32 on my computer to work with
Apache_1_3_12_win32. In the installation directory I was supposed to rename
the php.ini-dist file to php.ini and move it to the windows directory where
i put all of my *.ini files. I have don exactly that but it doesn`t work.
When I look up the fil in the windows directory the fil name is php and the
type is "ini-dist-fil". What does this mean? And what kan i do to make it a
ini-fil.
I have to make a loggin program at work and it has to been done by monday.
Pleas help
Regards
Rodrigo San Martin.
--- End Message ---
--- Begin Message ---
Rodrigo
>I was supposed to rename the php.ini-dist file to php.ini and move it >to
>the windows directory where
>i put all of my *.ini files. I have don exactly that but it doesn`t >work.
>When I look up the fil in the windows directory the fil name is php >and
>the type is "ini-dist-fil". What does this mean? And what kan i do >to make
>it a ini-fil.
open file
save as
"php.ini" .... within double qouts !!!!
>I have to make a loggin program at work and it has to been done by monday.
well gooluck ....
u know where 2 call for help....
toby ....
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--- End Message ---
--- Begin Message ---
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.
--
-SL
[EMAIL PROTECTED]
www.skyleach.com
--- End Message ---