1
psaxtiri
Protector 3 and mainfile changes for upload to my hosting server
  • 2007/7/28 15:31

  • psaxtiri

  • Not too shy to talk

  • Posts: 185

  • Since: 2007/6/17


I have installed protector 3 successfully at a localhost server.
Now I want to upload my site with protector.
I read that I have to put the trust_path_folder at the same level as the public_html at my hosting provider.

Now I must change the mainfile.php.

Here is what I have

Physical path for my xoop:

define('XOOPS_ROOT_PATH', 'C:/webpage/xampp/htdocs/xoops');


//Protector
define('XOOPS_TRUST_PATH', 'C:/webpage/xampp/htdocs/my_xoops_trust_folder');

//Protector
include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php';

//Protector
include XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php';

can you tell me what I have to change?

Lets take for example that my page is http://www.mypage.com

Thank u
Greece.
Xoops 2.0.18.12

2
ewonline
Re: Protector 3 and mainfile changes for upload to my hosting server
  • 2007/7/28 16:55

  • ewonline

  • Not too shy to talk

  • Posts: 198

  • Since: 2004/11/17


Just change this:

//Protector
define('XOOPS_TRUST_PATH', 'C:/webpage/xampp/htdocs/xoops');
Resized Image

3
Peekay
Re: Protector 3 and mainfile changes for upload to my hosting server
  • 2007/7/29 0:39

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


You need to find out the absolute path to your web root on your hosting provider's server. Ask them for this information and you can set up your mainfile.php correctly. E.g. on a UNIX/Linux host, the web root path might be:

define('XOOPS_ROOT_PATH', '/var/www/vhosts/example.com/httpdocs');

'httpdocs', or 'htdocs' is the same as 'public_html'.

the XOOPS URL in mainfile is the web address, e.g.

define('XOOPS_URL', 'http://www.example.com');

Protector 3 enables you to put the protector config files (the trust path) outside of the web root, i.e. one level up from the httpdocs folder. So you could place this in:

/var/www/vhosts/example.com/my_xoops_trust_folder

The idea of this is that no one can access this with a web browser. If your host does not allow you to FTP to a location above the web root, then you will have to stick it in the httpdocs folder.

HTH
A thread is for life. Not just for Christmas.

Login

Who's Online

333 user(s) are online (271 user(s) are browsing Support Forums)


Members: 0


Guests: 333


more...

Donat-O-Meter

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

Latest GitHub Commits