Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

File structure

  Date: Dec 14    Category: Unix / Linux / Ubuntu    Views: 437
  

I want to use my computer as a web development machine and am finding
it hard to understand the file structure.

In windows setting up wampp I have a htdocs file to load my pages and
web programs in, but where do I set up files for my web pages now that
I have loaded the packages for a server in linux?

I have played with my system and loaded mediawiki and all works well
when I type localhost in the browser. where would I find my localhost
directory (htdocs) for my web pages and program files like wordpress?

I am to new to Linux, I guess, to understand the user help docs. I
have tried to follow the file structure but am failing to understand
this please help.

Share: 

 

3 Answers Found

 
Answer #1    Answered On: Dec 14    

Try looking under /var/www - but it's owned by root, so you'll need to type

sudo chown user:user /var/www

in a terminal, replacing 'user' with your username and entering your
logon password when prompted.

 
Answer #2    Answered On: Dec 14    

I found the directory but notice redirects to other locations for the
media wiki files. My next question is how do I put the files in my
user directory and make a redirect from the /var/www directory?

Maybe a better question is, what is a redirect called in linux so I
can talk about this without an interpreter? or maybe find answers
without bothering forum members with questions I should be answering
by digging.

 
Answer #3    Answered On: Dec 14    

A "redirect" in Linux/UNIX is called a link. In your case a "soft"
link. Read up on links. You can put your web DocumentRoot in
/var/www/whatever where whatever is a link to where the docs really are.
You can also change the apache2 configuration files (in /etc/apache2
to point to wherever you want it to. I use /web since my files are on a
separate drive.

 
Didn't find what you were looking for? Find more on File structure Or get search suggestion and latest updates.




Tagged: