Dreamweaver with PHP on a local server
Moderator: General Moderators
-
permutations
- Forum Commoner
- Posts: 52
- Joined: Sat Dec 07, 2002 11:45 am
Dreamweaver with PHP on a local server
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?
Does anyone know what the problem is with Dreamweaver and PHP? Has anyone gotten this to work?
-
powderfinger_swe
- Forum Newbie
- Posts: 2
- Joined: Mon Dec 09, 2002 8:41 am
- Location: sweden
- Contact:
-
permutations
- Forum Commoner
- Posts: 52
- Joined: Sat Dec 07, 2002 11:45 am
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.
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.
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
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
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.
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.
-
permutations
- Forum Commoner
- Posts: 52
- Joined: Sat Dec 07, 2002 11:45 am
-
permutations
- Forum Commoner
- Posts: 52
- Joined: Sat Dec 07, 2002 11:45 am
It's working!!!
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. 
-
Genteel Beaux
- Forum Commoner
- Posts: 28
- Joined: Wed Nov 13, 2002 4:07 pm
- Location: Alabama
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.
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.