Author Topic: Web apps on remaster won't run (permission problems)  (Read 817 times)

Offline Es_PagAn

  • New Friend
  • *
  • Posts: 2
Web apps on remaster won't run (permission problems)
« on: October 12, 2011, 03:16:23 PM »
Hello,

I am remastering pclos2011 and have encountered the following problem:
I installed Apache, Mysql and a web based app that is in the directory /var/www/html/myapp
It runs OK in my installed system, but on the remastered live cd, when trying to run http://localhost/myapp I get an error stating:
"Forbidden
You don't have permission to access /myapp on this server
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request"

In my understanding, it has something to do with the fact that all the directories in the livecd are under /union and symlinked
So,  /var/www/html/myapp is actually /union/var/www/html/myapp and ~var points to /union/var
I have Options FollowSymlinks in apache configuration file, but it won't help.
In the apache error log I get

"symbolic link not allowed or link target not accessible: /var"

Any ideas?

Offline Es_PagAn

  • New Friend
  • *
  • Posts: 2
Re: Web apps on remaster won't run (permission problems)
« Reply #1 on: October 12, 2011, 03:53:19 PM »
Hmm seems to be solved.
In the apache config file, there was a

<Directory />
Deny from all
</Directory>

which, while not causing any trouble in the installed system, it did on the live cd.
Commented out the relevant Directive, and it seems to work now.

Strange thing, having this trouble for 2 days and finding the solution right after posting...