homepage Welcome to WebmasterWorld Guest from 54.196.63.93
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Testing a new account on a VPS
fish_eye

10+ Year Member



 
Msg#: 3415351 posted 10:42 pm on Aug 6, 2007 (gmt 0)

I am in the process of moving from reselling virtual hosting to VPS (yay!) and I'm also upgrading versions of PHP and MySQL at the same time so I want to test each site before I change the DNS.

The set up on the new VPS is Virtuozzo / WHM / cPanel.

In order to do the testing I create the account and I then access it using the url

http://host.foo.com/~newaccount

In my code I have things like this:

<?php include $_SERVER['DOCUMENT_ROOT'] . '/code/_top.html';?>

When I test I get the following error:

Unable to access /usr/local/apache/htdocs/code/_top.html in /home/newaccount/public_html/index.php on line 32

So.... I have tried to add s new document root to some existing code found in my httpd.conf. The first 3 lines and the last line are existing and the rest is new

<VirtualHost 999.999.999.999>
ServerName host.foo.com
DocumentRoot /usr/local/apache/htdocs
<Directory /home/newaccount>
DocumentRoot /home/newaccount/public_html
</Directory>
</VirtualHost>

It breaks my VPS :(

1) Firstly, am I barking up the wrong tree? If so can you please point me in the right direction.

2) Secondly, if this is roughly correct what am I doing wrong?

Thanks, Sam.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved