Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
I'm trying to get my website working on my Apache server. I read a reply on moving a website from the var/www/html directory to another directory. The message read that the httpd.conf needed to be modified to show the new path. The advice for Apache server was: "You need to change the DocumentRoot which defines the physical path on your machine where files are served from. Right now it's probably set for /var/www/html, but you can change this to whatever you want.
In my case, I'm doing it with /home/username/www/html."
I modified the httpd.conf and the httpd-perl-conf files according to the above, but when I try to access my site it still pulls up the old site located at var/www/html. Are there other conf files that need modified?
Distribution: Just about anything... so long as it is Debain based.
Other things to try are to reload apache:
Also, inside the httpd.conf there is another line below the document root line that needs altered. Here is the way it looks in a default httpd.conf:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
# First, we configure the "default" to be a very restrictive set of
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# This should be changed to whatever you set DocumentRoot to.
Again, once the changes are made you will NEED to reload Apache to make the changes go into affect.
Thanks for taking the time to lead a newbee. I tried your suggestions but had a few problems. First, the modification of the lines for the Directory can not be done within the httpd.conf. These lines and instructions are included in a file called commonhttpd.conf.
Also, in this file the code reads:
#Restricted set of options
Options -All -Multiviews
Order deny, allow
Deny from all
# Note that..."
#UserDir: The name of the directory which is appended onto a user's home
"commonhttpd.conf" 1016L, 32346C
Above is the entire information in the commonhttpd.conf file.
When you suggest "This should be changed to whatever you set DocumentRoot to.
<Directory "/var/www/html">" how do I write this in? I notice that there is no "/" before directory and that there are also quotation marks around the url. I tried writing it both ways, and no luck.
Please keep in mind, I'm new to this, so if I appear real stupid, please make an allowance.
I reconfigured directory root in a file called httpd2.conf and now the server tries to call up the web files where I want it to, but now when I go to pull up pages I get "Forbidden. You don't have permission to access " " on this server. Now where do I go? Help!
Distribution: Just about anything... so long as it is Debain based.
Permissions... the short of it (Post if you need more...)
If I had to guess the user that Apache is running as does not have read access to that directory.
Do you know who Apache is running as? On some systems it is apache, othes it's web, some it's www-data.
On my RedHat box it is apache. What you will need to do is give the user that is running apache rights to that directory. If you need help with determing who Apache is running as, or how to change file permissions, just let me know or do a quick search on LinuxQuestions and man chmod... I'm sure this has been covered.
Thanks MrKnisely for your quick reply. I'm new at Linux- just a couple weeks into it. So, I get eaasily lost. I've located the website in "home/michael/html" Michael is the user of course. If I change the url of the directory back to var/www/html and use the website that I left there, the pages can be accessed overt he web. The way it stands now in home/michael/html, I don't have permission to view the pages. I'm using Mandrake and when I look at the properties thorugh the GUI of Home/Michael/User the privileges are open to user, group and other- so right now wide open. I can't remember how to pull up the privileges for a directory in the terminal window. I remember chmod and then an ls -1 but it doesn't seem to work- so I'm stuck back with the Gui of Mandrake. Though I can't pull up my pages in home/michael/html, the ftp works fine. ANy help you can give me I'd appreciate. I'm just trying to get the server set likeI need it before leaving Peru for Taipei in a week. I'm going to teach a 3D class at the American School there and just wanted to have and operate my own server for the materials I'll be using and to post student work.
who Apache is running as, or how to change file permissions, just let me know
MrKnisely, one other small question maybe you can help me with. I was playing with creating users and want to delete the old users directories in home but though I have removed them through KDE's GUI, they still come up in the terminal window and rmdir won't let me remove the entire directories until the sub-directories are removed. Then I can't remove the Trash directory- I keep getting not empty. Is there some way to remove the directories (force it) and all the subs? In the first posting I meant to say that I was using KDE as the GUI not Mandrake. Shows how much of a newbee I am!