php-install Digest 23 Oct 2002 14:29:02 -0000 Issue 1083

Topics (messages 8885 through 8894):

Re: no variable passing
        8885 by: Jim Thome
        8886 by: Warren Mason

RedHat 8 PHP4 default install doesn't work
        8887 by: Brad
        8888 by: Rasmus Lerdorf

Problem installing PHP4 on Apache2 on windows XP HE
        8889 by: SAIDKZ.aol.com

Re: PHP install problem, engine not parsing php files
        8890 by: M. Ben Nicolas
        8893 by: Adam Voigt

urgent pls
        8891 by: sud kar

Re: php4.1.2 and java
        8892 by: Stephen Edmonds

Apache 2.0.43/PHP 4.2.3/Win XP Pro
        8894 by: Billy Kendall

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 ---
Read this:
http://www.php.net/manual/en/security.registerglobals.php

>>> Warren Mason <[EMAIL PROTECTED]> 10/22/02 20:19 PM >>>
I have a strange problem in that no variables are being passed between a
form and the called php page. It works with a cgi script but if the called
page is a .php one then the data isn't passed across. I asked the admin of
the system about it and he said to use $_POST to get the variable ( eg:
$Suburb = $_POST["Suburb"]; ). Now while this works most of the time it
doesn't work for all functions. Can anyone tell me what is missing from the
config that could cause this?

php-4.2.3 & apache_1.3.24

Cheers,

Warren




***************************************************************
This message is intended for the addressee named and 
may  contain confidential information. If you are not the 
intended recipient, please delete it and notify the sender. 
Views expressed in this message are those of the 
individual sender, and are not necessarily the views of the
Department of  Information Technology & Management.

This email message has been swept by MIMEsweeper 
for the presence of computer viruses.
***************************************************************


--- End Message ---
--- Begin Message ---
Hi Jim,

Thanks for that. Explains my problems very well. Looked in the manual but
was looking for the wrong thing.

cheers,

Warren

> -----Original Message-----
> From: Jim Thome [mailto:jthome@;fcgov.com]
> Sent: Wednesday, 23 October 2002 12:38 PM
> To: Warren Mason; [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] no variable passing
> 
> 
> Read this:
> http://www.php.net/manual/en/security.registerglobals.php
> 
> >>> Warren Mason <[EMAIL PROTECTED]> 10/22/02 20:19 PM >>>
> I have a strange problem in that no variables are being 
> passed between a
> form and the called php page. It works with a cgi script but 
> if the called
> page is a .php one then the data isn't passed across. I asked 
> the admin of
> the system about it and he said to use $_POST to get the 
> variable ( eg:
> $Suburb = $_POST["Suburb"]; ). Now while this works most of 
> the time it
> doesn't work for all functions. Can anyone tell me what is 
> missing from the
> config that could cause this?
> 
> php-4.2.3 & apache_1.3.24
> 
> Cheers,
> 
> Warren
> 
> 
> 
> 
> ***************************************************************
> This message is intended for the addressee named and 
> may  contain confidential information. If you are not the 
> intended recipient, please delete it and notify the sender. 
> Views expressed in this message are those of the 
> individual sender, and are not necessarily the views of the
> Department of  Information Technology & Management.
> 
> This email message has been swept by MIMEsweeper 
> for the presence of computer viruses.
> ***************************************************************
> 
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
I installed redhat 8.0 just now. It install php4 and apache in a default
config. It supposedly runs php as a DSO. Everything appears to match redhats
online manual and I get no errors in the logs. But, php isn't working.
Anyone have this problem. I know I am just missing a small piece of the
puzzle.


--- End Message ---
--- Begin Message ---
RH8 comes with Apache 2.0 by default.  Apache2+PHP is not a stable
combination.  Get rid of it and install Apache-1.3 instead.

-Rasmus

On Tue, 22 Oct 2002, Brad wrote:

> I installed redhat 8.0 just now. It install php4 and apache in a default
> config. It supposedly runs php as a DSO. Everything appears to match redhats
> online manual and I get no errors in the logs. But, php isn't working.
> Anyone have this problem. I know I am just missing a small piece of the
> puzzle.
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hi all,

I installed PHP 4 on apache 2 on windows xp HE when i add the LoadModule 
php4apache2.dll to apache conf file I can not start apache anymore. I tried 
copying  PHP4ts.dll to sapi directory and to anywhere that made sence to me 
but still did not work.


--- End Message ---
--- Begin Message ---
I am trying to do the install using the 'Static' method

What I really don't understand is why after the attempted configure, make,
and make install nothing shows up in /usr/bin/php
and I can't use php from the command line it's like nothing gets installed,
I wipe config.status too before I try to re-install

-----Original Message-----
From: John Coder [mailto:jcoder@;insightbb.com]
Sent: Tuesday, October 22, 2002 1:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] PHP install problem, engine not parsing php
files


On Mon, 2002-10-21 at 22:45, M. Ben Nicolas wrote:
> I have attempted to compile and install PHP using the 'Static' method
> described in the INSTALL file that comes  with php
>
> php configured with:
>
./configure --with-mysql --with-pgsql --with-apache=/usr/local/apache/apache
> _1.3.22/
>
> php.ini was copied to:
> /usr/local/lib/php.ini
>
> I have un-commented in my httpd.conf file:
> AddType application/x-httpd-php .php
>
> apache installed in
> /usr/local/apache
>
> apache configured with
>
./configure --prefix=/usr/local/apache/ --activate-module=src/modules/php4/l
> ibphp4.a
>
> Apache was already installed and working with mod perl, I just went into
> /usr/local/apache/apache_1.3.22  stopped the web server and ran the line
> above
> (and then make & make install of course)
>
> how can I check to make sure the libphp4 module was activated properly and
> that apache is using it?
> I see nothing about a php module when I do a httpd -l, it gives me this
> Compiled-in modules:
>   http_core.c
>   .
>   .
>   .
>   mod_perl.c
> suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
> do I need to install mod_php?  It doesn't say anything about doing this in
> the INSTALL file?

if I remeber correctly you need apache with mod.so also configured if
you ar doing it as a dynamic library. siince the response to you doing
httpd -l doesn't say anything about it being there that is probably the
culprit.

John Coder


--- End Message ---
--- Begin Message ---
If your trying to compile the PHP binary instead of building it
into PHP, you need to drop the --with-apache line and add something
like:

--prefix=/usr/local/php

Which will create an actual php executable in that directory, but
this will not make it work with Apache.

Adam Voigt
[EMAIL PROTECTED]

On Wed, 2002-10-23 at 02:04, M. Ben Nicolas wrote:
> I am trying to do the install using the 'Static' method
> 
> What I really don't understand is why after the attempted configure, make,
> and make install nothing shows up in /usr/bin/php
> and I can't use php from the command line it's like nothing gets installed,
> I wipe config.status too before I try to re-install
> 
> -----Original Message-----
> From: John Coder [mailto:jcoder@;insightbb.com]
> Sent: Tuesday, October 22, 2002 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] PHP install problem, engine not parsing php
> files
> 
> 
> On Mon, 2002-10-21 at 22:45, M. Ben Nicolas wrote:
> > I have attempted to compile and install PHP using the 'Static' method
> > described in the INSTALL file that comes  with php
> >
> > php configured with:
> >
> ./configure --with-mysql --with-pgsql --with-apache=/usr/local/apache/apache
> > _1.3.22/
> >
> > php.ini was copied to:
> > /usr/local/lib/php.ini
> >
> > I have un-commented in my httpd.conf file:
> > AddType application/x-httpd-php .php
> >
> > apache installed in
> > /usr/local/apache
> >
> > apache configured with
> >
> ./configure --prefix=/usr/local/apache/ --activate-module=src/modules/php4/l
> > ibphp4.a
> >
> > Apache was already installed and working with mod perl, I just went into
> > /usr/local/apache/apache_1.3.22  stopped the web server and ran the line
> > above
> > (and then make & make install of course)
> >
> > how can I check to make sure the libphp4 module was activated properly and
> > that apache is using it?
> > I see nothing about a php module when I do a httpd -l, it gives me this
> > Compiled-in modules:
> >   http_core.c
> >   .
> >   .
> >   .
> >   mod_perl.c
> > suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
> > do I need to install mod_php?  It doesn't say anything about doing this in
> > the INSTALL file?
> 
> if I remeber correctly you need apache with mod.so also configured if
> you ar doing it as a dynamic library. siince the response to you doing
> httpd -l doesn't say anything about it being there that is probably the
> culprit.
> 
> John Coder
> 
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--- End Message ---
--- Begin Message ---
Dear sir
i insatlled mysql,apache server as mentioned in php
book (author julie.c.meloni) but while installing the
php it displays a message (Attention there is some
error like asking me to view the debug.log). here ieam
enclosing the error log

please help me how to proceed. iam in desperate need
of this.



CONFIGURE:   './configure'
'--with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/'
'--with-apxs=/usr/local/apache_1.3.12/bin/apxs'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:   
CXX:        
CXXFLAGS:   
INCLUDES:    -I/usr/local/apache_1.3.12/include 
-I$(top_builddir)/Zend -I$(top_srcdir) 
-I/usr/local/mysql-3.22.32-pc-linux-gnu-i686//include
LDFLAGS:    
-Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
-L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
LIBS:       -lmysqlclient -lpng -lz -lgd -lresolv -lm
-ldl -lcrypt -lnsl  -lresolv
DLIBS:      
SAPI:       apache
PHP_RPATHS: 
/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
uname -a:   Linux linux1 2.4.18-3 #1 Thu Apr 18
07:37:53 EDT 2002 i686 unknown

gcc -o conftest -g -O2  
-Wl,-rpath,/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
-L/usr/local/mysql-3.22.32-pc-linux-gnu-i686//lib/mysql
conftest.c -lmysqlclient -lpng -lz -lgd -lresolv -lm
-ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status



__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
--- End Message ---
--- Begin Message ---
The problem is that your copy of PHP is looking in
d:\webroot\phpjavatest1.php for the dll

All you need to do is change one line of your PHP.ini, the line which tells
PHP where you store all your .dll . This is the 'extension_dir' setting

By default:
extension_dir = ./
That means the web root (IE: Where the php script is being run from). I keep
all my .dll for php in C:\server\PHP\extensions so my PHP.ini file has
extension_dir = C:\server\PHP\extension

That should sort out your problem. Just remember:
   a) The path is case sensative
   b) All your .dll for php have to be in the same place
   c) It is probably best not to put the dll in the OS main folder, as some
systems restrict access to the files. It also makes it harder to find (Hence
why my .dll are all in a subdirectory of my php folder!)

Stephen

----- Original Message -----
From: "rainer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 22, 2002 6:34 PM
Subject: [PHP-INST] php4.1.2 and java


> hi list,
> i have problems to install my php4.1.2 with the java extension!
> my system configuration is:
> - win 2k pro
> - apache 1.3.22 (path is "c:\apache")
> - php4.1.2 (path is "c:\php")
> - j2sdk1.4.0.02 (path is "c:\j2sdk1.4.0_02" and "c:\j2sdk1.4.0_02\jre")
>
> i have uncommented in php.ini "extension=php_java.dll" and even copied
this
> file to the "c:\winnt\system32" folder.
> further more i have added at the end pf "php.ini" following "java
section":
>
> [Java]
> java.class.path = "C:\PHP\java\php_java.jar"
> java.home = "C:\j2sdk1.4.0_02\jre"
> java.library = "C:\j2sdk1.4.0_02\jre\bin\server\jvm.dll"
> java.library.path = "C:\j2sdk1.4.0_02\jre\lib"
>
> after restarting the apache webserver i called up following little
> testscript (phpjavatest1.php):
>
> <?php
>  $system = new Java("java.lang.System");
>  print "Java version=".$system->getProperty("java.version")." <br>\n";
>  print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
>  print "OS=".$system->getProperty("os.name")." ".
>     $system->getProperty("os.version")." on ".
>     $system->getProperty("os.arch")." <br>\n";
>     $formatter = new Java("java.text.SimpleDateFormat",
>     "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
>  print $formatter->format(new Java("java.util.Date"))."\n";
> ?>
>
> instead of a correct printout i get following error message on my ie6
> browser:
> "Fatal error: java.lang.UnsatisfiedLinkError: no php_java in
> java.library.path in d:\webroot\phpjavatest1.php on line 2"
>
> so now i'm stucked and i have no idea anymore what to do. please will
> somebody help me with
> an understandable (for a newbee) installation information?
> maybe my php version does not assist java correct?
>
> thanks in advance
> raibru
> [EMAIL PROTECTED]
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
I have installed Apache 2.0.43 on Windows XP Professional SP1 and I am
trying to get PHP 4.2.3 to run.  I added the following lines to my
httpd.conf file:

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

but I am receiving the following errors when trying to restart Apache:

Cannot load C:/php/sapi/php4apache.dll into server: The specified module
could not be found.

Are there other changes that must be made to the httpd.conf to enable PHP?

____________
BILLY KENDALL
Cell: 214.334.3633
Fax: 703.935.7804
E-Mail: [EMAIL PROTECTED]
Web: http://www.billykendall.com




--- End Message ---

Reply via email to