PDA

View Full Version : 404 File not found


john70964
07-14-2011, 02:35 PM
I want to get to know Sculptor so I created a test site on my local machine.

When I come to create a MySQL database connection I am getting an error.
Pls see image FileNotFound

I think I have created the various site definitions correctly and attach images of these.

I have another site working with the same db connection and that works correctly.

I wonder if anyone can think what I may be doing wrong please?
Many thanks
John

Jason Byrnes
07-14-2011, 03:11 PM
the problem is the URL Prefix on the testing server, but i would like to back up to the local info tab first.


if you are going to place the testing server files in:
C:\xampp\htdocs\FB_PHP_SiteSculptor\

it does not make sense to put the local info files in:
D:\AA_WEBSites\FB_PHP_SiteScuptor

all this does is create duplicates of the files on your system.

I set the local info and testing server tabs to use the same location, the remote tab is only needed when you uplaod to an external remote server.


now, onto the error:
the address:
http://localhost

maps to the C:\xampp\htdocs\ folder on your system

where you are creating the site in a subfolder:
C:\xampp\htdocs\FB_PHP_SiteSculptor\

the url prefix on the testing server tab needs to include that subfolder:
http://localhost/FB_PHP_SiteSculptor/

you should also use that address for the HTTP address on the local info tab.

john70964
07-15-2011, 08:16 AM
Thanks Jason for the answer and the extra advise about file positioning.

I have wondered about the whereabouts of necessary files previously but never have had it explained so well.

Regards

John

Jason Byrnes
07-15-2011, 08:34 AM
you're welcome.