PHP document root
Document Root issue
If you set up an application in an ibay you may have some odd results due to the usage of $_SERVER['DOCUMENT_ROOT'] by the application.
By default this is set in php.ini to :
This can cause lots of issues.
To test this, create a file called phpinfo.php in the root html folder of your ibay.
Now add the following line :
<?php phpinfo(); ?>
Save by ctrl+x And access it with a browser :
Look for the Document Root setting.
How to overcome $_SERVER['DOCUMENT_ROOT'] issues in ibays
The simplest way to avoid this is to setup a subdomain and point it to the ibay.
Your current host/domain : yourhost.myserver.com
In server-manager Add Domain :
Domain Name : test.myserver.com i-bay : mybay DNS Servers : resolve locally
Now you can access the mybay directory like this :
If you want external access then create a new A record with your DNS hosting pointing your IP address to test.myserver.com