1
vinioliveira
Physical path error and index.php warning

Hi,

I am having problems related to the physical path. My root folder is /home/ojoioho/public_html but it insists on the message "Could not detect the physical path to your XOOPS directory". I am getting annoyed with that.

Please does anybody can help me.

In the permission part no errors were detected.

Furthermore, when i click next during the installation process i receive the following warning. "Warning: getcwd() has been disabled for security reasons in /home/ojoioho/public_html/install/index.php on line 279"

Can you guys explain to me what is happening?


Thanks.

2
vinioliveira
Re: Physical path error and index.php warning

HELP!

3
tl
Re: Physical path error and index.php warning
  • 2004/9/12 0:54

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Quote:
Warning: getcwd() has been disabled for security reasons in /home/ojoioho/public_html/install/index.php on line 279"


getcwd() (get working directory pathname) will tell you the absolute path to specify. XOOPS seems not be able to proceed without the path.

You would need to check with your host inquiring why they had disabled it.

4
vinioliveira
Re: Physical path error and index.php warning

they said that they cannot enable this function otherwise due to security problem that may occur at their datacenter.

Oh my god how lucky I am!!

5
Dave_L
Re: Physical path error and index.php warning
  • 2004/9/16 20:47

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


getcwd() is used only by the XOOPS install script, and occurs in two places:

install/index.php:

$detected str_replace("\""/"getcwd()); // "


install/class/settingmanager.php:

$this->root_path str_replace("\","/",getcwd()); // "


A couple of workarounds:

1) Replace each instance of getcwd() with dirname($_SERVER['PATH_TRANSLATED']).

2) Replace each instance of getcwd() with a hardcoded path, which should be the same as the value of XOOPS_ROOT_PATH in mainfile.php (after that file has been properly configured), with '/install' appended.

6
DonXoop
Re: Physical path error and index.php warning

It has been a while but does this error prevent further installation? I thought there was one option (physical_path) that can be ignored if an error is present. You would of course need to actually input the correct path even if it isn't detected.

I saw this error on an installation (I think it was this error) but with the proper path entered it let me continue and all was well.

Login

Who's Online

438 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 438


more...

Donat-O-Meter

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

Latest GitHub Commits