Skip to main content
Participating Frequently
April 15, 2008
Question

Setting up a PHP development environment for Dreamweaver

  • April 15, 2008
  • 4 replies
  • 800 views
Hi,

I am setting up a PHP development environment for Dreamweaver

I follow the instructions in Adobes tutorial: http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_02.html

When I test to see if the PHP server is running with:
http://localhost/timetest.php

Firefox wants to download the file not open it in the browser.

What am I doing wrong ?
This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Participating Frequently
April 16, 2008
I have tried reinstalling but it still wants to download.

I've removed the software, changed the software and tried repairing the software .

I have gone over the tutorial steps several times but it still don't work.

Should I now reconfigure the PHP installation. How do I do that ?
Participating Frequently
April 15, 2008
I've tried doing this as SaigonJeff recommended:


Open notepad and type in this code:

<?php
phpinfo();
?>

Then save it as "php_info.php" in c:\inetpub\wwwroot\

Then open Firefox and go to http://localhost/php_info.php


But it still wants to download the file.

So Im going to try reinstalling.

I did notice in the instructions given in the Adobe tutorial that there is a step in the installation of the PHP that is not covered.

The installer asks "select the web server you wish to set up"

I was recommended on irc #php IIS FastCGI.

When I reinstall should I try another type of IIS ?
Inspiring
April 15, 2008
I had the same problem, but it turned out that PHP was not running properly.

Open notepad and type in this code:

<?php
phpinfo();
?>

Then save it as "php_info.php" in c:\inetpub\wwwroot\

Then open Firefox and go to http://localhost/php_info.php

You should get an information page the shows you the current configuration of your php installation.

If you get an error or the page tries to download as a file, then the PHP installation needs to reconfigured or reinstalled.
Inspiring
April 15, 2008
If it's trying to download the file, PHP is not set up on the server. What
server are you running? Apache? IIS? Something else?

The best way to test is to create a file with this code:

<?php
phpinfo();
?>

Save the page as info.php and put it in the root of the server. In IIS,
that would be C:/Inetpub/wwwroot/ and in Apache, it would be C:Program
Files/Apache Group/Apache/htdocs.

Then browse to the page using this URL: http://localhost/info.php. You
should get the default information of your PHP installation. If you do not,
it is not set up correctly.


--
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: Dreamweaver CS3: The Missing Manual,
DMX 2004: The Complete Reference, DMX 2004: A Beginner's Guide
Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

"Daniel__Baker" <webforumsuser@macromedia.com> wrote in message
news:fu2jpv$n4s$1@forums.macromedia.com...
> Hi,
>
> I am setting up a PHP development environment for Dreamweaver
>
> I follow the instructions in Adobes tutorial:
> http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_02.html
>
> When I test to see if the PHP server is running with:
> http://localhost/timetest.php
>
> Firefox wants to download the file not open it in the browser.
>
> What am I doing wrong ?
>