Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
APACHE question
Name: payodeniit.edu Date: November 10, 2004 at 20:14:10 Pacific OS: Linux CPU/Ram: 1500 XP 512 mb
Comment:
I've just started running my apache server. I set up a homepage in /var/www/html/ etc. But when i try and include in image in a folder /var/www/images/ it will not display it in apache, but it will display it on my local machine. What kind of privileges should i set. Also, is it a bad idea to have a folder devoted directly to images and logos. Thanks in advance
Name: b0red Date: November 10, 2004 at 20:56:40 Pacific
Reply:
The usual permissions required for apache to serve are: Owner: Read/Write Group: Read Other: Read
(chmod 644)
Also, any directories you make need to be: Owner: Read/Write/Execute Group: Read/Execute Other: Read/Execute
(chmod 755)
Apache runs as a low level user for security reasons, so others have to be able to read the files (and execute to view directory contents).
About your images directory folder, yes it is good to keep html files seperated from images , use whatever directory structure makes the most sense to you.
0
Response Number 2
Name: b0red Date: November 10, 2004 at 21:04:14 Pacific
Reply:
Oops, I forgot to mention: if your documentroot is /var/www/html you shouldn't have a directory above that for images, the images directory and all other directories you create should be under the documentroot.
Summary: I got the latest version of apache, but in my access.log file refs are not displayed. Anyone know how to fix this? Or does anyone know any forums online that actually know anything about apache? ...
Summary: Hey guys, i know this is really not a development question but i need to get apache running so i can use php and mysql, i downloaded the ready to use version for windows and started it, and right away...
Summary: I have a question regarding Apache version 2.0.52-9. I am trying to change the DocumentRoot to another physical drive mounted under /mnt/data. I change the necessary settings in httpd.conf, restart ...