Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Building a local yum repo, would normally download packages to /var/www/html/ and createrepo. The system I am working on, for whatever reason, was built with 20G /var and 195G /home. I did a reposync to /home/repodata. Trying to get httpd to be able to see fqdn/rhel-6-server-rpms.
So I have my repo at
drwxr-xr-x. 2 root apache 4096 Sep 10 16:35 repodata
[root@servername rhel-6-server-rpms]# pwd
/home/repodata/rhel-6-server-rpms
I went to /var/www/html/ and created symlink
lrwxrwxrwx. 1 root apache 34 Sep 11 13:48 rhel-6-server-rpms -> home/repodata/rhel-6-server-rpms/
[root@servername html]# pwd
/var/www/html
I did a recursive chown to root:apache on /var/www and /home/repodata
I did a chmod 755 on all same
Not sure what I am missing here.
When I view httpd ssl_error_log I see
[Tue Sep 11 18:00:10 2018] [error] [client xx.xx.xxx.xxx] Symbolic link not allowed or link target not accessible: /var/www/html/rhel-6-server-rpms
I have messed with my httpd.conf file and did
<Directory />
Options None
AllowOverride All (changed from None)
</Directory>
Thank you, I will try that as well. I had turned off SELINUX just to see if that was the issue, but the error persists. Really feels like a perms issue or security and of course the longer you look at it the more confusing. Shouldn't be that hard.
Then I don't know. But if all you need is a very simple web server, httpd is maybe overkill. Here's something very simple:
Code:
cd /home/repodata/rhel-6-server-rpms
python -m SimpleHTTPServer
If you run this in a terminal, it starts a very simple webserver, and it's listening on port 8000 by default. And you will see the "log" in the terminal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.