Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 11-23-2010, 11:46 AM   #1
LQ Newbie
Registered: May 2010
Posts: 4

Rep: Reputation: 0
Unhappy Apache Loads Wrong Page

I not a total noob to linux only a noob to apache
I am Running A lamp server on A VPS with but try as i might i cant apache2 to load the right page. I have set document root to /slk/redretriever/
but when i load the page it still loads /var/www/vhosts/default/htdocs/
I cant figure out why please help.

p.s. I am running debian and have full root access
Old 11-23-2010, 11:54 AM   #2
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
One thing you might look at is whether or not the user that apache is run by has permissions to "/slk/redretriever"


Old 11-23-2010, 12:04 PM   #3
Registered: May 2009
Location: NYC
Distribution: Ubuntu 10.04 LTS
Posts: 52

Rep: Reputation: 0
please post your httpd.conf.
usualy it happen if virtual host is incorrect.
for example if your config file has double settings for a one domain.

Last edited by smart_shell; 11-23-2010 at 12:08 PM.
Old 11-23-2010, 01:46 PM   #4
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,843

Rep: Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596

Since the VPS is running debian, you should change the DocumentRoot in /etc/apache2/sites-enabled/default

Old 11-23-2010, 03:35 PM   #5
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
Did you restart Apache after you made the DocumentRoot change?
Old 12-01-2010, 01:27 PM   #6
LQ Newbie
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Cool I figured it out

in my version of apache2 httpd.conf is empty. and the normal apache files do nothing. but there is another file in conf.d

i did not even know this file existed when i asked the question. but this is the file that apache2 listens to first. i changed where the vhost pointed to and viola


apache, debian, lampp, server

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo loads wrong user environment wilibird Linux - Software 6 12-31-2009 12:54 PM
Icedove loads link into wrong browser SlithyTove Debian 17 01-02-2007 11:28 AM
Server locking on page loads? Which? I_AM Linux - Software 2 11-02-2005 09:21 AM
Awstats: page only partially loads pauljtester Linux - Software 1 08-02-2004 09:05 AM
Slow page loads! Lul2x Linux - Software 4 06-27-2004 11:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration