Page 1 of 1
Dreamweaver with PHP on a local server
Posted: Sun Dec 08, 2002 10:53 pm
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?
Posted: Mon Dec 09, 2002 7:23 am
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)
Posted: Mon Dec 09, 2002 8:41 am
by powderfinger_swe
why don't use IIS instead of PWS!??
should help you fix a lot of problems.....
/pow
Posted: Mon Dec 09, 2002 8:56 am
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.
Posted: Mon Dec 09, 2002 9:26 am
by volka
why don't use IIS instead of PWS!??
PWS on w2k uses the same core and is in fact IIS

Posted: Tue Dec 10, 2002 2:09 am
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
Posted: Tue Dec 10, 2002 6:51 pm
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.
Posted: Tue Dec 10, 2002 7:43 pm
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

Posted: Tue Dec 10, 2002 9:27 pm
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.
It's working!!!
Posted: Wed Dec 11, 2002 12:54 am
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.

Posted: Thu Dec 12, 2002 3:44 pm
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.