CentOS Apache can't access to file in home dir
NickName:yadbo Ask DateTime:2017-10-03T04:20:02

CentOS Apache can't access to file in home dir

I have a problem I couldn't solve so far. I'm using CentOS which provides the apache web files in /var/www/html/. Now I got some data, which are loaded by another user, to (let's say) /home/user1/files/.

Every time I want to access those files I get permission denied. Those files and directories (evene parent til root) can be read. (chmod -R o+r /home) But I still get this error, as next step I've created a symlink: /var/www/html/ -> /home/user1/files but still the same error.

Those are files which are updated every day, so I can't copy them over, and a cronjob would be bad because I need them by their time. Copying creats a new inode. (need always latest file).

I would really appreciate an idea.

yadbo

Copyright Notice:Content Author:「yadbo」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/46533121/centos-apache-cant-access-to-file-in-home-dir

More about “CentOS Apache can't access to file in home dir” related questions

Apache Ant 1.8 on CentOS

I am trying to get apache ant 1.8 to work under CentOS. First, I had this error. Error: Could not find or load main class org.apache.tools.ant.launch.Launcher Then I set the following variables

Show Detail

Apache of CentOS 7.2 can not be uninstalled

I want to uninstall Apache of CentOS 7.2,steps are as follow: 1、# systemctl stop httpd.service //Actually,httpd is not running. 2、# rpm -qa|grep httpd //There is nothing,so, use: # yum list|grep ht...

Show Detail

Checking Apache on CentOS

I am trying to run Apache on my CentOS.(I am having very basic knowledge on linux). [Apache Start Stop] using this link i tried to run: apachect1 start But I got -bash apachect1: command not found...

Show Detail

Apache on Centos

I'm trying to setup an Apache according with this tutorial for CentOS 8. By the end of the tutorial, I cannot restart httpd. I get this error: httpd.service - The Apache HTTP Server Loaded: loa...

Show Detail

Docker container CentOs with Apache

I'm toying around with Docker. But i have an issue with Docker when trying to build a Centos and Apache Server in a container. I run Docker on my Windows 10 Machine. The CentOS + Apache container, is

Show Detail

Apache upgrade in CentOS 7

This is my current version of Apache: httpd -V Server version: Apache/2.4.6 (CentOS) Server built: Apr 24 2019 13:45:48 Server's Module Magic Number: 20120211:24 Server loaded: APR 1.4.8, APR-...

Show Detail

How to set up Apache with Tomcat on CentOS

I currently running a Grails app in a Tomcat container on a CentOS box and I have images taking up to 6 seconds to load on my website. They are roughly 500KB each. I've been told a way to improve

Show Detail

Apache not seeing website - CentOS 7

I have setup a lot of Virtual Hosts in Ubuntu but today I needed to do this on a CentOS 7 server. I installed Apache and setup the VHost config but nothing appears when I view the site. I know that

Show Detail

Installing apache modules on CentOS

I am trying to install apache modules on CentOS 8.1. I have a playbook that is working for Ubuntu and need the same tasks on CentOS. vars: libs: - apache2 - libapache2-mod-php ...

Show Detail

Centos 8 apache test page

I have a clean instalation of centos 8 server with the LAMP services installed.However I can only access the apache test page on the machine and not from the network.When trying to open the page the

Show Detail