Local Php And/or Asp Viewing.

O.K. I have a problem. First, I'm on a 56K. This becomes a real problem when I'm a web designer wanting to learn PHP and ASP. Is there a way that I can view PHP and/or ASP on my computer without using having to be logged on the internet. I'm s(h)ure I need to run IIS, but I'm not exactly positive if it's possible. Thanks for anyone that can help me.

#70460

No idea about ASP, but I use some PHP systems locally.

Just use this IP: 127.0.0.1, its your local loopback.

Just make sure you're running Apache, IIS, or another server.

#70467

Thanks, I wanted PHP more anyway, I'll give it a try.

#70472

Ooh, ooh, I can do this one! (For PHP)

Go to The Apache Foundation and download & install apache webserver as per their instructions. I have version 2.x Install it as per the instructions, I find using it as a service better as then it is always there and only eats a little ram. Then, your computer is set up to serve web pages and files.

Next, go to php.net and dowload & install php. This is a little more fiddly so you'll need to follow instructions carefully as you set up apache to recognise .php files as needing to be processed by the php .exe.

Rough guidelines for this:

Put php4apache.dll into the "modules" folder of apache. Rename the extension from ".dll" to ".so".

Set up httpd.conf (you should have done a bit of this already) by adding the following:

1:

LoadModule php4_module modules/php4apache2.so

at the end of the DSO support section

2:

AddType application/x-httpd-php .php .phtml .php3 .php4
AND

AddType application/x-httpd-php-source .phps

below where it says about ScriptAliases

Check the online manuals to make sure you did it right (rely on them, not me!) restart your pc. Open up a browser, type the name of your server which is usually localhost or type the IP contra showed you and it should all pop up nicely!

Sorry for the heavy post but it hope it helps. If not then their are some damn good manuals on webmonkey and the apache/php sites.

L.

#70479

WARNING:

Running a web server on WindowsXP Home is against the EULA, and would require you to delete your copy from your harddrive (permanently) and face possible fines for contractual violation.

Just saying... :shy:

#70484

I have Win XP Pro. Also the EULA states that you cannot make a backup copy of Windows XP ... that belongs to a friend ... of a friend :shy: .

#70487

Originally posted by contrasutra@Oct 28 2003, 09:56 PM

WARNING:

Running a web server on WindowsXP Home is against the EULA, and would require you to delete your copy from your harddrive (permanently) and face possible fines for contractual violation.

Just saying... :shy:

Yup. I know. I just provided clear concise instructions on how to install apache/php. If people want to carry it out and it not allowed then it's up to them.

#70491

just install linux on a partition

that way you can do it really easily... after install, just type http://localhost/ in a browser and you'll be using your php enabled apache

mandrake only takes 15 minutes to install...

Ludge: you're assisting someone to do something against the dmca... isn't that a terrorsist act in america now?

#70492

no, it just makes you a communist. :lol:

#70495

Originally posted by Fissy@Oct 28 2003, 10:07 PM

Ludge: you're assisting someone to do something against the dmca... isn't that a terrorsist act in america now?

Well? I've just said the same thing that is on hundreds of sites throughout the world. It is part of the apache program. Apache mnust be allowed to be run on windows somehow, the instructions I gave apply to just about any version of windows. I doubt I can be taken to camp x-ray for that.

#70496

Contra, thats just going to far!

#70500

Fascism is much better.

#70509

I used to have the same problem, and found out that a couple of French blokes put together Apache and PHP (as well as MySQL) in a very convenient package designed especially for your needs :D That way you spare yourself all the config hassle (which is perfect for lazy people like myself :smartass:), and it also includes a tool for starting and stopping your server with one click.

EasyPHP

BTW Don't be scared, the thingy is in English (as well).

#70568

Originally posted by ako9000@Oct 28 2003, 07:21 PM

I used to have the same problem, and found out that a couple of French blokes put together Apache and PHP (as well as MySQL) in a very convenient package designed especially for your needs  :D That way you spare yourself all the config hassle (which is perfect for lazy people like myself  :smartass:), and it also includes a tool for starting and stopping your server with one click.

EasyPHP

BTW Don't be scared, the thingy is in English (as well).

Thank you very much, after downloading Apache, PHP and installing IIS (BIG mistake), I was getting buggy results. ASP works, a little bit, but still not PHP. As I'm downloading this I'll see if I can fix what I can do.

Poor, very poor modulate/demodulator. First iTunes then iTunes 4.1.1.5<->4, and now Apache/PHP. :cry:

#70590

EULA? you mean that thing that I clicked thru without reading?

#70685

Yes, the End User License Agreement. It basicaly says all the crap that we can't do, but still we do it.

#70788

Wizard: You can use Foxserv :)

Easy to install and easy to configure. www.foxserv.net

#70797

Why d'you consider installing IIS a big mistake, Wizard?

I use it every day for work, and I have less problems with it than the Apache servers I've had dealings with, and it's being used to run non-trivial sites (1000000+ page-views per week, on the smallest site)... I've found it stable, scalable and reliable (IIS 5), and even moreso for IIS 6... :D

#70799

i installed iis 5 and within 5 minutes had the welchia worm >.

#70800

Originally posted by Fissy@Oct 29 2003, 03:20 PM

i installed iis 5 and within 5 minutes had the welchia worm  >.<

Is that IIS 5's fault, or yours, though? ;)

#70805

Originally posted by Stevie BM@Oct 29 2003, 09:16 AM

Why d'you consider installing IIS a big mistake, Wizard?

I use it every day for work, and I have less problems with it than the Apache servers I've had dealings with, and it's being used to run non-trivial sites (1000000+ page-views per week, on the smallest site)...  I've found it stable, scalable and reliable (IIS 5), and even moreso for IIS 6...  :D

Because I don't get the Criticle Updates by Microsoft. :shy:

#70823

Steve: i can manage to run apache on linux without a firewall and virus checker running 24/7.

There is a hint of it being my fault, but its mainly iis 5 being a heap of junk ;)

#70905

Originally posted by Fissy@Oct 29 2003, 07:37 PM

Steve: i can manage to run apache on linux without a firewall and virus checker running 24/7.

There is a hint of it being my fault, but its mainly iis 5 being a heap of junk ;)

But then, I ran IIS 5 for about 4 months running like that with no problems... -_-

My original post made no sense <_<

#70914

I used PHP Triad when I was testing vB and phpBB skins and modifications. It worked first time and let me use both fine. (Note: I use WinXP Pro) Plus it worked fine to show people before general release (with firewall in place too).

#70919

Stevie: just think how well you could run apache then ;-)

#70922