I know this isn't a Linux or Apache forum, but I am brand new to Linux and am trying to migrate my workflow and server from Win32 to Linux. My site relies heavily on PHP and MySQL. I figured there'd be a lot of people here who have installed and configured Apache 2 under Linux in their quest to master PHP...
I intended to use the pre-configured/included build of Apache 2.0.40 in Redhat 9. The configuration is fine, but my question relates more to the default permissions on the /var/www/html directory.
This directory, which is specified as DocumentRoot in the httpd.conf file, has default permissions of 755 (the owner is 'root' and the group is 'man').
As a result, I can't move any HTML or PHP files into the directory to be served to the public (unless I'm logged in as root). It seems silly to have to authenticate as root just to add pages to the webserver's document root.
I have poured over the Apache documentation, as well as the related documentation included in Redhat 9, and everywhere just says something to the effect of, "On Linux, Apache is ready right out-of-the-box. Simply start the service and add pages to your server by placing them in the DocumentRoot..."
Nowhere does the documentation mention the fact that the permissions prevent you from copying anything to that directory. If I log in as root and move the files that way, it works, but they can't be accessed via the Web because the webserver can't read the files due to the permissions.
How should the permissions be set on that directory (and subdirectories) to allow me to copy files to var/www/html?
Any insights are much appreciated, thanks.