Skip to main content
Participant
October 9, 2012
Question

I need help getting my local testing server to work - PHP/MySQL

  • October 9, 2012
  • 1 reply
  • 2320 views

Hello,

I am using DW CS5 and have installed XAMPP for my Server/PHP/DB package (which is the same as my live site).

I have gone thru every tuitorial and all information on this subject, and unfortunately I can't get the server set up correct. Other than my page not showing in a browser (or live view) when I try to view it, DW just says: "Dynamically-related files could not be resolved because the site definition is not correct for this server" when I have index.php open and try to find the files.

One major question is I am unsure of what folder to have as the root folder of the site, which has a public_htlm directory and www directory - or do I just use the main folder they are both located in as the root folder?

(Not to get too deep with this first question, but I also looked at the error log file in Apache c:\xampp\apache\logs\error.log and it is not finding the following:

[Tue Oct 09 14:26:38.573504 2012] [:error] [pid 3100:tid 1488] [client ::1:56261] script 'C:/xampp/htdocs/BusinessTube/index_e5pebna8e.php' not found or unable to stat]

I'm guessing that the file "index_e5pebna8e.php" is a cached version of the file generated by index.php - but I'm unsure why it is not being 'found'.)

Second question is about having to set the php.ini file to listen to port 88 as this computer also has IIS installed. I have done this, and it works with a local project directly from NetBeans (which I have to use for a PHP development class). How will this change my DW site definitions? I'm assuming that anywhere I would have localhost I will now need to have localhost:88 but once again I'm not sure.

I am eager to get this site working locally so I can start using the new PHP skills I'm learning - any help will be GREATLY appreciated.

Kirk

This topic has been closed for replies.

1 reply

David_Powers
Inspiring
October 9, 2012

KBishopp3 wrote:

(Not to get too deep with this first question, but I also looked at the error log file in Apache c:\xampp\apache\logs\error.log and it is not finding the following:

[Tue Oct 09 14:26:38.573504 2012] [:error] [pid 3100:tid 1488] [client ::1:56261] script 'C:/xampp/htdocs/BusinessTube/index_e5pebna8e.php' not found or unable to stat]

I'm guessing that the file "index_e5pebna8e.php" is a cached version of the file generated by index.php - but I'm unsure why it is not being 'found'.)

The random characters appended to index indicate that you're using temporary files to preview in the browser.

Open Preferences from the Edit menu.

Select Preview in Browser from the Category list on the left

Deselect the option to preview using a temporary file.

Second question is about having to set the php.ini file to listen to port 88 as this computer also has IIS installed. I have done this, and it works with a local project directly from NetBeans (which I have to use for a PHP development class). How will this change my DW site definitions? I'm assuming that anywhere I would have localhost I will now need to have localhost:88 but once again I'm not sure.

Correct. When setting Web URL in the Servers section of Site Setup, use http://localhost:88/ followed by the folder name.

KBishopp3Author
Participant
October 9, 2012

Hi David,

I went in and checked the settings for 'Preview in Browser' and the option to use temporary files was not checked. I'm not sure what could be going on (since I didn't create the site, just trying to get familiar and maintain it) making the  index file appended.

I wasn't sure, should the folder 'public_html' be the site root, or should it be the main folder containing all files (including public_html)?

Thank you very much for your reply. I've been reading many of your articles today... I was hoping this might hit your screen.

Kirk

Participating Frequently
October 10, 2012

>I wasn't sure, should the folder 'public_html' be the site root,

>or should it be the main folder containing all files (including public_html)?

It should be set to public_html. The site root is the folder that represents the top level that is accessible from the web. You may have folders above that, but they are not accessible from the web. If you set your site root to a folder above public_html, then your files would be ftp'd to the wrong folders and DW would not manage your links correctly.