Jump to content

Change DocumentRoot to a folder in Win7


liamoco

Recommended Posts

Hello, I am currently dual booting win7 and Linux Ubuntu, I have install xampp on both OS, on win7 I have the DocumentRoot  directing to a folder on my desktop. On my Linux OS I also change the httpd.conf file to direct to that same folder on my win7 desktop, but when I tried to view the web pages on my browser I'm getting a forbidden error. Are there any permissions I need to change how do I do this? Why am I having these problems. If I need to specify any more details please say.

 

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

 

 

Thanks :)

Link to comment
https://forums.phpfreaks.com/topic/223722-change-documentroot-to-a-folder-in-win7/
Share on other sites

You have to mount the Windows drive partition in Ubuntu (it may be already, depending how you installed it) and point Apache to the path in there: "C:\XAMPP\whatever" will not work - it'll look more like "/mnt/windows/C/XAMPP/whatever".

 

Depending on the mount options, you might not have to worry about permissions. Linux can't use its permissions system on NTFS partitions; typically the fake permissions are set like "everybody can read, nobody can write" or "everybody can read and write". You'll probably want the latter.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.