Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT: access denied

Status
Not open for further replies.

RemoteSilicon

Programmer
Feb 13, 2001
45
GB
Hi
I am using apache on Red Hat Linux 7.1. It was working fine until I installed Coffee cup HTML editor. Now its giving me error :
"Forbidden
You don't have permission to access /folder abc/ on this server.


--------------------------------------------------------------------------------

Apache/1.3.19 Server at _default_ Port 80"

I can't figure it out why it is giving me this error. Plz help. I have uninstalled Coffee cup editor but of no use.
 
Hi,

Hmmm.. its difficult to be sure what the installer does as its a binary - however it seems to read the config below which doesn't appear to do anything with Apache as such :

INSTALL=install
install:
$(INSTALL) -m 0644 ./config.default $(HOME)/.htmleditor
echo -n "path: " >> $(HOME)/.htmleditor
echo $(DIR) >> $(HOME)/.htmleditor
echo -n "project_dir: " >> $(HOME)/.htmleditor
echo $(PROJECTS) >> $(HOME)/.htmleditor
echo -n "image_companion: gqview " >> $(HOME)/.htmleditor
echo -n $(DIR) >> $(HOME)/.htmleditor
echo "/graphics/" >> $(HOME)/.htmleditor
$(INSTALL) -m 0755 -d $(DIR)
cp $(HOME)/.htmleditor $(DIR)/user.cfg
$(INSTALL) -m 0700 -d $(PROJECTS)
$(INSTALL) -m 0711 -d $(PROJECTS)/template
$(INSTALL) -m 0711 -d $(PROJECTS)/bookmarks
$(INSTALL) -m 0755 Coffee $(DIR)/Coffee
$(INSTALL) -m 0644 ./template/README $(PROJECTS)/template/README
$(INSTALL) -m 0644 ./template/test.html $(PROJECTS)/template/test.html
$(INSTALL) -m 0644 javascript.dat $(DIR)/javascript.dat
$(INSTALL) -m 0644 dhtml.dat $(DIR)/dhtml.dat
$(INSTALL) -m 0644 cgi.dat $(DIR)/cgi.dat
cp -R ./graphics $(DIR)/graphics
$(INSTALL) -m 0755 -d $(DIR)/hot
$(INSTALL) -m 0644 ./hot/* $(DIR)/hot/
$(INSTALL) -m 0755 -d $(DIR)/sounds
$(INSTALL) -m 0644 ./sounds/* $(DIR)/sounds/
$(INSTALL) -m 0755 -d $(DIR)/iface
$(INSTALL) -m 0644 ./iface/* $(DIR)/iface/
@echo "To run HTML Editor++ type: $(DIR)/Coffee &"

uninstall:
@echo "Configuration file and projects directories will be left"
@echo "To delete them, then run the following commandes:"
@echo ">> rm -rf $(PROJECTS)"
@echo ">> rm -f $(HOME)/.htmleditor"
@echo ""
rm -rf $(DIR)


I looked for the string httpd.conf in the installer and didn't find it so I would guess its just a case of linux permissions.

What do you get from the command 'ls -l /full/path/to/your/forbidden/directory' ?

Hope this helps

 
I'm inclined to agree with ifincham about the permissions. I don't think Coffee Cup has anything to do with this problem. If you created a new "test" directory, make sure it is difined the same as the old one (you said it used to work) and recheck the permissions for the directories and files or else replace your httpd.conf with your back up copy. Don't forget to restart httpd.
 
First of all thanks for your reply. I dont know what the problem was, but I have re-installed apache. Now I can access html pages through IP of the server but when I try to access PHP pages, it gives shows me page code. i.e

<HTML><HEAD></HEAD><BODY><?php echo(&quot;Hello&quot;);></BODY></HTML>

Some thing like this. I have tried every thing but of no use. I have even re-installed PHP modules but nothing happened. Plz help me. I have to complete my project within few days.

Thanks
 
Let's run down your httpd.conf file. First off, you should have these lines and they should be uncommented:

<IfDefine HAVE_PHP>
LoadModule php_module modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>

<IfDefine HAVE_PERL>
AddModule mod_perl.c
</IfDefine>
<IfDefine HAVE_PHP>
AddModule mod_php.c
</IfDefine>
<IfDefine HAVE_PHP3>
AddModule mod_php3.c
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>

They will follow your LoadModule and AddModule sections respectively. Then look to see if this section is in there. I think this is where your problem is:

#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP 3.x module (not part of the Apache distribution - see
# will typically use:
#
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
#
# And for PHP 4.x, use:
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>

#
# For PHP/FI (PHP2), use:
#
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>

Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top