Link to home
Start Free TrialLog in
Avatar of Jacobbaby
Jacobbaby

asked on

Plesk relative path issues

Hello Everybody,

Recently I have faced an issue in one installation. I could not complete the installation due to the relative path issue.

My control panel is plesk.

How can I solve this issue in server side.

This is the sample url.

$GLOBALS['THRIFT_ROOT'] = '/usr/local/thrift/thrift-0.8.0/lib/php/src';

Could you please help me to solve this issue.
Avatar of Member_5340450
Member_5340450

What is the error?
Install this script on your server (shown here in its entirety) and post a URL link to it here.  You can take it down later.  This will help us find the document root and other useful information.
<?php phpinfo();

Open in new window

Avatar of Linux Guru
Hi,

We would be able to assist you better if you could provide more details regarding the error and the steps followed by you. Whats the application name? Are you installing through browser? At which part its throwing the error?

Cheers!!!
Avatar of Jacobbaby

ASKER

I am trying to install Hypertable in my server. I have tested with "echo"  I get response above the require_once() function . When I put full path its's working. But it is not possible to put full path in everywhere.  I am trying to install it through browser. Here is the phpinfo().
http://indexdevice.com/test.php
What is the response you get? I don't see it printed here.
This may be helpful.  All of your web site originates in this root directory.  The relative paths will be "relative" to here.
$_SERVER["DOCUMENT_ROOT"]      /var/www/vhosts/indexdevice.com/httpdocs
At first my one line of code is like this

require_once '../php/ThriftClient.php';

I changed it like this

require_once '/var/www/vhosts/indexdevice.com/httpdocs/php/ThriftClient.php';
It's working at that point. But What I have to add for the following lines

$GLOBALS['THRIFT_ROOT'] = '/usr/local/thrift/thrift-0.8.0/lib/php/src';

require_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php';

This is not working. How can I rewrite this lines.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok thank you