Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-02-2005, 08:37 AM   #1 (permalink)
In The Zone
 
tuXian's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 364
Default .:: Help Urgent : Apache Webserver Woes ::.


I have hosted a website on apache server but the uploaded images arent showing up.What should I do? Plz dont tell me to check the image path cuz I know the path is correct. Whats more even when Im typing the direct address of the images in the browser it still doesnt show up. Here are the server specs

Operating system: Linux
Kernel version 2.4.28-grsec
Machine Type i686
Apache version 1.3.33 (Unix)

Do I need to change file permissions? or modify some file like .htaccess.

One more thing my HTML files are in the www directory and images in the images directory which is a child directoryof the www.

I need to urgently put the site up ? Plz help

tuXian is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 03-02-2005, 12:32 PM   #2 (permalink)
In The Zone
 
firewall's Avatar
 
Join Date: Mar 2004
Location: Kolkata - INDIA
Posts: 301
Default

hey..

check out the permission of your image directory and also makesure grsecurity is not palying a game with you



a.m
firewall is offline  
Old 03-02-2005, 05:06 PM   #3 (permalink)
In The Zone
 
tuXian's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 364
Default

yes the permission of images directory were the culprit.

I have a doubt can someone clarify please. Before the permissions were

OWNER : Read, Write, Execute
GROUP: Read, Execute
WORLD: Read

This wasnt working and the images were not displayed.

Now the permissions are as follows
OWNER : Read, Write, Execute
GROUP: Read, Execute
WORLD: Read, Execute

Is giving the execute permission to WORLD dangerous? If I remove execute permission of the world the images arent showing up.

Plz reply
tuXian is offline  
Old 03-02-2005, 05:27 PM   #4 (permalink)
In The Zone
 
Join Date: Mar 2004
Location: Chennai
Posts: 331
Default

Hm.. well i dont understand this strange phenomena.. Execute permission allows images to be accessed?!?!??! Who's your host? Ask 'em wats the prob..

anyway.. Execute is not harmful unless u've hosted executable files like EXE, BAT etc.. Usually some sites enable Execute option so that the customers can install programs rite from the server..! Or some spyware sites install spyware directly to your system without downloading..

Btw.. also check if ur .htaccess file has denied permission to open image files....
SmoothCriminal is offline  
Old 03-02-2005, 08:15 PM   #5 (permalink)
In The Zone
 
tuXian's Avatar
 
Join Date: Nov 2004
Location: Hyderabad
Posts: 364
Default

well i have contacted the hosts and awaiting their reply

I dont know much about .htaccess file and from the contents it looks no permission has been denied for images. Heres the contents of the file.

Quote:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.tdomain.com
AuthUserFile /home/tdomain/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/tdomain/public_html/_vti_pvt/service.grp
can someone interpret the file for me?

This file path on the server was /www/.htacess, it was not in the root but in the www directory
tuXian is offline  
Old 04-02-2005, 10:42 AM   #6 (permalink)
In The Zone
 
Join Date: Mar 2004
Location: Chennai
Posts: 331
Default

Oh..! No problem with .htaccess.. I read your thing as seting permissin to image files..! Files & Directories have diff meaning for EXECUTE.. in Directory terms, EXECUTE allows access to files inside it.. So as u said thats the culprit.. Whereas for FILE permission, EXECUTE allows 'executing' the file.. (thats how i unstd ur question)..

Hmm.. well.. .htaccess allows access directory-wise.. For eg if u keep it in www directory, it sets permission to all files in www and also its subdirectories.. So that shd'nt be a prob..

IndexIgnore specifies the list of files that shdn't be listed under your directory listing.. Those have been given here with wildcard chars..

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

I dont see anything wrong in that as well..

Under Limit Get & Post, well the code has no meaning at all.. [order deny, allow] specifies the order in which denial or allowing is done.. since u've given "allow all " after "deny all", this shdnt be a prob.. But it really is a stupid code..

No prb with denying PUT n Delete methods..

Since you haven't required authentication for any methods: PUT, DELETE, GET or POST, Auth code cant cause any prob.. IMO.. nuthing wrong with .htaccess !
SmoothCriminal is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by Krow
- by abhidev
- by topgear

Advertisement




All times are GMT +5.5. The time now is 07:50 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2