Jump to content

Recommended Posts

Are you talking about this bit of httpd.conf

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.php
</IfModule>

 

paste your files in the root directory, what do u mean by root directory?

Yes it is that bit:

 

DirectoryIndex: index.html index.php index.htm index.php3 index.php5

 

should look something like that.

 

When u access http://localhost, ure actually accessing the root of the server. Example i have my root directory on windows: "c:\wamp\htdocs".

i am on windows aswell, if found document root directing to htdocs and further below doucment root htdocs, you mean i should change this directing to my project directory on both of this places.

 

# DocumentRoot: The directory out of which you will serve your

DocumentRoot "C:/Program Files/Apache2.2/htdocs"

 

and another place it says:

 

# This should be changed to whatever you set DocumentRoot to.

#

<Directory "C:/Program Files/Apache2.2/htdocs">

   

 

 

 

Those two lines must be changed equally. U dont have to change the DocumentRoot to match your project directory, just copy/paste your project to "C:/Program Files/Apache2.2/htdocs". Eventhough in a local environment it isnt important to test have your project in the root. U can paste your project in a directory ex: "C:/Program Files/Apache2.2/htdocs/myproject/" and access it via http with "http://localhost/myproject".

The production environment will be basically the same as your local one. Instead of being in the root ex "var/www/html", ull be in ex "var/username/www/html" where html is your root as a user. Talking about shared ones as in dedicated u can do whatever u want. Copy/paste your project files in the root directory of your account by ftp and access the site by your domain or whatever.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.