'm new to Linux and have just set up a dualboot system on a new pc, winxp and ubuntu 9.10..
I need to use some of my win specific software such as dreamweaver to create php and html pages so set up a third partition as ntfs where I could share sites.
Because I really wanted to spend as much time in Ubuntu as possible (and try out other linux based code editors, the Gimp too etc)I set up apache and php in Ubuntu rather than windows by doing "Synaptic > Edit > Mark Packages by task. Select LAMP server and clicking OK."
Opened firefox, entered http://localhost and got the "it works!" page... I eventually found that the default installation's server root is in var/www/
Now, I want to set/change the default to be my third partition so I can save pages there from windows and Ubuntu and serve them.
In the ntfs partition I have created a folder called htdocs, from which I'd like apache and localhost to serve pages. I then right clicked it, selected "Make link", and then copied the resulting "Link to htdocs" and dropped it into var/www/
I placed a file, test.php containing <?php phpinfo();?> in htdocs, and tried http://localhost/test.php but just get a 404 not found.
Obviously my limited understanding of symlinks is faulty, I'd expected that files in htdocs would now be treated as though they were in var/www/, but after scratching my head and googling etc I am no nearer working out how to do this, or what I am doing wrong.
Any help would be very gratefully received!