php-install Digest 21 Mar 2003 01:25:09 -0000 Issue 1298
Topics (messages 10368 through 10377):
PHP not working
10368 by: EbayerLOL.aol.com
Problems with instalation
10369 by: Ale¹ Tumpach
PHP on Apache on WinXP
10370 by: Wade
10377 by: Beverly Steiner
php and forms
10371 by: b b
10372 by: Tiago N. Sampaio
10373 by: b b
10374 by: Stephen
10375 by: Stembridge, Michael
10376 by: Stembridge, Michael
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 ---
I am running a red hat 8.0 system with Apache 2.0. PHP doesnt seem to be operating.
I checked the config files and the httpd. conf files reads:
:### Section 1: Global Environment
:.
:.
:#
:# Load config files from the config directory "/etc/httpd/conf.d".
:#
:Include conf.d/*.conf
:.
:..
:and in conf.d there is a php.conf that reads:
:
:#
:# PHP is an HTML-embedded scripting language which attempts to make it
:# easy for developers to write dynamically generated webpages.
:#
:
:LoadModule php4_module modules/libphp4.so
:
:#
:# Cause the PHP interpreter handle files with a .php extension.
:#
:<Files *.php>
: SetOutputFilter PHP
: SetInputFilter PHP
: LimitRequestBody 524288
:</Files>
:
:#
:# Add index.php to the list of files that will be served as directory
:# indexes.
:#
:DirectoryIndex index.php
:
:
:I found libphp4.so in /usr/lib/httpd/modules...so what the heck is the :problem.
Apache is running just fine and dishing out HTML files it is just that PHP is not
being processed. I did a ps -ef and PHP doesn't seem to be running.
Thanks
--- End Message ---
--- Begin Message ---
Dear madames and sirs,
I have problem with a php interpreter on my computer, running on Windows 98, using
Personal web server for testing and developing purposes, I have PHP 4.3. 1 Everytime i
try
to access to a php file I get a "Security Alert" - the PHP cannot be accessed
directly. I found
solution of this trouble in install.txt and set up cgi_force_redirect = 0. But I´m
afraid this action did not help
and the same problem takes still. I used windows instaler and php.ini is located in
C:\Windows directory.
Please could you help me and send instruction to make PWS works properly with php
files. ( In W2k enviroment
php works without problems)
Thank you for your attention, yours sincerely Aleš Tumpach, Czech
republic
--- End Message ---
--- Begin Message ---
Okay, I wrote in the other day and so far have not solved my problem, so
here is some more info.
I installed Apache 1.3 with PHP 4.3 on my Windows XP system. Apache is
installed in the default C:\Program Files\Apache Group\Apache directory.
PHP is installed to C:\PHP. My root folder for my web files is C:\HTTP.
I have been using IE6 as my web browser. When I try to access any PHP files
on my machine, it attempts to download them instead of interpreting. I
downloaded Opera to see if it was a IE6 problem. Opera does the same thing.
php4ts.dll, php4ts.lib, php.exe, php4apache.dll are all in the directory
C:\php\
Here are the changes I made to various files.
***c:\program files\apache group\apache\conf\httpd.conf***
# Code added by Wade to add PHP support to apache.
LoadModule php4_module c:/php/php4apache.dll
###AddModule mod_php4.c ### Removed this line because it was saying that it
was already added.
AddType application/x-httpd-php .php .phtml
# End Code Added by Wade
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:\HTTP"
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:\HTTP">
***c:\windows\php.ini***
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root = "c:\http"
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php\extensions"
--- End Message ---
--- Begin Message ---
Can you view a plain HTML file? Perhaps it's not working because php4ts.dll
and php4apache.dll should be in the c:\Windows\system32 folder.
----------------------
Beverly Steiner
[EMAIL PROTECTED]
-----Original Message-----
From: Wade [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 11:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] PHP on Apache on WinXP
Okay, I wrote in the other day and so far have not solved my problem, so
here is some more info.
I installed Apache 1.3 with PHP 4.3 on my Windows XP system. Apache is
installed in the default C:\Program Files\Apache Group\Apache directory.
PHP is installed to C:\PHP. My root folder for my web files is C:\HTTP.
I have been using IE6 as my web browser. When I try to access any PHP files
on my machine, it attempts to download them instead of interpreting. I
downloaded Opera to see if it was a IE6 problem. Opera does the same thing.
php4ts.dll, php4ts.lib, php.exe, php4apache.dll are all in the directory
C:\php\
Here are the changes I made to various files.
***c:\program files\apache group\apache\conf\httpd.conf***
# Code added by Wade to add PHP support to apache.
LoadModule php4_module c:/php/php4apache.dll
###AddModule mod_php4.c ### Removed this line because it was saying that it
was already added.
AddType application/x-httpd-php .php .phtml
# End Code Added by Wade
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:\HTTP"
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:\HTTP">
***c:\windows\php.ini***
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root = "c:\http"
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php\extensions"
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
This could be a silly mistake or it could be a sign
of configuratin problems. Simply put, my submitted
form variables are not reaching the recieving end:
A form:
<form method=post action="testForm.php">
<input type="text" name="testVar">
<input type="submit" name="submit" value="submit">
</form>
A recieving file testForm.php:
<html>
<body>
<?php
printf("<br>testVar is : %s", $testVar);
?>
</body>
</html>
When entering value like testtest in the form element
I still get the following in the recieving file:
testVar is :
i.e. the form variable is not submitted or not
recieved. I also tried doing it through the url
.../testForm.php?testVar=whatever and still the
testVar is empty.
Is there a configuration problem I should be aware of
as clearly it is not a code issue?
Thanks,
b.
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
--- End Message ---
--- Begin Message ---
Whats´s your php version?
In newer versions of php, register_globals is off by default, or you
enable it on php.ini
or you use $_GET["Variable_name"] in your case $_GET["TestVar"] (This
can be $_POST["VAR"])
Ok...
test this and say the result...
Thanks...
PS: Sorry my poor english...
Hugs
Tiago N. Sampaio
Departamento Internet
www.planae.com.br
(14) 224-3066
Bauru/São Paulo/Brazil
----- Original Message -----
From: "b b" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 5:19 PM
Subject: [PHP-INST] php and forms
>
> Hi,
> This could be a silly mistake or it could be a sign
> of configuratin problems. Simply put, my submitted
> form variables are not reaching the recieving end:
>
> A form:
>
> <form method=post action="testForm.php">
> <input type="text" name="testVar">
> <input type="submit" name="submit" value="submit">
>
> </form>
>
> A recieving file testForm.php:
> <html>
> <body>
> <?php
> printf("<br>testVar is : %s", $testVar);
> ?>
> </body>
> </html>
>
>
> When entering value like testtest in the form element
> I still get the following in the recieving file:
>
> testVar is :
>
>
> i.e. the form variable is not submitted or not
> recieved. I also tried doing it through the url
> .../testForm.php?testVar=whatever and still the
> testVar is empty.
>
> Is there a configuration problem I should be aware of
> as clearly it is not a code issue?
>
> Thanks,
> b.
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
You are right Tiago. When I did the _POST ... it
finally saw it. So where do I find and set
register_globals. In the Apache config files?
--- "Tiago N. Sampaio" <[EMAIL PROTECTED]> wrote:
> Whats´s your php version?
>
> In newer versions of php, register_globals is off
> by default, or you
> enable it on php.ini
> or you use $_GET["Variable_name"] in your case
> $_GET["TestVar"] (This
> can be $_POST["VAR"])
>
> Ok...
> test this and say the result...
>
>
> Thanks...
>
> PS: Sorry my poor english...
>
> Hugs
> Tiago N. Sampaio
> Departamento Internet
> www.planae.com.br
> (14) 224-3066
> Bauru/São Paulo/Brazil
>
> ----- Original Message -----
> From: "b b" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 20, 2003 5:19 PM
> Subject: [PHP-INST] php and forms
>
>
> >
> > Hi,
> > This could be a silly mistake or it could be a
> sign
> > of configuratin problems. Simply put, my submitted
> > form variables are not reaching the recieving end:
> >
> > A form:
> >
> > <form method=post action="testForm.php">
> > <input type="text" name="testVar">
> > <input type="submit" name="submit"
> value="submit">
> >
> > </form>
> >
> > A recieving file testForm.php:
> > <html>
> > <body>
> > <?php
> > printf("<br>testVar is : %s", $testVar);
> > ?>
> > </body>
> > </html>
> >
> >
> > When entering value like testtest in the form
> element
> > I still get the following in the recieving file:
> >
> > testVar is :
> >
> >
> > i.e. the form variable is not submitted or not
> > recieved. I also tried doing it through the url
> > .../testForm.php?testVar=whatever and still the
> > testVar is empty.
> >
> > Is there a configuration problem I should be
> aware of
> > as clearly it is not a code issue?
> >
> > Thanks,
> > b.
> >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Platinum - Watch CBS' NCAA March Madness,
> live on your desktop!
> > http://platinum.yahoo.com
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
--- End Message ---
--- Begin Message ---
Its not in the Apache config file, its in the php.ini file normally found in
your windows directory
----- Original Message -----
From: "b b" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 9:13 PM
Subject: Re: [PHP-INST] php and forms
>
> You are right Tiago. When I did the _POST ... it
> finally saw it. So where do I find and set
> register_globals. In the Apache config files?
>
>
>
>
> --- "Tiago N. Sampaio" <[EMAIL PROTECTED]> wrote:
> > Whats´s your php version?
> >
> > In newer versions of php, register_globals is off
> > by default, or you
> > enable it on php.ini
> > or you use $_GET["Variable_name"] in your case
> > $_GET["TestVar"] (This
> > can be $_POST["VAR"])
> >
> > Ok...
> > test this and say the result...
> >
> >
> > Thanks...
> >
> > PS: Sorry my poor english...
> >
> > Hugs
> > Tiago N. Sampaio
> > Departamento Internet
> > www.planae.com.br
> > (14) 224-3066
> > Bauru/São Paulo/Brazil
> >
> > ----- Original Message -----
> > From: "b b" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 20, 2003 5:19 PM
> > Subject: [PHP-INST] php and forms
> >
> >
> > >
> > > Hi,
> > > This could be a silly mistake or it could be a
> > sign
> > > of configuratin problems. Simply put, my submitted
> > > form variables are not reaching the recieving end:
> > >
> > > A form:
> > >
> > > <form method=post action="testForm.php">
> > > <input type="text" name="testVar">
> > > <input type="submit" name="submit"
> > value="submit">
> > >
> > > </form>
> > >
> > > A recieving file testForm.php:
> > > <html>
> > > <body>
> > > <?php
> > > printf("<br>testVar is : %s", $testVar);
> > > ?>
> > > </body>
> > > </html>
> > >
> > >
> > > When entering value like testtest in the form
> > element
> > > I still get the following in the recieving file:
> > >
> > > testVar is :
> > >
> > >
> > > i.e. the form variable is not submitted or not
> > > recieved. I also tried doing it through the url
> > > .../testForm.php?testVar=whatever and still the
> > > testVar is empty.
> > >
> > > Is there a configuration problem I should be
> > aware of
> > > as clearly it is not a code issue?
> > >
> > > Thanks,
> > > b.
> > >
> > >
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Platinum - Watch CBS' NCAA March Madness,
> > live on your desktop!
> > > http://platinum.yahoo.com
> > >
> > > --
> > > PHP Install Mailing List (http://www.php.net/)
> > > To unsubscribe, visit:
> > http://www.php.net/unsub.php
> > >
> > >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
register_globals is set in php.ini.
You'll need to restart apache in order for the changes to take effect.
(fyi... register_globals is not affected by ini_set().)
Michael
> -----Original Message-----
> From: b b [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 20, 2003 4:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] php and forms
>
>
>
> You are right Tiago. When I did the _POST ... it
> finally saw it. So where do I find and set
> register_globals. In the Apache config files?
>
>
>
>
> --- "Tiago N. Sampaio" <[EMAIL PROTECTED]> wrote:
> > Whats´s your php version?
> >
> > In newer versions of php, register_globals is off
> > by default, or you
> > enable it on php.ini
> > or you use $_GET["Variable_name"] in your case
> > $_GET["TestVar"] (This
> > can be $_POST["VAR"])
> >
> > Ok...
> > test this and say the result...
> >
> >
> > Thanks...
> >
> > PS: Sorry my poor english...
> >
> > Hugs
> > Tiago N. Sampaio
> > Departamento Internet
> > www.planae.com.br
> > (14) 224-3066
> > Bauru/São Paulo/Brazil
> >
> > ----- Original Message -----
> > From: "b b" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 20, 2003 5:19 PM
> > Subject: [PHP-INST] php and forms
> >
> >
> > >
> > > Hi,
> > > This could be a silly mistake or it could be a
> > sign
> > > of configuratin problems. Simply put, my submitted
> > > form variables are not reaching the recieving end:
> > >
> > > A form:
> > >
> > > <form method=post action="testForm.php">
> > > <input type="text" name="testVar">
> > > <input type="submit" name="submit"
> > value="submit">
> > >
> > > </form>
> > >
> > > A recieving file testForm.php:
> > > <html>
> > > <body>
> > > <?php
> > > printf("<br>testVar is : %s", $testVar);
> > > ?>
> > > </body>
> > > </html>
> > >
> > >
> > > When entering value like testtest in the form
> > element
> > > I still get the following in the recieving file:
> > >
> > > testVar is :
> > >
> > >
> > > i.e. the form variable is not submitted or not
> > > recieved. I also tried doing it through the url
> > > .../testForm.php?testVar=whatever and still the
> > > testVar is empty.
> > >
> > > Is there a configuration problem I should be
> > aware of
> > > as clearly it is not a code issue?
> > >
> > > Thanks,
> > > b.
> > >
> > >
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Platinum - Watch CBS' NCAA March Madness,
> > live on your desktop!
> > > http://platinum.yahoo.com
> > >
> > > --
> > > PHP Install Mailing List (http://www.php.net/)
> > > To unsubscribe, visit:
> > http://www.php.net/unsub.php
> > >
> > >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Create a document in your html root directory called info.php.
Make it contain the following (no html is needed here, just the three lines
below) :
<?php
echo phpinfo();
?>
Now access this file in a browswer and look at the top for Configuration
File Path. That will be where php is expecting to see the php.ini file.
Good luck,
Michael
PS Your hotmail account is bouncing mail due to disk space usage.
> -----Original Message-----
> From: b b [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 20, 2003 4:22 PM
> To: Stembridge, Michael
> Subject: RE: [PHP-INST] php and forms
>
>
>
> Hi,
> I am using Linux. Where would I find it there?
> Cheers,
> b.
> --- "Stembridge, Michael"
> <[EMAIL PROTECTED]> wrote:
> > register_globals is set in php.ini.
> >
> > You'll need to restart apache in order for the
> > changes to take effect.
> >
> > (fyi... register_globals is not affected by
> > ini_set().)
> >
> > Michael
> >
> >
> > > -----Original Message-----
> > > From: b b [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, March 20, 2003 4:14 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [PHP-INST] php and forms
> > >
> > >
> > >
> > > You are right Tiago. When I did the _POST ... it
> > > finally saw it. So where do I find and set
> > > register_globals. In the Apache config files?
> > >
> > >
> > >
> > >
> > > --- "Tiago N. Sampaio" <[EMAIL PROTECTED]> wrote:
> > > > Whats´s your php version?
> > > >
> > > > In newer versions of php, register_globals is
> > off
> > > > by default, or you
> > > > enable it on php.ini
> > > > or you use $_GET["Variable_name"] in your case
> > > > $_GET["TestVar"] (This
> > > > can be $_POST["VAR"])
> > > >
> > > > Ok...
> > > > test this and say the result...
> > > >
> > > >
> > > > Thanks...
> > > >
> > > > PS: Sorry my poor english...
> > > >
> > > > Hugs
> > > > Tiago N. Sampaio
> > > > Departamento Internet
> > > > www.planae.com.br
> > > > (14) 224-3066
> > > > Bauru/São Paulo/Brazil
> > > >
> > > > ----- Original Message -----
> > > > From: "b b" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, March 20, 2003 5:19 PM
> > > > Subject: [PHP-INST] php and forms
> > > >
> > > >
> > > > >
> > > > > Hi,
> > > > > This could be a silly mistake or it could be
> > a
> > > > sign
> > > > > of configuratin problems. Simply put, my
> > submitted
> > > > > form variables are not reaching the recieving
> > end:
> > > > >
> > > > > A form:
> > > > >
> > > > > <form method=post action="testForm.php">
> > > > > <input type="text" name="testVar">
> > > > > <input type="submit" name="submit"
> > > > value="submit">
> > > > >
> > > > > </form>
> > > > >
> > > > > A recieving file testForm.php:
> > > > > <html>
> > > > > <body>
> > > > > <?php
> > > > > printf("<br>testVar is : %s", $testVar);
> > > > > ?>
> > > > > </body>
> > > > > </html>
> > > > >
> > > > >
> > > > > When entering value like testtest in the form
> > > > element
> > > > > I still get the following in the recieving
> > file:
> > > > >
> > > > > testVar is :
> > > > >
> > > > >
> > > > > i.e. the form variable is not submitted or
> > not
> > > > > recieved. I also tried doing it through the
> > url
> > > > > .../testForm.php?testVar=whatever and still
> > the
> > > > > testVar is empty.
> > > > >
> > > > > Is there a configuration problem I should be
> > > > aware of
> > > > > as clearly it is not a code issue?
> > > > >
> > > > > Thanks,
> > > > > b.
> > > > >
> > > > >
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do you Yahoo!?
> > > > > Yahoo! Platinum - Watch CBS' NCAA March
> > Madness,
> > > > live on your desktop!
> > > > > http://platinum.yahoo.com
> > > > >
> > > > > --
> > > > > PHP Install Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit:
> > > > http://www.php.net/unsub.php
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > PHP Install Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit:
> > http://www.php.net/unsub.php
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Platinum - Watch CBS' NCAA March Madness,
> > live on your desktop!
> > > http://platinum.yahoo.com
> > >
> > > --
> > > PHP Install Mailing List (http://www.php.net/)
> > > To unsubscribe, visit:
> > http://www.php.net/unsub.php
> > >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>
--- End Message ---