php without apache

php without apache

am 24.12.2005 08:59:09 von Xander

As I want to train myself in PHP (I'm fairly easy with SQL, but my
friends are not), I tried to set up a Apache-PHP-mySQL combination.
The trouble comes with Apache. So my question is: is there a way to
use php without apache?
Thanx in advance
Xander

Re: php without apache

am 24.12.2005 09:19:28 von Shion

Xander wrote:
> As I want to train myself in PHP (I'm fairly easy with SQL, but my
> friends are not), I tried to set up a Apache-PHP-mySQL combination.
> The trouble comes with Apache. So my question is: is there a way to
> use php without apache?

You can use php as a normal scripting language, you will need to make
exceptions for html specific things, like header() won't work.

php yourscript.php

or if you want to make it to work like it would be a binary

add the following line as the first line (you need to give a path that right
for your system):
#!/usr/bin/php

and then:
chmod 755 yourscript.php

and now you can do:
../yourscript.php



//Aho

Re: php without apache

am 24.12.2005 11:18:00 von Simon Bridgewater

If you are having trouble installing the PHP/apache combo trt XAMPP
http://www.apachefriends.org

"Xander" wrote in message
news:emvpq1p30ng37mu3h2hk7jjidumseq04ao@4ax.com...
> As I want to train myself in PHP (I'm fairly easy with SQL, but my
> friends are not), I tried to set up a Apache-PHP-mySQL combination.
> The trouble comes with Apache. So my question is: is there a way to
> use php without apache?
> Thanx in advance
> Xander

Re: php without apache

am 24.12.2005 12:14:51 von Marian Heddesheimer

On Sat, 24 Dec 2005 08:59:09 +0100, Xander wrote:

>The trouble comes with Apache. So my question is: is there a way to
>use php without apache?

what's the trouble? Apache installation is quite easy:

http://www.rent-a-tutor.com/wbt/courses/index.php?kurs=php_e 01&seite=15

You can run php scripts without apace, but you cannot test user forms
(which will be needed in 99% of all php scripts that you may want to
write). You can also try another web server like Xitami or IIS. They
both can run with PHP as well. But I found Apache would be the best
and easiest way to install. Configuring Apache and PHP as CGI is a
piece of cake as long as you have a good tutorial (see above) or read
the "install.txt" that comes with PHP.

Marian

--
http://www.lernpilot.de/blog/ (das Weblog)
Alles zum Thema Lernen

Re: php without apache

am 26.12.2005 20:28:56 von Michael

Yes I agree I have said this before and I will say it again, XAMPP is
perfect for people trying to learn php because it is all configured
with alot of the optional module, also it is easy to install and from
that you can tell to a high degree that if it isn't working it is your
code. It is easy to administer but should not be used for proper
webhosting. Make sure you unistall anything apache, php or mysql
related you have installed first though.

Re: php without apache

am 11.01.2006 21:59:35 von Jim Michaels

could you be running into firewall troubles? some firewalls don't like
programs that act as servers, so you have to configure the firewall (or
disable it temporarily for testing) to allow the server to serve on port 80
from your local box, possibly to other computers(somehow I don't think you
need to go quite that far).
If you can drop your firewall and apache works suddenly, then you've found
your problem.

"Xander" wrote in message
news:emvpq1p30ng37mu3h2hk7jjidumseq04ao@4ax.com...
> As I want to train myself in PHP (I'm fairly easy with SQL, but my
> friends are not), I tried to set up a Apache-PHP-mySQL combination.
> The trouble comes with Apache. So my question is: is there a way to
> use php without apache?
> Thanx in advance
> Xander

Re: php without apache

am 23.02.2006 10:17:35 von Jim Michaels

when you install PHP you have the option of installing into IIS (If you have
that turned on in your XP box).

"Xander" wrote in message
news:emvpq1p30ng37mu3h2hk7jjidumseq04ao@4ax.com...
> As I want to train myself in PHP (I'm fairly easy with SQL, but my
> friends are not), I tried to set up a Apache-PHP-mySQL combination.
> The trouble comes with Apache. So my question is: is there a way to
> use php without apache?
> Thanx in advance
> Xander

Re: php without apache

am 23.02.2006 10:29:00 von Shion

Jim Michaels wrote:
> "Xander" wrote in message

>> As I want to train myself in PHP (I'm fairly easy with SQL, but my
>> friends are not), I tried to set up a Apache-PHP-mySQL combination.
>> The trouble comes with Apache. So my question is: is there a way to
>> use php without apache?

> when you install PHP you have the option of installing into IIS (If you have
> that turned on in your XP box).

PHP can be used without a webserver installed.
Of security reasons IIS shouldn't be installed on a computer connected to the
internet.


//Aho

Re: php without apache

am 24.02.2006 07:08:00 von Jim Michaels

"J.O. Aho" wrote in message
news:465disF9ejdfU1@individual.net...
> Jim Michaels wrote:
>> "Xander" wrote in message
>
>>> As I want to train myself in PHP (I'm fairly easy with SQL, but my
>>> friends are not), I tried to set up a Apache-PHP-mySQL combination.
>>> The trouble comes with Apache. So my question is: is there a way to
>>> use php without apache?
>
> > when you install PHP you have the option of installing into IIS (If you
> > have
> > that turned on in your XP box).
>
> PHP can be used without a webserver installed.
> Of security reasons IIS shouldn't be installed on a computer connected to
> the internet.

Of course there's the easy way with apache - XAMPP.
http://www.apachefriends.org/en/xampp.html or EasyPHP.
I've noticed several people on usenet have problems with WAMP.


I haven't installed the MS web server, but you've piqued my curiosity. Why
should IIS not be installed on a computer connected to the internet? I mean
the web server built into XP (was that any better?)? (should I be asking
about security holes at all on usenet?) I noticed there's a lockdown patch
available for it from MS, but I don't know any more than that. I mean, how
bad is it? Really bad? Gaping hole even with the lockdown patch?


>
>
> //Aho