Login error and permissions error [message #1424] |
Mon, 07 July 2008 02:10 |
jsmeaton
Messages: 9 Registered: May 2008
|
Junior Member |
|
|
Hi Tony
Two queries for you..
Firstly, I can't log in even to a sample application. Following is the error I receive:
Fatal Error: File /latcs7/sys/httpd/htdocs/08pra06/source/radicore/xsl/std.det ail1.xsl does not exist... (# 256).
Error in line 949 of file '/home/team/08pra06/public_html/source/radicore/includes/inc lude.xml.php5.inc'.
Script: /08pra06/source/radicore/menu/logon.php
Which is correct, because latcs7/sys/httpd/htdocs/etc is NOT what should be showing up as our root.
For instance, our .htaccess file has the directive:
"php_value include_path ".:/home/team/08pra06/public_html/source/radicore/includes""
So I'm unsure why it is looking for our root to be the document root instead of a relative path from the includes directory.
I added my own debugging echo's and returned this information:
DEBUGGING INCLUDES/INCLUDE.XML.PHP5.INC >>>
DIR >> /08pra06/source/radicore
DOC ROOT >> /latcs7/sys/httpd/htdocs
FILENAME >> /latcs7/sys/httpd/htdocs/08pra06/source/radicore/xsl/std.det ail1.xsl
XSL_URL >> HTTP://[HOST-REMOVED]/08pra06/source/radicore/xsl/std.detail 1.xsl
----------------------
What I'm getting at is.. the XSL URL is the correct url for the file - yet the $filename property is looking in the wrong place.. namely the doc root of the entire web-server.. not our own local doc_root. $filename = $_SERVER['DOCUMENT_ROOT'] seems to be causing the problem. Do you know if this would be a server issue? Also, by editing this file to look for a relative path rather than the absolute.. will we potentially cause problems? Is $_SERVER['DOCUMENT_ROOT'] going to appear elsewhere and cause us similar problems?
-----------------------
Now a quicky regarding file permissions. The files we need to make writeable (errorlog.html for example) need to have a 777 permission correct? Isn't this a major security issue? Shouldn't a local script be doing the writing to files and then in essence it would only require that owner and group have write permission? 755 for everyone else?
Thank you for your help once again.
|
|
|