PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 06:41:31 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Web apps on remaster won't run (permission problems)  (Read 452 times)
Es_PagAn
New Friend
*
Offline Offline

Posts: 2


« on: October 12, 2011, 04: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?
Logged
Es_PagAn
New Friend
*
Offline Offline

Posts: 2


« Reply #1 on: October 12, 2011, 04: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...
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM