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.
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-
Could you please help me to solve this issue.
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();
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!!!
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!!!
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
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/indexdevic e.com/http docs
$_SERVER["DOCUMENT_ROOT"] /var/www/vhosts/indexdevic
ASKER
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/indexdevi ce.com/htt pdocs/php/ ThriftClie nt.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.
require_once '../php/ThriftClient.php';
I changed it like this
require_once '/var/www/vhosts/indexdevi
It's working at that point. But What I have to add for the following lines
$GLOBALS['THRIFT_ROOT'] = '/usr/local/thrift/thrift-
require_once $GLOBALS['THRIFT_ROOT'].'/
This is not working. How can I rewrite this lines.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok thank you