Httpd On CentOS 7

Home » CentOS » Httpd On CentOS 7
CentOS 3 Comments

I have read the info on apache 2.4…

I added to the bottom of httpd.conf these lines (and restarted httpd)

———————–

3 thoughts on - Httpd On CentOS 7

  • Lots of potential issues:

    1. /home/ is not labeled correctly for httpd stuff if selinux is on.

    You would need to chcon the /public_html/ dir to label it for httpd

    2. if that is a user’s home, it likely got created looking like this:

    drwx——. 132 jhughes jhughes 12288 Oct 23 06:21 jhughes

    you would need to give apache permission for access .. so that would likely need to become

    drwxr-xr-x.

    (chmod 755)

    also, you would need to make public_html under the home chmod 755 as well.

  • l>ikely need to become

    Johnny,

    selinux is disabled. with SELINUX=disabled in /etc/selinux/config

    It is a users home… I did have permissions set….

    drwxr-xr-x. 34 silentm silentm 4096 Oct 22 21:27 silentm

    drwxr-xr-x. 22 silentm silentm 8192 Oct 20 08:40 public_html

    drwxr-xr-x. 3 silentm silentm 28672 Oct 17 10:52 gifs

    Anything else?

    Jerry

  • I stumbled into it based on Johnny’s reply… Got me thinking that there must be a new control for “per user” directories. And there is …. conf.d/userdir.conf

    had per user disabled.

    Thanks Johnny.

    Jerry