Forum Moderators: travelin cat

Message Too Old, No Replies

OS X / Apache 1.3.29 and PHP pages problem

preview not possible

         

kelly001

1:58 pm on Nov 11, 2004 (gmt 0)

10+ Year Member



Hi,

I am trying to develop a dynamic site hosted locally on my Mac running OS 10.3.3 I have enabled PHP Version 4.3.2 and Apache 1.3.29. and both seem to be running from what i can tell. Apache shows a default page at [127.0.0.1...] and PHP shows the same at [127.0.0.1...]
I'm using Dreamweaver MX 6.1 with MySQL. I am able to connect to the database without any problem.

However, when I try to preview one of the site's pages in IE or Safari I get "the request URL /TMPacifg6yv5.php was not found on this server"

What could be causing this?

kelly001

7:34 pm on Nov 11, 2004 (gmt 0)

10+ Year Member



One thing I noticed too is that when I try to do a "Live Data" view of a PHP page I also run into an error. It tells me "HTTP error 404 (file not found) occured while attempting to request the file [127.0.0.1...] from testing server."
What is going on with this? Is this related?

BjarneDM

11:29 pm on Nov 11, 2004 (gmt 0)

10+ Year Member



Where are you serving your website from:
- the 'Sites' folder in your home directory?
- the global website folder in /Library/Webserver?

The PHP test URL indicates that you are using your home directory while the other URLs indicate the global site.

Might be some mixup between those two or permission problems.

kelly001

1:12 pm on Nov 12, 2004 (gmt 0)

10+ Year Member



I was serving it from the 'Sites' folder in my home directory. When I changed it to /Library/Webserver it worked! thanks! However the Live Data fucntion in Dreamweaver still misbehaves

whoisgregg

12:42 am on Nov 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When using Dreamweaver, you should always disable "Preview using temporary file." If it worked properly, it would be a great tool. But Dreamweaver will litter your machine with those TMPh28ghfkjg.php and .html files, changes don't always get written, and dynamic sites can get screwed up.

Dreamweaver Menu > Preferences... > Preview in Browser \
     Uncheck "Preview using temporary file"