Using PHP With Webuilder

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;
gordonsutton
Posts: 5
Joined: Thu May 18, 2006 4:00 pm
Location: Petersburg, VA
Contact:

Using PHP With Webuilder

Post by gordonsutton »

I am trying to use PHP and Apache with Webuilder. I have downloaded and installed all of the latest releases. I have tested php and apache and I can execute php when I enter the address "http://localhost/index.php" in the firefox browser.

I have configured Webbuiler to use the
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\
and
http://localhost/

When I try to preview the index.php from that directory, I get the error message cannot find http://localhost/index.php. and the help on how to set up PHP for Webbuilder

I am using Apache Version 2.2.2 and PHP Version 5.1.4. I have installed the lastest PHP 5.1.4 Apache 2.2 handler.

Can you help me solve this problem?

Thanks.

:oops:
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Have you saved your index.php file to
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.php
??

If so then I must ask whether anybody else has this problem, because I can not reproduce it.

I would also like to suggest that you re-check whether the mapping is added correctly and there are no typos.
Karlis Blumentals
Blumentals Software
www.blumentals.net
groovebox
Posts: 7
Joined: Mon May 22, 2006 4:15 am
Location: Auckland Region

Post by groovebox »

I too am having problems with previewing PHP with WeBuilder 2006. It has never worked for me at all - been trying for several weeks now.

My Apache and PHP integration is rock solid - Windows XP Pro - can process PHP pages just fine.

Local path =
C:\Program Files\Apache Group\Apache2\htdocs\

WebServer path =
http://127.0.0.1/

Path to PHP =
C:\php\php-win.exe

Have read the manual and the other on-line posts - also tried changing the 127.0.0.1 to "localhost" and also tried various path names (eg: leaving the final '/' off) and so on. Also tried the other PHP paths - eg: PHP-cgi and PHP.exe...

Any clues where I am going wrong will be appreciated.

Respectfully
Brynley
gordonsutton
Posts: 5
Joined: Thu May 18, 2006 4:00 pm
Location: Petersburg, VA
Contact:

Checked Everything

Post by gordonsutton »

I have done as you suggested and have verified my settings. Still not able to preview.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Can you configure apache so that web documents are stored in say c:\web\ or something like that? Try it and tell us what happens.

Has anyone else experienced any difficulties with this?
Karlis Blumentals
Blumentals Software
www.blumentals.net
Ingus
Posts: 29
Joined: Sun Mar 05, 2006 12:41 pm
Location: Riga, Latvia
Contact:

Post by Ingus »

Working like a charm for me :)
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

I had it working fine with WeBuilder 2005, but since upgrading, haven't re-plugged it in (its not working now, so obviously some settings didn't get copied across in the upgrade). I'll have another tinker with it lunchtime.
gordonsutton
Posts: 5
Joined: Thu May 18, 2006 4:00 pm
Location: Petersburg, VA
Contact:

Current Status

Post by gordonsutton »

I have gotten PHP to work successfully using other applications. I have just finished one project so I will take the time to move to another document root directory.

Thanks for your interest.
gordonsutton
Posts: 5
Joined: Thu May 18, 2006 4:00 pm
Location: Petersburg, VA
Contact:

Moved htdocs to another directory

Post by gordonsutton »

I moved the htdocs directory to another location on a different logical disk. When I try to preview the docment I get a popup window titled "Download" with a green icon on the left upper corner. The message says:
you have chosen to download a file that requires special handling. What would you like to do with this file?

Open with the specified application?
Save to disk?


file location: file:///M:/htdocs/index.php
content type: application/x-php
application: <No>
I am using the firefox browser as my default. I get a simular message from Internet Explorer Browser in that it says that windows cannot opent this application. Needs to know what program created it.

Thanks.
Emulman
Posts: 34
Joined: Thu Jan 19, 2006 8:22 pm
Location: Genoa, Italy
Contact:

Post by Emulman »

I have Apache 2.2.2, PHP 5.1.4, MySQL 5.0.21 on my Windows XP Pro SP2 with the directory server root at C:\Webs, the PHP path at C:\Server\PHP\php-win.exe and the internal preview of WeBuilder 2006 7.1 acts perfectly!
groovebox
Posts: 7
Joined: Mon May 22, 2006 4:15 am
Location: Auckland Region

Post by groovebox »

Sadly - still not working for me.

Have emailed the screen shots - PHP is working fine as it stands - no issues with Apache or MySQL. Have done another clean install of everything. (Am using WinXP Pro.)

Not sure what I am doing wrong!

Have emailed Karlis and sent him my "mapping" screen shots but no answer at this stage. (Can't figure out how to put an image inside this post.)

I have also installed it on another PC - but same issue.

Any comments appreciated.

Respectfully
Brynley
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

groovebox wrote:Have emailed Karlis and sent him my "mapping" screen shots but no answer at this stage. (Can't figure out how to put an image inside this post.)
Upload the pic to a free image host, such as rapidshare.de or imageshack.us and then use the [img]and[/img] tags (or use the [img]button:%20[img]http://www.creapsoft.co.uk/files/images/uploaded/thumbs/447c0ece.jpg[/img]
(click thumbnail for bigger pic)
gordonsutton
Posts: 5
Joined: Thu May 18, 2006 4:00 pm
Location: Petersburg, VA
Contact:

Now Working

Post by gordonsutton »

Well, having been a in the data processing business for 36 years, I always sadly shook my head when the user said: I didn't change anything.

I am not aware of any changes I made to anything but the preview now works. So you may shake your head with disgust but honestly I did nothing that I know of.

Gordon Sutton
:oops: :oops: :oops: :oops: :roll: :roll: :wink:
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Hm, I did not receive a screenshot (must have lost on the way), but anyway, it seems that the situation has miraculously solved itself.
Karlis Blumentals
Blumentals Software
www.blumentals.net
groovebox
Posts: 7
Joined: Mon May 22, 2006 4:15 am
Location: Auckland Region

Post by groovebox »

Sadly Karlis - my problem still exists.

I emailed the images to both email addresses and can only assume they got lost in the ether...?

I have posted my images at:

http://www.serious.co.nz/webuilder.html

Latest update = I have installed on a 3rd WinXP Pro - with newer (point) versions of Apache, PHP and MySQL to no avail. PHP is processing just fine, Apache is serving fine and MySQL is doing what it does just fine.

Looking forward to hearing what I did wrong!

Respectfully
Brynley
Post Reply