Previewing PHP Files in Webuilder 2007

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
snorkytheweasel
Posts: 21
Joined: Thu Nov 15, 2007 1:35 am

Previewing PHP Files in Webuilder 2007

Post by snorkytheweasel »

I'm getting the "The software is not yet configured for previewing PHP files" error.

I'm using XAMMP for PHP and Apache.

Webuilder configuration appears correct:

Options => Preferences => Preview => Mappings shows:
D:\Program Files\webdev-tools\LAMP\xampp\htdocs\sites\ - http://localhost
D:\Program Files\webdev-tools\LAMP\xampp\htdocs\sites\ - http://127.0.0.1

Apache & PHP are working:

If I save a file as
D:\Program Files\webdev-tools\LAMP\xampp\htdocs\sites\ index.php

I can open it in IE and FF via URLs
http://localhost/sites/index.php and http://127.0.0.1/sites/index.php

Also, I can open XAMMP's
D:\Program Files\webdev-tools\LAMP\xampp\htdocs\phpinfo.php

Now what?
This message is made from of 100% recycled non-GMO soy-based malarkey.
No electrons were harmed in its production or transmission.
- stw
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

D:\Program Files\webdev-tools\LAMP\xampp\htdocs\sites\ - http://localhost

is wrong

D:\Program Files\webdev-tools\LAMP\xampp\htdocs\ - http://localhost

is right, because web root is:
D:\Program Files\webdev-tools\LAMP\xampp\htdocs\

so it corresponds to
http://localhost/
Karlis Blumentals
Blumentals Software
www.blumentals.net
robertc
Posts: 16
Joined: Thu Jan 05, 2006 3:44 pm
Location: Isle of Man
Contact:

Viewing PHP files in Webuilder 2007

Post by robertc »

I had an instance just yesterday when a PHP page I had been previewing quite happily last week suddenly started to report it wasn't configured properly and couldn't display the page.
I checked the mappings and they all looked OK so I tried again but it still failed.
So I went back to the mappings, edited the mapping I was using although I didn't change anything just Edit and OK and it all started to work again.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

moved to support. -will
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Post by daredare »

use the built in server then point to php-cgi.exe, works good.
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Post by daredare »

also why are you putting xamp somewhere in program files? for no further comfusions xamp should be at the root like C:\xamp
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Because xampp is a program, and can live in program files. For the same reason WeBuilder shouldn't be installed in the root directory!
quitcherbitshun
Posts: 2
Joined: Wed Dec 12, 2007 2:16 am

Post by quitcherbitshun »

chrisjlocke wrote:Because xampp is a program, and can live in program files. For the same reason WeBuilder shouldn't be installed in the root directory!
Anywahere other than root on a drive just make server paths more difficult map. Default install goes into C:\xampp.

I switched to Apache2Traid with php5 and mysql 5 to avoid some security issues with xampp.
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Post by notuo »

chrisjlocke wrote:Because xampp is a program, and can live in program files. For the same reason WeBuilder shouldn't be installed in the root directory!
Well, some programs are installed not in the program files folder (mainly developer toos with ide and things like that).

In this case, xampp makes a suggestion for vista. Install in root not in program files. This is because of the recurrent UAC vista has.
Post Reply