|
-
Dec 18th, 2008, 06:52 AM
#1
Thread Starter
Frenzied Member
Changing documentroot in Apache on Linux (Ubuntu)
*pls bear in mind i'm a noob to linux*
I installed Ubuntu (8.10) and then got apache and everything working just fine.
Then used gparted to unmount, rename to "data" (but show up in places as "DATA" for what it matters), format to fat32 and created a www folder in there with a php file (index.php) just doing a phpinfo();
Then in etc/apache2/sites-available/default, I changed "DocumentRoot" and "<Directory xx" from /var/www to various values (cause I still dont get this directory nameing) such as /data/www", /media/data/www" and so on.
But each time I restart apache with "sudo /etc/init.d/apache2 restart" it tells me that the directory I change to above does not exits.
How should I specify the path to that www folder on the new partition (data/www) ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|