Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi,
I've installed Apache 2.0 successfully on Mandrake 10.1, but now I can't get it display any files in the Document Root. All I get is a standard welcomes/test page saying, "Congratulations! The Web Server software on this system is operational. If you're the webmaster of localhost, you may now add content to this directory and replace this page. " and so on. Do I need to finish configuring something first?
Originally posted by PiGuy Hi,
I've installed Apache 2.0 successfully on Mandrake 10.1, but now I can't get it display any files in the Document Root. All I get is a standard welcomes/test page saying, "Congratulations! The Web Server software on this system is operational. If you're the webmaster of localhost, you may now add content to this directory and replace this page. " and so on. Do I need to finish configuring something first?
If you are using the default document root (should be some thing along the lines of /var/www/localhost/htdocs for Linux) you'll need to remove the standard index pages that come with Apache.
I've done that, and replaced it with my own index.html. When that didn't work I've now moved it to a different location and it still shows the same thing. I can't figure out where this thing is stored.
Originally posted by PiGuy I've done that, and replaced it with my own index.html. When that didn't work I've now moved it to a different location and it still shows the same thing. I can't figure out where this thing is stored.
Have you tried restarting the Apache Webserver? Configuration changes in the main config files require a restart.
I don't know how Mandrakes Init Scripts Work but you should be able to restart Apache with the following command for now :
okay, I got it working by deleting the files in the /var/www/html directory... why is this the main dir, and why does Apache tell me its in /usr/local/apache2/httpd? And now how can I change the DocumentRoot from /var/www/html to whatever I want?
Originally posted by PiGuy okay, I got it working by deleting the files in the /var/www/html directory... why is this the main dir, and why does Apache tell me its in /usr/local/apache2/httpd? And now how can I change the DocumentRoot from /var/www/html to whatever I want?
There should be an Apache configuration file. It looks like Mandrake may have a different default configuration for Apache than other distros as normally with Linux the default DocumentRoot is in /var/www/hostname/htdocs
As for your question, it is common for programs on *nix based systems to store their files in different directories as each directory on the root partition has it's own purpose.
/usr/local/apache2/httpd refers to the daemon itself.
If you wish to change the DocumentRoot you can edit your apache configuration file. The name is apache2.conf and it should be somewhere in your /etc directory. Try looking in the /etc/apache2 or /etc directories and if apache2.conf doesn't exist do this :
Mine is in /etc/apache2/commonapache2.conf.I'm using gentoo,took me forever to change it!I kept changing /etc/apache2/apache2.conf but the same page came up,it was driving me nuts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.