Webuilder 2011 - Php preview not working?

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
highend
Posts: 1
Joined: Fri Jun 17, 2011 2:40 am

Webuilder 2011 - Php preview not working?

Post by highend »

Hi,

just downloaded the new Webuilder version (v11.0.0.125) and tried to get the php preview working.

My local webserver is VertrigoServ (http://vertrigo.sourceforge.net/).

It is running on localhost, port 80 and ofc supports php.

I followed the "In-depth Tutorial: How do I preview PHP files?"


Step 1 - What is your document root?
The document root is: "D:\VertrigoServ\www"

Step 2 - What is your web server address?
http://localhost/

Step 3 - Make sure your web server works
http://localhost/index.php
Works perfectly (shows the information page of the local webserver)

Step 4 – Configure internal preview
1.On the Options menu, click Preferences;
2.In Preferences window, click Preview folder;
3.Click Mappings, then click Add;
4.Enter your document root folder and the corresponding web address, in the above example you would enter c:\htdocs\ and http://localhost/

The checkmark for "Ordner-Zuordnungen bei Vorschau verwenden" is set.
One entry:
"D:\VertrigoServ\www\" points to "http://localhost/"

My php settings inside Webuilder 2011:
Pfad zur PHP-Anwendung (php.exe):
"D:\VertrigoServ\Php\php.exe"
Echtzeit-PHP-Syntaxprüfung is active.


I have absolutely no problems with my local webserver (a wordpress installation is running on it) but WeBuilder 2011 refuses to show a preview for a php file.

The preview pane displays this content:

The software is not yet configured for previewing PHP files
You can configure this preview window to work with your web server, but you must have a local or remote web server to publish your PHP file.

etc...
Last edited by chrisjlocke on Fri Jun 17, 2011 12:12 pm, edited 1 time in total.
Reason: Removed full content displayed, for display purposes.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Webuilder 2011 - Php preview not working?

Post by chrisjlocke »

My key has expired, so before reinstalling to test, I've asked for another key. I've downloaded Vertrigo to confirm WeBuilder works with it. I can't see why it wouldn't. All I can initially think of is to ensure the directories are right, and the path to PHP is correct.

Edit: ignore me. While the original email contained a licence key, when I just installed it, it didn't ask for it, so I'll test it now!
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Webuilder 2011 - Php preview not working?

Post by chrisjlocke »

Just installed it all, and it all works as expected.
There is a common 'gotcha' though. If you create a PHP file (File | New) and type "echo "Hello World"; between the PHP tags, nothing will get previewed. You have to save the file first. Save in the 'www' directory, and if you refresh the preview window, it should all work.

I've installed Vertrigo on standard port 80, as per your configuration. I was running in a Vista VM, so had to turn off IIS first, as there was obviously a clash.
Post Reply