21
noo-b
Re: Version 2.3.3RC
  • 2009/1/29 1:46

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


Quote:

ghia wrote:
If you replace none by inline, you could see where it shows.



i've replace none with inline & cleared my cache..i can't see it anywhere..
I Love Xoops

22
ghia
Re: Version 2.3.3RC
  • 2009/1/29 1:52

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
so C:/Program Files/xampp/htdocs/ is outside document root right ?
Wrong!
C:/Program Files/xampp/htdocs/ is the web root.
Outside is eg. C:/Program Files/xampp/xoops_trust_path/ .
Quote:
i've replace none with inline & cleared my cache..i can't see it anywhere..
Did you update the system module or enable the update template preference?

23
noo-b
Re: Version 2.3.3RC
  • 2009/1/29 2:01

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


Quote:
Did you update the system module or enable the update template preference?


that did the trick...

the system_homepage.html is for the content in the index page



Quote:

C:/Program Files/xampp/htdocs/ is the web root.
Outside is eg. C:/Program Files/xampp/xoops_trust_path/ .



this is confusing i thought xoops_lib = xoops_trust_path

so do i have to create a folder called xoops_trust_path and put xoops_lib inside there and edit my mainfile.php ?
I Love Xoops

24
Mamba
Re: Version 2.3.3RC
  • 2009/1/29 3:30

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
this is confusing i thought xoops_lib = xoops_trust_path

Yes, it is a little bit confusing, so let me explain differently.

And let's forget about XOOPS_TRUST_PATH for right now.

"xoops_lib" and "xoops_data" are directories, which are locations for "XOOPS_PATH" and "XOOPS_VAR_PATH" respectively, and they should be located outside of your "DocumentRoot", which in your case is C:/Program Files/xampp/htdocs/testing'.

You mainfile.php should be:

Quote:
// Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
define( 'XOOPS_ROOT_PATH', 'C:/Program Files/xampp/htdocs/testing' );

// For forward compatibility
// Physical path to the XOOPS library directory WITHOUT trailing slash
define( 'XOOPS_PATH', 'C:/Program Files/xampp/xoops_lib' );
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
define( 'XOOPS_VAR_PATH', 'C:/Program Files/xampp/xoops_data' );
// Alias of XOOPS_PATH, for compatibility, temporary solution
define("XOOPS_TRUST_PATH", XOOPS_PATH);

Some modules, especially D3 modules developed by GIJOE, use the variable "XOOPS_TRUST_PATH". In order to make sure that they work, you point "XOOPS_TRUST_PATH" to "XOOPS_PATH":

Quote:
define("XOOPS_TRUST_PATH", XOOPS_PATH);

which then points to C:/Program Files/xampp/xoops_lib.

As you can see, "XOOPS_TRUST_PATH" and "XOOPS_PATH" are pointers to the same directory.

Please note: it's always good to change the name of the directory "xoops_lib" and "xoops_data", to something random. So if you change it to "20090128lib" and "01282009data", your mainfile.php would look like this:

Quote:
// Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
define( 'XOOPS_ROOT_PATH', 'C:/Program Files/xampp/htdocs/testing' );

// For forward compatibility
// Physical path to the XOOPS library directory WITHOUT trailing slash
define( 'XOOPS_PATH', 'C:/Program Files/xampp/20090128lib' );
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
define( 'XOOPS_VAR_PATH', 'C:/Program Files/xampp/01282009data' );
// Alias of XOOPS_PATH, for compatibility, temporary solution
define("XOOPS_TRUST_PATH", XOOPS_PATH);

Hope it helps a little...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

25
anderssk
Re: Version 2.3.3RC
  • 2009/1/29 10:07

  • anderssk

  • Quite a regular

  • Posts: 335

  • Since: 2006/3/21


Try read the message

/xoops_lib is inside DocumentRoot! The is a folder where XOOPS and its modules will store some sensible code and information for more security.


The is a folder ? Is that right


The warning about chmod mainfile and delete install directory is missing

26
ghia
Re: Version 2.3.3RC
  • 2009/1/29 10:46

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
Quote:
Outside is eg. C:/Program Files/xampp/xoops_trust_path/ .

this is confusing i thought xoops_lib = xoops_trust_path
Yes, It is.
I better had used trustpathdir in my explaination.

Quote:
The is a folder ? Is that right
No, it is not correct English (unless the folder would have the silly name 'The'). My first idea was that there was an empty variable (containing some directory name) substituted to it, but the text would have then two spaces.
Quote:
The warning about chmod mainfile and delete install directory is missing
Do you mean it is missing in your tests? (noo-b may have done these corrections)

27
anderssk
Re: Version 2.3.3RC
  • 2009/1/29 11:17

  • anderssk

  • Quite a regular

  • Posts: 335

  • Since: 2006/3/21


On a clean install the warning about "the is a folder" is present.
But there are no warnings about the permissions on mainfile.php (if CHMOD=777)
There are no warnings about the install directory (if it still exists)
So Yes it is missing in my tests.


28
noo-b
Re: Version 2.3.3RC
  • 2009/1/30 0:14

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


in localhost (xampp) i will always install XOOPS in a folder while in my real server i will always install in root..i get a little confuse there sometime..now I'm all clear

thanks mamba..that helps a lot....hope this explanation can be put into the installation guide/readme for total XOOPS newbies

i'm afraid total XOOPS newbies will get too confused and will not use XOOPS because of the confusing instllation...a thorough step by step should be made for them..
Quote:

The warning about chmod mainfile and delete install directory is missing

i noticed that the install directory is automatically renamed with a random long number after you finished your XOOPS installation

in the last step of installation there is an instruction to delete this folder..

but there is no warning in admin if the folder is not deleted...

mainfile.php chmod warning is also not present in admin panel....
I Love Xoops

29
Mamba
Re: Version 2.3.3RC
  • 2009/1/30 0:43

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
but there is no warning in admin if the folder is not deleted...

since the name is changed, it's less important. The problem is when somebody could go to your Website and type:
http://yoursite.com/install
then they could take over your site by changing admin access. Once the directory is changed to a random name, then it shouldn't be a problem. But it's always better to delete the /install directory.

Quote:
mainfile.php chmod warning is also not present in admin panel....

because it is set by the Installer as read only after the installation.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

30
anderssk
Re: Version 2.3.3RC
  • 2009/1/30 7:17

  • anderssk

  • Quite a regular

  • Posts: 335

  • Since: 2006/3/21


That's great news!

Login

Who's Online

157 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits