Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » RADICORE Suggestions » path generalization
path generalization [message #902] Wed, 04 July 2007 18:17 Go to next message
evrix is currently offline  evrix
Messages: 3
Registered: July 2007
Junior Member
don't blame me for this Confused
but i have been struggling a bit to have radicore work in a user directory under linux (/home/<myself>/public_html/radicore) because of line 633 in include.xml.php5.inc of sample radicore app (http://www.tonymarston.net/sample/sample-application.zip) which uses $SERVER['DOCUMENT_ROOT'] to build a part of a path; this made some paths start with "/var/www/" instead of the correct one so i changed the whole line from
$filename = $_SERVER['DOCUMENT_ROOT'].dirname($_SERVER['PHP_SELF']) .'/xsl/' .$xsl_file;
to
$filename = dirname($_SERVER['SCRIPT_FILENAME']) .'/xsl/' .$xsl_file;
and now it works

ps: i found a similar problem in a post about installation issues in which a solution is proposed to use rewrite rules in htaccess in order to have radicore work in "unusual" paths and i wonder (and ask... Very Happy ) if mine is an adoptable solution too
thanks

ps2: a found a similar declaration at line 849 in "official" include.xml.php5.inc file; i guess i could make the same modification there too
Re: path generalization [message #903 is a reply to message #902] Wed, 04 July 2007 19:13 Go to previous messageGo to next message
AJM is currently online  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
All of Radicore should be installed somewhere under $_SERVER['DOCUMENT_ROOT'] except the 'includes' directory, whose location should be identified in the htaccess file.

That is the way it works on my two PCs, and my web host, and I do not experience any problems. If you install Radicore as instructed you should not experience any problems either. What directory structure are you using?


Re: path generalization [message #904 is a reply to message #903] Thu, 05 July 2007 02:46 Go to previous messageGo to next message
evrix is currently offline  evrix
Messages: 3
Registered: July 2007
Junior Member
AJM wrote on Thu, 05 July 2007 01:13

All of Radicore should be installed somewhere under $_SERVER['DOCUMENT_ROOT'] except the 'includes' directory, whose location should be identified in the htaccess file.

That is the way it works on my two PCs, and my web host, and I do not experience any problems. If you install Radicore as instructed you should not experience any problems either. What directory structure are you using?


i made no change to the structure i got right after unzipping packages i downloaded: i have a directory named radicore containing the radicore installation and a sample directory containing the sample files from the link i posted before; the only thing is that i put them in /home/bruno/public_html/ instead of in /var/www/, so this is my complete structure:

/home/bruno/public_html/radicore:
/home/bruno/public_html/radicore/audit:
/home/bruno/public_html/radicore/audit/classes:
/home/bruno/public_html/radicore/audit/help:
/home/bruno/public_html/radicore/audit/help/en:
/home/bruno/public_html/radicore/audit/reports:
/home/bruno/public_html/radicore/audit/reports/en:
/home/bruno/public_html/radicore/audit/screens:
/home/bruno/public_html/radicore/audit/screens/en:
/home/bruno/public_html/radicore/audit/sql:
/home/bruno/public_html/radicore/audit/sql/mysql:
/home/bruno/public_html/radicore/audit/sql/oracle:
/home/bruno/public_html/radicore/audit/sql/postgresql:
/home/bruno/public_html/radicore/audit/text:
/home/bruno/public_html/radicore/audit/text/en:
/home/bruno/public_html/radicore/audit/xsl:
/home/bruno/public_html/radicore/css:
/home/bruno/public_html/radicore/css/blue:
/home/bruno/public_html/radicore/css/default:
/home/bruno/public_html/radicore/css/emerald:
/home/bruno/public_html/radicore/css/plum:
/home/bruno/public_html/radicore/default:
/home/bruno/public_html/radicore/default/classes:
/home/bruno/public_html/radicore/default/help:
/home/bruno/public_html/radicore/default/help/en:
/home/bruno/public_html/radicore/default/reports:
/home/bruno/public_html/radicore/default/reports/en:
/home/bruno/public_html/radicore/default/screens:
/home/bruno/public_html/radicore/default/screens/en:
/home/bruno/public_html/radicore/default/sql:
/home/bruno/public_html/radicore/default/sql/mysql:
/home/bruno/public_html/radicore/default/sql/oracle:
/home/bruno/public_html/radicore/default/sql/postgresql:
/home/bruno/public_html/radicore/default/text:
/home/bruno/public_html/radicore/default/text/en:
/home/bruno/public_html/radicore/default/xsl:
/home/bruno/public_html/radicore/dict:
/home/bruno/public_html/radicore/dict/classes:
/home/bruno/public_html/radicore/dict/help:
/home/bruno/public_html/radicore/dict/help/en:
/home/bruno/public_html/radicore/dict/reports:
/home/bruno/public_html/radicore/dict/reports/en:
/home/bruno/public_html/radicore/dict/screens:
/home/bruno/public_html/radicore/dict/screens/en:
/home/bruno/public_html/radicore/dict/sql:
/home/bruno/public_html/radicore/dict/sql/mysql:
/home/bruno/public_html/radicore/dict/sql/oracle:
/home/bruno/public_html/radicore/dict/sql/postgresql:
/home/bruno/public_html/radicore/dict/text:
/home/bruno/public_html/radicore/dict/text/en:
/home/bruno/public_html/radicore/dict/xsl:
/home/bruno/public_html/radicore/images:
/home/bruno/public_html/radicore/images/samples:
/home/bruno/public_html/radicore/includes:
/home/bruno/public_html/radicore/includes/font:
/home/bruno/public_html/radicore/includes/font/makefont:
/home/bruno/public_html/radicore/menu:
/home/bruno/public_html/radicore/menu/classes:
/home/bruno/public_html/radicore/menu/docs:
/home/bruno/public_html/radicore/menu/help:
/home/bruno/public_html/radicore/menu/help/en:
/home/bruno/public_html/radicore/menu/reports:
/home/bruno/public_html/radicore/menu/reports/en:
/home/bruno/public_html/radicore/menu/screens:
/home/bruno/public_html/radicore/menu/screens/en:
/home/bruno/public_html/radicore/menu/sql:
/home/bruno/public_html/radicore/menu/sql/mysql:
/home/bruno/public_html/radicore/menu/sql/oracle:
/home/bruno/public_html/radicore/menu/sql/postgresql:
/home/bruno/public_html/radicore/menu/text:
/home/bruno/public_html/radicore/menu/text/en:
/home/bruno/public_html/radicore/menu/xsl:
/home/bruno/public_html/radicore/sample:
/home/bruno/public_html/radicore/sample/classes:
/home/bruno/public_html/radicore/sample/help:
/home/bruno/public_html/radicore/sample/help/en:
/home/bruno/public_html/radicore/sample/images:
/home/bruno/public_html/radicore/sample/pictures:
/home/bruno/public_html/radicore/sample/screens:
/home/bruno/public_html/radicore/sample/screens/en:
/home/bruno/public_html/radicore/sample/sql:
/home/bruno/public_html/radicore/sample/sql/mysql:
/home/bruno/public_html/radicore/sample/sql/oracle:
/home/bruno/public_html/radicore/sample/sql/postgresql:
/home/bruno/public_html/radicore/sample/text:
/home/bruno/public_html/radicore/sample/text/en:

ps: thanks for fast answer
Re: path generalization [message #905 is a reply to message #904] Thu, 05 July 2007 04:41 Go to previous messageGo to next message
AJM is currently online  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
If your $_SERVER['DOCUMENT_ROOT'] is set to '/home/bruno/public_html' there should be no problem.

If your document root is '/var/www' then that is where all the files should be installed.


Re: path generalization [message #906 is a reply to message #905] Thu, 05 July 2007 05:45 Go to previous messageGo to next message
evrix is currently offline  evrix
Messages: 3
Registered: July 2007
Junior Member
AJM wrote on Thu, 05 July 2007 10:41

If your $_SERVER['DOCUMENT_ROOT'] is set to '/home/bruno/public_html' there should be no problem.

If your document root is '/var/www' then that is where all the files should be installed.


i see...
but i have apache userdir mod enabled (just not to need to modify files as root... i might as well have changed /var/www permissions and owner since it's all on my home pc) so the document_root set in apache.conf is not the only place where things may be placed
i mean: what if i installed radicore on an host with a similar configuration? something like:
/home/guest1/public_html
/home/guest2/public_html
and so on, with vhosts configured so that, e.g.:
www.guest1.com refers to /home guest1/public_html
www.guest2.com refers to /home guest2/public_html

sorry for my insinstence but i can't get the point...
Re: path generalization [message #907 is a reply to message #906] Thu, 05 July 2007 06:08 Go to previous message
AJM is currently online  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
It is the standard to install everything under $_SERVER{'DOCUMENT_ROOT']. When deployed on a publicly-accessible server it is good practice to put certain files, such as those containing passwords, outside the document root.

There is no good reason to install the whole of Radicore outside the document root, so if you try it and it doesn't work then that is not a problem that I am going to fix.


Previous Topic: std.encryption.class.inc
Next Topic: Future options
Goto Forum:
  


Current Time: Thu Mar 28 05:27:54 EDT 2024

Total time taken to generate the page: 0.01106 seconds