Skip to main content
Inspiring
August 9, 2011
Question

PHP Testing 2

  • August 9, 2011
  • 1 reply
  • 1241 views

I am developing on a home network with 2 different PC computers,

#1 is Win 7 w/IE9; #2 is XPpro w/IE8.

Dreamweave CS5.5 on #1

XAMPP on #2 (testing server)

XAMPP control panel reports all is working

Set up Site as follows:

- Site

- - Name: PHP Test Site

- - Local Site Folder: \\#2computername\xampp\htdocs\php_test\

- Servers (only testing is checked)

- - Basic

- - - Server Name: Local Testing

- - - Connect using: Local/Network

- - - Server Folder: \\#2computername\xampp\htdocs\php_test\

- - - Web URL: http://#2computername/xampp/htdocs/php_test/

- - Advanced

- - - ONLY Maintain sync info is checked, and

- - - server model: PHP MySQL

Developed 'timetest.php' per instructions; on 'Save', the timetest.php file goes to the server folder.

The 'design' window shows the text with the PHP icon correctly placed.

On selecting 'live view', the following results:

Access forbidden!

New XAMPP security concept:

Access to the requested object is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf"

If you think this is a server error, please contact the webmaster.

ERROR 403

tom-old-desktop

8/9/2011 2:10:44 am

Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1

This topic has been closed for replies.

1 reply

Community Expert
August 9, 2011

Sounds like a firewall issue to me.  Does computer #2's firewall allow all traffic on the http/mysql ports from addresses on your local network?

TjmSmithAuthor
Inspiring
August 9, 2011

Firewall settings on Computer #2 (local network test set) shows:

General:  On

Exceptions:  Apache - ON (same with File and Printer Sharing, Network Diagnostics f/XP, Remote Assist, UPnP Framework)

- Remote Desktop is OFF

Under Apache HTTP Server, the path: C:\xampp\apache\bin\httpd.exe

Under Apache 'scope':  Any computer

I suppose I could change scope to "My network (subnet) only" ???

Under Apache 'Advanced Settings', local area connection is checked and

- tab: services: nothing is turned on.

- tab: ICMP: nothing is turned on.

OTHER:

When I use IE on Computer #2 and try to open the 'timetest.php' file directly I get a 'file download' dialog box. (Same result when I try to open it from WinExplorer!)

Suggestions??

Thanks, Tom

TjmSmithAuthor
Inspiring
August 10, 2011

The file download prompt suggests to me that the server is not running or not configured properly.  And what firewall are you using?  Just the built-in XP one or do you have a 3rd party firewall?  From experience I don't think the Windows one is that configurable and you might be better with a 3rd party firewall.


Cripes, missed the absolute obvious all the way!!!

On #2 (testing server), using the correctly written URL address of: http://localhost/php_test/timetest/php worked perfectly.

On #1, using the correctly written URL address in IE & Firefox of: http://#2computer/php_test/timetest.php worked perfectly.

On #1, using the correctly written URL address in DW works toooooo!

Albeit the displayed time is six hours off from computer displayed clock!!! Any idea why? <p>The time is now <?php echo date('H:i:s'); ?>.</p>

Truly sorry for this and thanks for keeping me attentive.

Tom Smith