Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 13th November 2008, 02:40
mk1336 mk1336 is offline
Junior Member
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Linux Apache htdocs permission at run time


I installed APache 2.2 + Tomcat 5 + SSL and they run perfect.

the program upload a document or documents(pdf,ppt) on APache htdocs with java web application.
but when I want to browse it I get forbidden file access,
then I have to go the htdocs directory and run the chmod command like:

chmod 755 the_name_document.

after that the program can access that file.

The java application and Apache/htdocs directories
Owner and group are:
drwxr-xr-x root root.

how can I solve this problem? should I write a perl script to change the permission at run time.
I am not expert on Linux too.

Reply With Quote
Sponsored Links
Old 18th November 2008, 23:05
marpada marpada is offline
Senior Member
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts

I guess you should set a umask of 022 somewhere, maybe in user apache bash init script?
Nexium attorney

Last edited by marpada; 13th May 2011 at 02:56.
Reply With Quote


Thread Tools
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache virtualhosts permission deneid rolamento Installation/Configuration 3 23rd July 2006 02:36
How to Upgrade Apache on Suse Linux 9.3 Pro rfburn Installation/Configuration 2 1st July 2006 22:37
mod_mono apache 2.2 ColdDoT Server Operation 5 23rd May 2006 03:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45
Setting up Apache to Run on SuSe TacitCracker Server Operation 0 20th November 2005 00:25

All times are GMT +2. The time now is 10:05.

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