Computing.Net > Forums > Web Development > APACHE question

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

Reply to Message Icon

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

Dennis



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: APACHE question

Apache ref question www.computing.net/answers/webdevel/apache-ref-question/1666.html

apache error www.computing.net/answers/webdevel/apache-error/1477.html

Apache's Document Root www.computing.net/answers/webdevel/apaches-document-root/1519.html