CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 PHP/Apache?

Print topic Send  topic

Author Message
Frank Rocco
Posted: 08/15/2002, 3:26 PM

Need advise from experienced developers using PHP and Apache.

Is there a benefit of running PHP and apache under Linux instead of Windows
NT?

I read that under windows it runs as a CGI program.

I am interested in learning how this compares to ASP & IIS5

Thanks
Frank

DonB
Posted: 08/15/2002, 3:50 PM

PHP *used to* run as a CGI program on Windows. As of V4.? that is no longer
true. IIS now likes PHP as well as it does ASP.

don

"Frank Rocco" <farocco@hotmail.com> wrote in message
news:ajh9pn$o8a$1@news.codecharge.com...
> Need advise from experienced developers using PHP and Apache.
>
> Is there a benefit of running PHP and apache under Linux instead of
Windows
> NT?
>
> I read that under windows it runs as a CGI program.
>
> I am interested in learning how this compares to ASP & IIS5
>
> Thanks
> Frank
>
>

Frank Rocco
Posted: 08/15/2002, 8:40 PM


"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
news:ajhb8e$qhn$1@news.codecharge.com...
> PHP *used to* run as a CGI program on Windows. As of V4.? that is no
longer
> true. IIS now likes PHP as well as it does ASP.

Here is a statement from their install.txt

PHP 4 for Windows comes in two flavours - a CGI executable (php.exe),
and several SAPI modules (for exapmle php4isapi.dll). The latter form
is new to PHP 4, and provides significantly improved performance and
some new functionality. However, please note that the SAPI modules
are *NOT* yet considered to be production quality.
In particular, with the ISAPI module, you are likely to encounter serious
reliability problems especially on platforms older than W2K - you may
witness a lot of server 500 errors and suffer from other server modules
such as ASP also failing. You have been warned!
***

I tried to get the api working under IIS, but am getting HTTP 500 errors as
stated above.
It runs fine under apache.

Frank

DonB
Posted: 08/16/2002, 4:54 AM

Maybe I was lucky. I downloaded and installed 4.2.2 on Win2K (took all the
defaults) without a hitch. I was VERY surprised.at how straightforward and
trouble free (after having gone through the torture of putting Jrun on IIS).

Admittedly, some of my anti-PHP sentiment had been from expectations of
fighting with the installation and configuration. That took me all of maybe
5 minutes (including a reboot).

There have been no problems (so far). The integration and operation is as
smooth and functional as if IIS shipped with PHP. s'Great!

In Microsoft terms, I guess the SAPI modules are V1.0 quality ;-)

don

"Frank Rocco" <farocco@hotmail.com> wrote in message
news:ajhs88$mv3$1@news.codecharge.com...
>
> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
>news:ajhb8e$qhn$1@news.codecharge.com...
> > PHP *used to* run as a CGI program on Windows. As of V4.? that is no
> longer
> > true. IIS now likes PHP as well as it does ASP.
>
> Here is a statement from their install.txt
>
> PHP 4 for Windows comes in two flavours - a CGI executable (php.exe),
> and several SAPI modules (for exapmle php4isapi.dll). The latter form
> is new to PHP 4, and provides significantly improved performance and
> some new functionality. However, please note that the SAPI modules
> are *NOT* yet considered to be production quality.
> In particular, with the ISAPI module, you are likely to encounter serious
> reliability problems especially on platforms older than W2K - you may
> witness a lot of server 500 errors and suffer from other server modules
> such as ASP also failing. You have been warned!
> ***
>
> I tried to get the api working under IIS, but am getting HTTP 500 errors
as
> stated above.
> It runs fine under apache.
>
> Frank
>
>

michael weaver
Posted: 08/16/2002, 7:04 AM

Wow - that's really a "holy war" type of question!

As you probably know, Linux and apache are free, NT & IIS are not. IMO,
linux is more efficient and offers greater configuration options, but from
the other posts it looks like PHP runs fine on IIS, so if that's your
favorite environment, then go for it.

Here's an Apache vs NT test (both running on Win2kAdvanced):

http://www.eweek.com/article2/0,3959,3763,00.asp

Just my 2 cents.

m


"Frank Rocco" <farocco@hotmail.com> wrote in message
news:ajh9pn$o8a$1@news.codecharge.com...
> Need advise from experienced developers using PHP and Apache.
>
> Is there a benefit of running PHP and apache under Linux instead of
Windows
> NT?
>
> I read that under windows it runs as a CGI program.
>
> I am interested in learning how this compares to ASP & IIS5
>
> Thanks
> Frank
>
>

RonB
Posted: 08/16/2002, 8:12 AM

I use apache/php/mysql on a windows2000 server station with php as a
module(not cgi). It runs like a dream no problems. I think linux will give
you increased stability and a more flexible configuration but installing on
linux is a nightmare in my opinion( compared to installing on win2K)
Don't use the module version on anything else then win2k or better. It will
give you stability problems. NT just doen't like the module version but
win2k has no problems.

RonB
"michael weaver" <zero@michaelweaver.org> schreef in bericht
news:ajj0p9$mp5$1@news.codecharge.com...
> Wow - that's really a "holy war" type of question!
>
> As you probably know, Linux and apache are free, NT & IIS are not. IMO,
> linux is more efficient and offers greater configuration options, but from
> the other posts it looks like PHP runs fine on IIS, so if that's your
> favorite environment, then go for it.
>
> Here's an Apache vs NT test (both running on Win2kAdvanced):
>
> http://www.eweek.com/article2/0,3959,3763,00.asp
>
> Just my 2 cents.
>
> m
>
>
> "Frank Rocco" <farocco@hotmail.com> wrote in message
>news:ajh9pn$o8a$1@news.codecharge.com...
> > Need advise from experienced developers using PHP and Apache.
> >
> > Is there a benefit of running PHP and apache under Linux instead of
> Windows
> > NT?
> >
> > I read that under windows it runs as a CGI program.
> >
> > I am interested in learning how this compares to ASP & IIS5
> >
> > Thanks
> > Frank
> >
> >
>
>

Frank Rocco
Posted: 08/16/2002, 9:55 AM

Thanks RonB,

Our server is Windows 2000. I tried it on Windows XP Pro and had problems.
I'll try it again on Windows 2000.

I am also testing NuSphere install that gives you Apache, MySQL, PHP,
PHPMyAdmin

Frank

Frank Rocco
Posted: 08/16/2002, 10:06 AM

Hi RonB,

Can you give me the steps used to install PHP?
I tried ISAPI and it fails with a HTTP 500 error.
What files did you download?

Thanks
Frank

RonB
Posted: 08/16/2002, 10:27 AM

hi,

look at the install.txt file that comes with php. It gives you a step by
step instsruction. You'll have to copy some files to winnt/system32
directory and do some modifcations in the httpd.conf file that comes with
apache.
here's a section of the install.txt that comes with php:
>>
Now that version 4.1 introduces a safer sapi module, we recommend
that you configure PHP as a module in Apache.

To do this, you should move php4ts.dll to the windows/system (for Windows
9x/Me)
or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any
older file. Then you should add the following three lines to your Apache
conf file: (swap c:/php/ for your PHP install path)

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

>>

Hope this helps

RonB

"Frank Rocco" <farocco@hotmail.com> schreef in bericht
news:ajjbee$ab7$1@news.codecharge.com...
> Hi RonB,
>
> Can you give me the steps used to install PHP?
> I tried ISAPI and it fails with a HTTP 500 error.
> What files did you download?
>
> Thanks
> Frank
>
>

Frank Rocco
Posted: 08/16/2002, 11:00 AM

Thanks RonB,

I'll let you know how I make out.

Frank

RonB
Posted: 08/16/2002, 11:58 AM

Why Frank how you make out is your buisiness and my wife says I don't need
any pointers :-)

RonB

"Frank Rocco" <farocco@hotmail.com> schreef in bericht
news:ajjeke$fsk$1@news.codecharge.com...
> Thanks RonB,
>
> I'll let you know how I make out.
>
> Frank
>
>

Frank Rocco
Posted: 08/16/2002, 12:37 PM

Laugh...


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.