Run Web app on CentOS VM
Posted: 16. Jul 2014, 21:02
I have a CentOS 6.5 VM setup as a LAMP server with Windows 8.1 as the host.
I setup a shared folder in Virtualbox that contains a web app. In CentOS, I mounted that shared folder in the htdocs directory.
So, the point of this is for my LAMP server to host a web app that's on the Windows host. When I try to access the web app in a browser, though, I get a 401 Forbidden error, meaning I don't have permission.
Well, for testing purposes, I only have a single html file in the web app folder. After mounting the shared folder via:
I check the permissions in the VM and I have:
for my shared folder and
for my test file.
Now, in Windows and in CentOS I can see and edit the files. So, my only issue is I can't run them in a Web Browser.
Does anyone have any ideas how to make the Windows and Linux permissions work nicely together so I can see the html file in a browser?
I setup a shared folder in Virtualbox that contains a web app. In CentOS, I mounted that shared folder in the htdocs directory.
So, the point of this is for my LAMP server to host a web app that's on the Windows host. When I try to access the web app in a browser, though, I get a 401 Forbidden error, meaning I don't have permission.
Well, for testing purposes, I only have a single html file in the web app folder. After mounting the shared folder via:
Code: Select all
mount -t vboxsf -o rw,exec shared sharedCode: Select all
drwxrwxrwx. 1 root root 4096 Jul 14 12:28 sharedCode: Select all
-rwxrwxrwx. 1 root root 30 Jul 14 12:28 testfile.htmlNow, in Windows and in CentOS I can see and edit the files. So, my only issue is I can't run them in a Web Browser.
Does anyone have any ideas how to make the Windows and Linux permissions work nicely together so I can see the html file in a browser?