Computing.Net > Forums > Web Development > APACHE question

APACHE question

Reply to Message Icon

Original Message
Name: payodeniit.edu
Date: November 10, 2004 at 20:14:10 Pacific
Subject: APACHE question
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


Report Offensive Message For Removal

Response Number 1
Name: b0red
Date: November 10, 2004 at 20:56:40 Pacific
Subject: APACHE question
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 2
Name: b0red
Date: November 10, 2004 at 21:04:14 Pacific
Subject: APACHE question
Reply: (edit)

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.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: APACHE question

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software