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! |
Hi,
can you not make a new directory ("folder" in winspeak) inside /var/www? Evo2. |
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/ |
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?? |
Hi,
you should be able to get rid of that file. Eg to permanently delete it Code:
sudo rm /var/WWW/index.html Evo2. |
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. |