Using PHP with WAMPSERVER
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 10, 2009 03:56PM

Morning!

I was wondering if you could guide me to what the proper file structure is for
PHP in order to run 100% flawless on wampserver or any other server for that
matter, and what I mean by this follows below:


I know that after you setup WAMPSERVER it creates a folder on the harddrive of
your choice which I will try to keep it simple: c:/wamp

And I know in that folder from what I gather wampserver looks for a folder called
www hence it would be: c:/wamp/www and this is where your suppose to put a
folder for the name of your website lets call it www.fudge.com so the wampserver
folder would look like this:

C:/wamp/www/fudge.com


and this is where I get lost.....


in the folder for my website fudge what should the file struucture be?

what folder goes into what to make the website so it runs faster and is searched faster?

Also where do the following folders come into play and in what folder and file structure
should they be in?


autorespond, cpanel, fantasticodata, htpasswords, sqmaildata, and trash and why do
they have a period before the names?


And what about the folders for access-logs, etc, ioncube, mail, Mydd, public_ftp,
public_html, root, and tmp?


I know I am asking alot here, but I think it will save a lot of questions for others that are
new to using PHP and using wampserver to host their websites.


Thanks


Randy

PS: If anyone is in the United States and wouldn't mind helping me over the phone,
I do have free calling for the whole us would you please email me your phone number
and the best time to call - Thanks

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote
Re: Using PHP with WAMPSERVER
Posted by: Dygear (---.nycmny.fios.verizon.net)
Date: August 10, 2009 05:41PM

1. The www dir.
The WWW folder you see in your wamp dir is in fact what the domain localhost points too.
So by making a sub-folder fudge.com, your in fact making your website operate like this:
[locahost]
I understand that's not your desire, so I would recommend that you take all of the contents of fudge.com and copy them to your www folder.
2. The folders have periods before their names because they are hidden from public view. Inside of your htaccess file you might find a rule that excludes these directories from public view without a password.
3. I take it your doing this for a company, and that they expect you to operate multiple websites on one computer. WAMP does not have tech support, so I would recommend going with a professional hosting company.

Options: ReplyQuote
Re: Using PHP with WAMPSERVER
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 10, 2009 06:00PM

sorry you lost me....

This is not for a company its for me, and I thought that what ever websites are in

c:/wamp/www/


example:


c:/wamp/www/fudge.com
c:/wamp/www/bettybop.com
c:/wamp/www/usedcars.com

that with www.zoneedit.com and vhost that wampserver would work with more then one website on one dns
virtual host.


Also does php websites not require any special folder structure?

or is it that if you use a wysiwyg website design application and then convert the html files to php
you just take the website and put it in the C:/wamp/www/websitename.com folder and add it they all are searchable and capable to run on wampserver together?


Randy

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote
Re: Using PHP with WAMPSERVER
Posted by: Dygear (---.nycmny.fios.verizon.net)
Date: August 10, 2009 06:23PM

The special structure is really defined on a per site basis, what ever your site is using as a Content Management System will depend on how the directory is meant to be laid out. If you have a zip file or something of that kind, then all you need to do is unzip to the desired 'public' directory.

I did not know you where doing this with virtual hosts. Personally, I've never setup virtual hosts on my own box, as I just use WAMP as a development environment and copy the site I happen to be working on for that day into the www directory. With that said, it would seem that this website has some tips on that subject:

blog.jlbn.net

Options: ReplyQuote
Re: Using PHP with WAMPSERVER
Posted by: yfastud (Moderator)
Date: August 10, 2009 06:36PM

vh is used to host more than 1 site, so this structure is correct

c:/wamp/www/fudge.com
c:/wamp/www/bettybop.com
c:/wamp/www/usedcars.com

however, the structure for each is up to user, it's you, that means you put in there what you want to show up for each site

to setup vh, follow this
[blog.jlbn.net]

if checking the end of this guide, you see the structure of JLBN.net

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides



Edited 1 time(s). Last edit at 08/10/2009 06:49PM by yfastud.

Options: ReplyQuote
Re: Using PHP with WAMPSERVER
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: August 11, 2009 12:58AM

WampServerGuy Wrote:
-------------------------------------------------------
>
>
>
> Also where do the following folders come into play
> and in what folder and file structure
> should they be in?
>
>
> autorespond, cpanel, fantasticodata, htpasswords,
> sqmaildata, and trash and why do
> they have a period before the names?
>
>
> And what about the folders for access-logs, etc,
> ioncube, mail, Mydd, public_ftp,
> public_html, root, and tmp?
>
>

Those folders have no meaning to WAMP. These folders are from your existing webhost, you do not need to worry about these. These are for your webhosts use ONLY.

Just place all your sites files in C:/wamp/www/www.sitename.com/

Go to [localhost] to run your site locally. Once you have finished developing just upload the files located in C:/wamp/www/www.sitename.com/ to your website

Options: ReplyQuote
Re: Using PHP with WAMPSERVER
Posted by: WampServerGuy (---.cncdnh.fast.myfairpoint.net)
Date: August 11, 2009 01:54AM

I thought the reason for wampserver was that it works in conjunction with vitural host, zoneedit, and having ones own dns i;e; ones own webhost?


Randy

Any and all help is GREATLY APPRECIATED

The WampServerGuy

rc2472400@yahoo.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.