Linux Apache htdocs permission at run time

Discussion in 'Server Operation' started by mk1336, Nov 13, 2008.

  1. mk1336

    mk1336 New Member

    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
     

Share This Page