LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 11-23-2010, 11:46 AM   #1
deibele1
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 myhosting.com. 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
fordeck
Member
 
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"

Regards,

Fordeck
 
Old 11-23-2010, 12:04 PM   #3
smart_shell
Member
 
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
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,884

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

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

Regards
 
Old 11-23-2010, 03:35 PM   #5
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 395

Rep: Reputation: 33
Did you restart Apache after you made the DocumentRoot change?
 
Old 12-01-2010, 01:27 PM   #6
deibele1
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
/etc/apache2/confd/zz010_psa_httpd.conf

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
 
  


Reply

Tags
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


All times are GMT -5. The time now is 04:11 PM.

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