php-install Digest 20 Aug 2002 04:41:41 -0000 Issue 986
Topics (messages 8158 through 8172):
The server encountered an internal error when trying to execute any PHP script
8158 by: Mr. I
8163 by: Mr. I
Re: XP Home install question
8159 by: Mr. I
Re: Installing PHP on Win XP
8160 by: Mr. I
Re: Two version of php in the same system
8161 by: Mr. I
Re: Apache on win2000 and PHP 4
8162 by: Mr. I
PHP scripts are not interpreted!
8164 by: Igor Osch Simoes
8168 by: Moraes, Fabio
Scripts not seeing querystring vars
8165 by: Richard Vincent
8166 by: Rasmus Lerdorf
8167 by: Moraes, Fabio
8169 by: Moraes, Fabio
which should i download if i have already installed Apache ?!
8170 by: speedup
8171 by: Phil Driscoll
Re: Apache WebServer version 2.0.39 on Windows 2000 and PHP 4.2.2
8172 by: xiaobo
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 ---
Ok, my configuration:
Win2k, Apache 2.0.40 + PHP 4.2.3 (todays dev release)
Apache Httpd.conf (/WWWROOT/ and other folders are correct aliases - I can
browse without problems through my site):
ScriptAlias /cgi-bin/ "/WWWROOT/cgi-bin/"
<Directory "D:/WWWROOT/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php c:/php/php.exe
LoadModule php4_module c:/php/sapi/php4apache2.dll
(I'v tried CGI/Apache dll ways together and alone ... got all types of
errors :) )
Ok here comes what I get when I'm trying to run this Hello world sample:
Sample: <html><body><?php $myvar = "Hello World"; echo $myvar;
?></body></html>
Errors:
1. The server encountered an internal error and was unable to complete your
request. Either the server is overloaded or there was an error in a CGI
script. (500)
2. The server encountered an internal error and was unable to complete your
request.
Error message: Premature end of script headers: test.php
(Getting this one if adding #!c:/php/php.exe in the beginning of the
script file)
Indeed, when I'm trying "c:\php\php.exe test.php" it works perfectly and
supplies full set of CGI headers.
.
P.S. PHP seems to be 5 times more painful (clock-proved) to install than
Perl ... Why they don't write good forums in Perl? :(
P.P.S. Please reply also to e-mail [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Ok, changed lines order, aliased php and now CGI works. Any ideas about PHP
via SAPI? It still won't work.
--- End Message ---
--- Begin Message ---
And still, I advise downloading latest release
( http://snaps.php.net/win32/ ) and adding these lines to your php.ini in
windows folder:
; cgi.force_redirect is necessary to provide security running PHP as a CGI
under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1
cgi.force_redirect = 0
Why I suggest inserting? :) Maybe you made a type or something.
Even no restart is required if you are using CGI to access PHP.
"Jonathan Goulding" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all,
>
> I receive the following error msg when trying to load a php page after
> installing php and a web server on XP home:
>
> "This PHP CGI binary was compiled with force-cgi-redirect enabled..."
>
> So, I have changed the php.ini file in both c:\windows and c:\php to no
> avail. The same error msg is given after a reboot.
>
> Any suggestions would be greatly appreciated! I'm a novice at this
stuff...
>
> -Jonathan
>
>
>
>
--- End Message ---
--- Begin Message ---
"Ezekiel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You need apache httpd server to use php.
You don't need web server ... Just use c:\php\php.exe
scriptname.php>generated.html to ejoy php scripts without any web server.
--- End Message ---
--- Begin Message ---
Indeed here is ... Easiest is CGI - just put line #!/path/to/your/php.exe at
the start of the file and enable server-parsing this dir. Or you can try
loading php4apache.dll (or other server) under different aliases. But it's
harder - you need to teach PHP to stop using shared PHP.INI in windows
folder.
"Breno Cardoso Perucchi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Exists some way of to have 2 different versions in the same system ?
> I am trying to running the version 4.2.2 and 4.0.3 .
>
> Thanks
>
> Breno Cardoso Perucchi
> breno@omegatec.
>
>
--- End Message ---
--- Begin Message ---
"Lukáš moravec" <[EMAIL PROTECTED]> wrote in message
007001c243d6$d039dab0$ea42fea9@lukuo2tej2n56g">news:007001c243d6$d039dab0$ea42fea9@lukuo2tej2n56g...
> When I used other way the apache does not work but i do not know where
> to insert these lines (in htconf)...
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddModule mod_php4.c
> AddType application/x-httpd-php .php
About this: current release of PHP will not work with Apache 2.0.37 or
higher. (Apache will just say that php4apache.dll does not have a required
procedure and will not start). In this case you need to update PHP to the
latest version - you can do that at http://snaps.php.net/win32/
--- End Message ---
--- Begin Message ---
I've installed PHP and Apache in a Mandrake 8.2 Linux distribution from
the source code. To install i followed everything that was written on the
README and INSTALL files. I configured the httpd.conf as was written on
the README and INSTALL files, but PHP didn't work. After some time I see
on PHP.NET that I should write on the apache confifg file some lines like:
LoadModule sometnhing... I didn't installed PHP as an Apache module but
I've tried everything and nothing worked so I inserted those lines into my
config file. When I tryed to start Apache it returned an error message
and did not started. So what can I do to have Apache and PHP working???
P.S.: I've installed Apache from the Apache ToolBox 1.5. Please someone
help me!!!
--- End Message ---
--- Begin Message ---
err...
How did you inserted "LoadModule" directive if its parameter is a filename
that does not exist on your system ? ;)
If PHP is not an apache module, you dont need to add LoadModule directive.
Redescribe your error and i'll try to help you.
--fabio moraes.
-----Original Message-----
From: Igor Osch Simoes [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:06 PM
To: Mr. I
Cc: [EMAIL PROTECTED]
Subject: [PHP-INST] PHP scripts are not interpreted!
I've installed PHP and Apache in a Mandrake 8.2 Linux distribution from
the source code. To install i followed everything that was written on the
README and INSTALL files. I configured the httpd.conf as was written on
the README and INSTALL files, but PHP didn't work. After some time I see
on PHP.NET that I should write on the apache confifg file some lines like:
LoadModule sometnhing... I didn't installed PHP as an Apache module but
I've tried everything and nothing worked so I inserted those lines into my
config file. When I tryed to start Apache it returned an error message
and did not started. So what can I do to have Apache and PHP working???
P.S.: I've installed Apache from the Apache ToolBox 1.5. Please someone
help me!!!
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello,
I recently installed PHP on my win 2000 server and it appeared to be working
great .. but I have recently detected one problem. It's not seeing
querystring variable info and instatiating variables inside the script that
correspond to the querystring....
Any ideas .. Please help.
Richard Vincent
--- End Message ---
--- Begin Message ---
Turn on register_globals in your php.ini file.
On Mon, 19 Aug 2002, Richard Vincent wrote:
> Hello,
>
> I recently installed PHP on my win 2000 server and it appeared to be working
> great .. but I have recently detected one problem. It's not seeing
> querystring variable info and instatiating variables inside the script that
> correspond to the querystring....
>
> Any ideas .. Please help.
>
> Richard Vincent
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
i recommend to use global variables like $_GET[] or $_POST[]
for security purposes.
thanks,
--fabio moraes.
-----Original Message-----
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:26 PM
To: Richard Vincent
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] Scripts not seeing querystring vars
Turn on register_globals in your php.ini file.
On Mon, 19 Aug 2002, Richard Vincent wrote:
> Hello,
>
> I recently installed PHP on my win 2000 server and it appeared to be
working
> great .. but I have recently detected one problem. It's not seeing
> querystring variable info and instatiating variables inside the script
that
> correspond to the querystring....
>
> Any ideas .. Please help.
>
> Richard Vincent
>
>
>
>
> --
> 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
--- End Message ---
--- Begin Message ---
i must say i almost did not undestand what you said ! :D
sorry my bad english, but i'm brazilian.
i believe your problem will be corrected if you turn on option
'register_globals' in your php.ini
or, and preferred,
use global variables like $_GET['var'] and $_POST['var']
i hope it helps you.
best regards,
--fabio moraes.
-----Original Message-----
From: Richard Vincent [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Scripts not seeing querystring vars
Hello,
I recently installed PHP on my win 2000 server and it appeared to be working
great .. but I have recently detected one problem. It's not seeing
querystring variable info and instatiating variables inside the script that
correspond to the querystring....
Any ideas .. Please help.
Richard Vincent
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
a.. which should i download if i have already installed Apache ?!
thx
a.. PHP 4.2.2 zip package [5,275Kb] - 22 July 2002
(CGI binary plus server API versions for Apache, Apache2 (experimental),
ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many extensions
included, packaged as zip)
a.. PHP 4.2.2 installer [913Kb]- 22 July 2002
(CGI only, MySQL support built-in, packaged as Windows installer to install
and configure PHP, and automatically configure IIS, PWS and Xitami, with
manual configuration for other servers. N.B. no external extensions
included)
--- End Message ---
--- Begin Message ---
On Sunday 18 August 2002 6:41 pm, speedup wrote:
> a.. which should i download if i have already installed Apache ?!
> thx
>
>
> a.. PHP 4.2.2 zip package [5,275Kb] - 22 July 2002
> (CGI binary plus server API versions for Apache, Apache2 (experimental),
> ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many extensions
> included, packaged as zip)
This one if you want to use the apache sapi version (faster and more
functionality) or any of the php extension modules.
> a.. PHP 4.2.2 installer [913Kb]- 22 July 2002
> (CGI only, MySQL support built-in, packaged as Windows installer to install
> and configure PHP, and automatically configure IIS, PWS and Xitami, with
> manual configuration for other servers. N.B. no external extensions
> included)
This one if you want to use the cgi version.
Cheers
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
pls delete this line:
AddModule mod_php4.c
try again.
--- End Message ---