Re: Where do you put all your HTML stuff on a home Linux server?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Fri, Dec 28, 2007 at 12:16:16PM -0500, Chris Snook wrote:
>> Chris G wrote:
>>> 2 - In apache's DocumentRoot (/var/www/html in my case)
>>>
>>>     Messier with permissions if you want to edit HTML without becoming
>>>     root all the time.  Also not so convenient for editing even with
>>> permissions set up OK as it's not in your home directory.
>>
>> For home use, I find 'chown -R luser:luser /var/www/html' to be a
>> suitable
>> solution.  You can also 'ln -s /var/www/html ~/public_html' and then any
>> scripts or html editing apps that look in your home directory will be
>> happy, but you don't need to worry about enabling home directory support
>> in
>> httpd and SELinux.
>>
> Yes, that's one way of doing it (the chown) but it's often necessary
> to fix things after installations which often have to be done as root
> and thus put root owned stuff there.

If you use the home directory option with ~/public_html, you need to make
sure that the home directories have the executable bit set.  (It does not
need read or write, only execute.)  Apache needs this to be able to
traverse the file structure to get to the files.

Symlinking stuff out of var into home directories (or visaversa) is just a
bad idea.  You will then need to make sure that FollowSymlinks is set and
that just opens more security issues.

User directories are not usually turned on in the httpd.conf file by
default.  You will probably have to uncomment some things and restart the
system to get it to work correctly.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux