LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using Apache on Linux (https://www.linuxquestions.org/questions/linux-newbie-8/using-apache-on-linux-4175508320/)

L.Jones 06-17-2014 10:39 PM

Using Apache on Linux
 
I'm doing a bit of web development and I've recently switched from Windows 7 to Linux Mint.

On my Windows computer I would store the websites that I was working on in the htdocs/myfiles folder. It would seem that the Linux equivalent is the var/www folder. However, I am finding that all I can do there is edit the current html.index file and I am unable to store multiple website in this location as I had previously done in the htdocs/myfiles folder.

I've tried chmod but it hasn't solved the problem.

...what am I doing wrong here?

Where do Linux web developers usually store files for variouse site they are working on?

Thanks!

evo2 06-17-2014 10:45 PM

Hi,

can you not make a new directory ("folder" in winspeak) inside /var/www?

Evo2.

chrism01 06-18-2014 05:21 AM

I think you may find this useful https://httpd.apache.org/docs/curren...blic_html.html or create separate dirs inside /var/www/ as above (or both).

See also https://httpd.apache.org/docs/current/vhosts/

L.Jones 06-19-2014 09:44 AM

Evo2, after I changed the permissions I was able to create new directories in the www directory. However, I was not able to remove the existing html.index file and when I visit localhost all I see is the html.index file that I can not get rid of.

On my Windows computer I created a folder for each website that I was working on in the htdocs/myfiles folder and when I visited localhost I would see all of my folders (websites) listed there. I would like to recreate that setup on my linux machine.

I've been browsing YouTube looking for a videos on this topic, but all I get are video showing me how to install apache : (

chrism01, thanks for the links. The virtual hosting link looks like it might be a solution, but I was hoping to just find the right directory to put my files in.

I would imagine that Linux developers also have more than one website they want to work on... where are these sites usually stored? Or do they usualy configue apache virtual hosting??

evo2 06-20-2014 05:47 AM

Hi,

you should be able to get rid of that file. Eg to permanently delete it

Code:

sudo rm /var/WWW/index.html

Evo2.

L.Jones 06-20-2014 03:36 PM

Evo2 that was it!

I tried to remove it before but clearly I was doing something wrong ; )

Thanks for the help.


All times are GMT -5. The time now is 10:12 PM.