Re: [PHP] Apache File Quesiton
Ok, not yet... If the file I want to test resides in My Documents\Sites\nameofsite, I set my Test server folder in DW to map to here...correct? Now down to URL prefix, I have tried http://localhost http://localhost/sitename C:/xampp/apache,( which btw is the Site Root as described in httpd.conf ) C:/localhost/ and a few other variations that are escaping me at this moment, but keep getting an error. Some other BG info Server Model : PHP Mysql Access : Local/Network Testing server folder: C:\Documents and Settings\myname\My Documents\sites\barrister\ (barrister is the name of the file and site) URL Prefix http://localhost/barrister/ (currently) What am I missing (besides a fundemental understanding of it). Murray planetthought...@gmail.com wrote in message news:6481f4d0901092018g31d9a08fkd0321e1532c85...@mail.gmail.com... In general, as Phpster points out, your development will take place in directories underneath your htdocs directory, which, if you installed XAMPP into the root directory on C:, would be something like C:\xampp\htdocs\yourdevdirectory. Depending on how XAMPP is configured (you can make many changes, for example, to the Apache conf files to determine Apache's behaviour), you would probably use a URL of http://localhost/yourdevdirectory/index.php etc to access your actual application. This is not to mention that you can go on to setup virtual sites, so that you could access your site as http://yourapplicationname/index.php. M is for Murray On Sat, Jan 10, 2009 at 12:13 PM, Gary gwp...@ptd.net wrote: Not sure how to word this, but I have just installed the XAMMP package with Apache, PHP for the purpose of having a testing server. My confusion is the location of the files. I am using Dreamweaver CS3, and all of my sites were in My Douments\Sites. When I was trying to set up the testing server in DW, I directed it to http://localhost. I was pretty sure it was not going to work, and I was right. I then created a folder in C:\xammp\htdocs\ and directed it to there...again no go. Part of my confusion is that if I create a page as I normally do, and it is stored in My documents\Sites\sitename, then there is no file that is then created in the C:\xammp\htdocs\. So, does it make sense for me to simply put all of my local files in the tester server root folder? Or am I going about it wrong? Thanks Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache File Quesiton
The fundamental thing you're missing, as I understand it (I'm sure someone will speak up if I'm wrong), is that you shouldn't be storing your site outside the htdocs directory. This is where Apache looks for files it can display in your browser. So, you need to move all of the files you have in My Documents\Sites\nameofsite to \xampp\htdocs\nameofsite in your xampp installation location. I presume you can point Dreamweaver at this directory as the root of your project once you've copied / moved the files across. It sounds like My Documents\Sites\etc is simply Dreamweaver's default preference. Once you've moved your files into \xampp\htdocs\nameofsite, try going to the following in your browser: http://localhost/nameofsite (or, as you pointed out, your files will be in \xampp\htdocs\barrister and you would then go to http://localhost/barristerin your browser). M is for Murray On Sat, Jan 10, 2009 at 11:22 PM, Gary gwp...@ptd.net wrote: Ok, not yet... If the file I want to test resides in My Documents\Sites\nameofsite, I set my Test server folder in DW to map to here...correct? Now down to URL prefix, I have tried http://localhost http://localhost/sitename C:/xampp/apache,( which btw is the Site Root as described in httpd.conf ) C:/localhost/ and a few other variations that are escaping me at this moment, but keep getting an error. Some other BG info Server Model : PHP Mysql Access : Local/Network Testing server folder: C:\Documents and Settings\myname\My Documents\sites\barrister\ (barrister is the name of the file and site) URL Prefix http://localhost/barrister/ (currently) What am I missing (besides a fundemental understanding of it). Murray planetthought...@gmail.com wrote in message news:6481f4d0901092018g31d9a08fkd0321e1532c85...@mail.gmail.com... In general, as Phpster points out, your development will take place in directories underneath your htdocs directory, which, if you installed XAMPP into the root directory on C:, would be something like C:\xampp\htdocs\yourdevdirectory. Depending on how XAMPP is configured (you can make many changes, for example, to the Apache conf files to determine Apache's behaviour), you would probably use a URL of http://localhost/yourdevdirectory/index.php etc to access your actual application. This is not to mention that you can go on to setup virtual sites, so that you could access your site as http://yourapplicationname/index.php. M is for Murray On Sat, Jan 10, 2009 at 12:13 PM, Gary gwp...@ptd.net wrote: Not sure how to word this, but I have just installed the XAMMP package with Apache, PHP for the purpose of having a testing server. My confusion is the location of the files. I am using Dreamweaver CS3, and all of my sites were in My Douments\Sites. When I was trying to set up the testing server in DW, I directed it to http://localhost. I was pretty sure it was not going to work, and I was right. I then created a folder in C:\xammp\htdocs\ and directed it to there...again no go. Part of my confusion is that if I create a page as I normally do, and it is stored in My documents\Sites\sitename, then there is no file that is then created in the C:\xammp\htdocs\. So, does it make sense for me to simply put all of my local files in the tester server root folder? Or am I going about it wrong? Thanks Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache File Quesiton
Gary wrote: Ok, not yet... If the file I want to test resides in My Documents\Sites\nameofsite, I set my Test server folder in DW to map to here...correct? Now down to URL prefix, I have tried http://localhost http://localhost/sitename C:/xampp/apache,( which btw is the Site Root as described in httpd.conf ) C:/localhost/ and a few other variations that are escaping me at this moment, but keep getting an error. Some other BG info Server Model : PHP Mysql Access : Local/Network Testing server folder: C:\Documents and Settings\myname\My Documents\sites\barrister\ (barrister is the name of the file and site) URL Prefix http://localhost/barrister/ (currently) What am I missing (besides a fundemental understanding of it). think of it as having a local and a remote server on one machine; first you have your source files in your /My Documents/sites/ then you have a directory where your web server (the apache part of xampp) looks for files to server (currently C:/xampp/apache/htdocs) now becuase everything is on the one machine you can take 3 different approaches Approach 1: Keep your site files in there current place (my documents) change testing server folder to a folder your web server can see (like c:/xampp/apache/htdocs/barrister now when you test your files will be copied to htdocs/barrister and made available to see by http://localhost/barrister Approach 2: Change the site root in httpd.conf to match your source folder (so change it to C:\Documents and Settings\myname\My Documents\sites) and change the Directory block in httpd.conf to match now you can forget the testing server bit in dreamweaver and simply load up a browser to http://localhost and all you're sites will be displayed there (http://localhost/barrister for the one in question) Approach 3: Use vhosts, but I won't mention until later on, best to get up and running the simple way first :) ps: if you want to do a quick test, simply copy your barrister folder from my documents/sites in to your htdocs folder and open up http://localhost/barrister regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache File Quesiton
Ok, I believe I have it workingmeaning when I click on Live Data View, I see the date appear in my datetest.php page But Im still confused... The succesful configuration (providing I am not suffering from premature exhuberation) is Testing server folder: c:\xampp\htdocs\barrister (the local settings remained My Documents\Sites\barrister) URL prefix : http://localhost/barrister/ How does that reconcile that in the httpd.conf, the server root is C:/xampp/apache? Gary Nathan Rixham nrix...@gmail.com wrote in message news:4968af26.4050...@gmail.com... Gary wrote: Ok, not yet... If the file I want to test resides in My Documents\Sites\nameofsite, I set my Test server folder in DW to map to here...correct? Now down to URL prefix, I have tried http://localhost http://localhost/sitename C:/xampp/apache,( which btw is the Site Root as described in httpd.conf ) C:/localhost/ and a few other variations that are escaping me at this moment, but keep getting an error. Some other BG info Server Model : PHP Mysql Access : Local/Network Testing server folder: C:\Documents and Settings\myname\My Documents\sites\barrister\ (barrister is the name of the file and site) URL Prefix http://localhost/barrister/ (currently) What am I missing (besides a fundemental understanding of it). think of it as having a local and a remote server on one machine; first you have your source files in your /My Documents/sites/ then you have a directory where your web server (the apache part of xampp) looks for files to server (currently C:/xampp/apache/htdocs) now becuase everything is on the one machine you can take 3 different approaches Approach 1: Keep your site files in there current place (my documents) change testing server folder to a folder your web server can see (like c:/xampp/apache/htdocs/barrister now when you test your files will be copied to htdocs/barrister and made available to see by http://localhost/barrister Approach 2: Change the site root in httpd.conf to match your source folder (so change it to C:\Documents and Settings\myname\My Documents\sites) and change the Directory block in httpd.conf to match now you can forget the testing server bit in dreamweaver and simply load up a browser to http://localhost and all you're sites will be displayed there (http://localhost/barrister for the one in question) Approach 3: Use vhosts, but I won't mention until later on, best to get up and running the simple way first :) ps: if you want to do a quick test, simply copy your barrister folder from my documents/sites in to your htdocs folder and open up http://localhost/barrister regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache File Quesiton
Gary wrote: Ok, I believe I have it workingmeaning when I click on Live Data View, I see the date appear in my datetest.php page But Im still confused... The succesful configuration (providing I am not suffering from premature exhuberation) is Testing server folder: c:\xampp\htdocs\barrister (the local settings remained My Documents\Sites\barrister) URL prefix : http://localhost/barrister/ How does that reconcile that in the httpd.conf, the server root is C:/xampp/apache? That's server root; what you want is DocumentRoot :) here's a bit of an httpd.conf; these are the two bits of concern to you: # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot C:/xampp/apache/htdocs ---AND--- # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. # Directory G:/Apache/httpd/htdocs # # Possible values for the Options directive are None, All, # or any combination of: #Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that MultiViews must be named *explicitly* --- Options All # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # #AllowOverride controls what directives may be placed in .htaccess files # It can be All, None, or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. #. Order allow,deny Allow from all /Directory --- if you read the comments aswell all should be explained :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache File Quesiton
Ok...now that makes sense, I was looking for the documentroot, not the server root... Thanks to everyone ... Im sure I will be back for more... Gary Nathan Rixham nrix...@gmail.com wrote in message news:4968ba7d.5000...@gmail.com... Gary wrote: Ok, I believe I have it workingmeaning when I click on Live Data View, I see the date appear in my datetest.php page But Im still confused... The succesful configuration (providing I am not suffering from premature exhuberation) is Testing server folder: c:\xampp\htdocs\barrister (the local settings remained My Documents\Sites\barrister) URL prefix : http://localhost/barrister/ How does that reconcile that in the httpd.conf, the server root is C:/xampp/apache? That's server root; what you want is DocumentRoot :) here's a bit of an httpd.conf; these are the two bits of concern to you: # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot C:/xampp/apache/htdocs ---AND--- # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. # Directory G:/Apache/httpd/htdocs # # Possible values for the Options directive are None, All, # or any combination of: #Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that MultiViews must be named *explicitly* --- Options All # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # #AllowOverride controls what directives may be placed in .htaccess files # It can be All, None, or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. #. Order allow,deny Allow from all /Directory --- if you read the comments aswell all should be explained :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache File Quesiton
Not sure how to word this, but I have just installed the XAMMP package with Apache, PHP for the purpose of having a testing server. My confusion is the location of the files. I am using Dreamweaver CS3, and all of my sites were in My Douments\Sites. When I was trying to set up the testing server in DW, I directed it to http://localhost. I was pretty sure it was not going to work, and I was right. I then created a folder in C:\xammp\htdocs\ and directed it to there...again no go. Part of my confusion is that if I create a page as I normally do, and it is stored in My documents\Sites\sitename, then there is no file that is then created in the C:\xammp\htdocs\. So, does it make sense for me to simply put all of my local files in the tester server root folder? Or am I going about it wrong? Thanks Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache File Quesiton
Check the httpd.conf file for the location of the web dir. It's the documentroot directive Bastien Sent from my iPod On Jan 9, 2009, at 9:13 PM, Gary gwp...@ptd.net wrote: Not sure how to word this, but I have just installed the XAMMP package with Apache, PHP for the purpose of having a testing server. My confusion is the location of the files. I am using Dreamweaver CS3, and all of my sites were in My Douments\Sites. When I was trying to set up the testing server in DW, I directed it to http://localhost. I was pretty sure it was not going to work, and I was right. I then created a folder in C:\xammp\htdocs\ and directed it to there...again no go. Part of my confusion is that if I create a page as I normally do, and it is stored in My documents\Sites\sitename, then there is no file that is then created in the C:\xammp\htdocs\. So, does it make sense for me to simply put all of my local files in the tester server root folder? Or am I going about it wrong? Thanks Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache File Quesiton
In general, as Phpster points out, your development will take place in directories underneath your htdocs directory, which, if you installed XAMPP into the root directory on C:, would be something like C:\xampp\htdocs\yourdevdirectory. Depending on how XAMPP is configured (you can make many changes, for example, to the Apache conf files to determine Apache's behaviour), you would probably use a URL of http://localhost/yourdevdirectory/index.php etc to access your actual application. This is not to mention that you can go on to setup virtual sites, so that you could access your site as http://yourapplicationname/index.php. M is for Murray On Sat, Jan 10, 2009 at 12:13 PM, Gary gwp...@ptd.net wrote: Not sure how to word this, but I have just installed the XAMMP package with Apache, PHP for the purpose of having a testing server. My confusion is the location of the files. I am using Dreamweaver CS3, and all of my sites were in My Douments\Sites. When I was trying to set up the testing server in DW, I directed it to http://localhost. I was pretty sure it was not going to work, and I was right. I then created a folder in C:\xammp\htdocs\ and directed it to there...again no go. Part of my confusion is that if I create a page as I normally do, and it is stored in My documents\Sites\sitename, then there is no file that is then created in the C:\xammp\htdocs\. So, does it make sense for me to simply put all of my local files in the tester server root folder? Or am I going about it wrong? Thanks Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php