Dreamweaver with PHP on a local server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

Dreamweaver with PHP on a local server

Post by permutations »

After great effort and pain, I finally succeeded in setting up PHP to run on my Win2000 machine with PWS 5. One of the reasons I wanted to be able to run PHP locally was so I could use Dreamweaver's preview feature. However, when I try to launch a Web page with PHP in Dreamweaver, it not only doesn't work, it crashes PHP so I get access violations and nothing works until I reboot.

Does anyone know what the problem is with Dreamweaver and PHP? Has anyone gotten this to work?
LM
Forum Newbie
Posts: 2
Joined: Mon Dec 09, 2002 7:23 am

Post by LM »

I got PHP to run with Dreamweaver. I used phptriad to install Apache with PHP and MySQL. (Win98)

Make sure your local site is located in your webroot. (In this case F12 will work)
powderfinger_swe
Forum Newbie
Posts: 2
Joined: Mon Dec 09, 2002 8:41 am
Location: sweden
Contact:

Post by powderfinger_swe »

why don't use IIS instead of PWS!??
should help you fix a lot of problems.....

/pow
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

Post by permutations »

LM--I've tried this a couple of different ways, and PHP crashes no matter what:

Scenario 1: Create a Dreamweaver Sites folder outside of webroot and define the webroot as the place to test my code.

Scenario 2: Place my project folders inside my webroot as subdirectories.

In both cases, PHP is accessed but doesn't work right, then crashes, then gives me a protection fault every time I try to access it until I reboot my computer. My understanding is that PWS will run anything at all inside the webroot (can be in subdirectories).

I haven't heard of phptriad. What is that? I used PWS because I already had it installed so it was easy, but if I installed a different server it would be Apache.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

why don't use IIS instead of PWS!??
PWS on w2k uses the same core and is in fact IIS ;)
User avatar
Skywalker
Forum Contributor
Posts: 117
Joined: Thu Aug 29, 2002 3:33 am
Location: The Netherlands

Post by Skywalker »

I use ISS 5.0 and MySQL 3.x with dreamweaver works perfect no problems at all.

So I suggest you install ISS instead of PWS

Steps

1. Install ISS from windows cd
2. Download the update for ISS on microsoft.com
3. Download the PHP.exe setup from php.net
4. Download the MySQL.exe setup on http://www.mysql.com

If you still have problems after installing those let me know, ther might be a posibility that have to configure the php.exe file on the ISS server.

Greathings Skywalker
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

Post by permutations »

I'm still having lots of problems with my local PHP setup. I fixed the error reporting, but I'm still having problems with crashes, and then I have to reboot my computer to get it back up. When I use it standalone it's more stable, but if I try to launch it from within Dreamweaver it always crashes. I suspect it's something about the settings I'm using for PHP. Any ideas?

Again, I'm running Win2000 SP3 with PWS 5 and PHP 4.2.3. MySQL is loaded, too, but I don't think this is part of the problem because I had the crashes before I installed it.
HormonX
Forum Commoner
Posts: 50
Joined: Tue Dec 10, 2002 7:43 pm
Location: Toronto

Post by HormonX »

hhhhmmm am just wondering why everyone is using IIS or PWS instead of Apache. Not only it is faster but much more stable than both MS products, and most of all it doesn't need 70Megs of RAM to run :)
I would never even think of running PHP and/or MySQL under these two.


Best Regards,

HormonX :D
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

Post by permutations »

I'm only using PWS because it was already installed on my system and thus easy. If I were to install a server, I'd install Apache.

I think my problem is probably with my PHP settings, and not PWS.
permutations
Forum Commoner
Posts: 52
Joined: Sat Dec 07, 2002 11:45 am

It's working!!!

Post by permutations »

I just went through my PHP.INI file with a fine-toothed comb and corrected a number errors. PHP is now working fine on my Win2000 system with PWS, and I can launch it from within Dreamweaver with no problem. :D
Genteel Beaux
Forum Commoner
Posts: 28
Joined: Wed Nov 13, 2002 4:07 pm
Location: Alabama

Post by Genteel Beaux »

I prefer to use Apache web server for my php stuff and IIS for my ASP stuff. Make sure they are on different ports.

For PHP

I have use http://localhost or http://127.0.0.1

For ASP

I have to use http://localhost:8080

8080 is my port setting inside IIS.
Post Reply