Connecting Tech Pros Worldwide Help | Site Map

403 forbidden error

Newbie
 
Join Date: Nov 2008
Posts: 4
#1: Nov 19 '08
Hi Guys

I am getting an error in php.

403 forbidden error when i try to view my picture kept in a folder e.g
www.neuronsoftsols.com/upload/75/johal1.bmp comes an error 403 forbidden?

I cant resolve the error?

Help me out ! ! !
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,642
#2: Nov 19 '08

re: 403 forbidden error


you should check the file permissions. that should give you a clue.

regards
Newbie
 
Join Date: Nov 2008
Posts: 4
#3: Nov 20 '08

re: 403 forbidden error


Well during uploading i had given all the permission like 0777 or 0755or 0775.

I can open only .php file .


No other Format is opening.

Waiting for your reply

Regards
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,642
#4: Nov 20 '08

re: 403 forbidden error


maybe there's a .htaccess file that prevents file access. as for the file permissions, do the files still have the permissions set by you?

regards
Newbie
 
Join Date: Nov 2008
Posts: 4
#5: Nov 20 '08

re: 403 forbidden error



well i can't find the .htaccess on my server where i have uploaded the files ??


please tell me the exact path ?

Regards
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,642
#6: Nov 20 '08

re: 403 forbidden error


it was the only possibility I know besides file permission. bear in mind that on a posix server filenames with a leading dot are system files and thus invisible per default. still you can ask your server admin about system wide settings (like access permission). It could be possible that you can find additional info in the httpd.conf (apache server config file) (dont know how it is on IIS) though none but the server admin (and root) has read (write) permission there.

regards

PS: a .htaccess file affects all files in the current and below directories, you may have to look in the directories above your files.
Newbie
 
Join Date: Nov 2008
Posts: 4
#7: Nov 20 '08

re: 403 forbidden error


I appreciate your advice , Actually I have taken the Web hosting From Yahoo small business site i.e. www.smallbusiness.yahoo.com and i am new to it. When i open its Control Panel , Manage sites is an option where i can see my folders.
Only those Folders are displacing which i had used in my sites.



I had seen many times where i can find the .htaccess but in vain.

I still don't don't know whch server i am using for my php.

I had used phpinfo() to get the information , but i am not getting the server name ?



I cant understand why .php files if i upload can be seen in POP UP WINDOW using Javascript But if i try to open any other format i cant open



Help me out in solving this problem.
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#8: Nov 21 '08

re: 403 forbidden error


Heya, amitverma60.

Are you running Apache or IIS?
Member
 
Join Date: Aug 2007
Posts: 38
#9: Nov 21 '08

re: 403 forbidden error


I find that it is easy for permissions to become corrupted; do a
Expand|Select|Wrap|Line Numbers
  1. CHMOD  -R 777
(or 775) on your upload folder
Reply