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.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th November 2008, 01: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

Hi,

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.

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

I guess you should set a umask of 022 somewhere, maybe in user apache bash init script?
________
LIST OF FERRARI ENGINES HISTORY
________
Nexium attorney

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

Bookmarks

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 01:36
How to Upgrade Apache on Suse Linux 9.3 Pro rfburn Installation/Configuration 2 1st July 2006 21:37
mod_mono apache 2.2 ColdDoT Server Operation 5 23rd May 2006 02:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45
Setting up Apache to Run on SuSe TacitCracker Server Operation 0 19th November 2005 23:25


All times are GMT +2. The time now is 14:02.


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