- Server operating system version
- OVH VPS
- Plesk version and microupdate number
- Obsidian 18.0.26
I'm attempting to load a script from a different webspace within Plesk. I've enabled `open_basedir` in the webspace settings, and in my script, I'm using the following line:
```php
include "/var/www/vhosts/krsoft/httpdocs/app/";
```
However, this isn't functioning as expected, and I'm encountering the subsequent errors in my log:
```
mod_fcgid: stderr: PHP Warning: include(/var/www/vhosts/krsoft/httpdocs/eshop): failed to open stream: No such file or directory in /var/www/vhosts/test.example.com/httpdocs/index.php on line 2
mod_fcgid: stderr: PHP Warning: include(/var/www/vhosts/krsoft/httpdocs/app): failed to open stream: No such device in /var/www/vhosts/test.example.com/httpdocs/index.php on line 2
mod_fcgid: stderr: PHP Warning: include(): Failed opening '/var/www/vhosts/krsoft/httpdocs/app/' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/test.example.com/httpdocs/index.php on line 2
```
I'm guessing that the issue might be with the way I'm specifying the file path. I'm having trouble understanding the correct format to use. This error often causes issues on [redacted], and I need help to resolve the problem.
```php
include "/var/www/vhosts/krsoft/httpdocs/app/";
```
However, this isn't functioning as expected, and I'm encountering the subsequent errors in my log:
```
mod_fcgid: stderr: PHP Warning: include(/var/www/vhosts/krsoft/httpdocs/eshop): failed to open stream: No such file or directory in /var/www/vhosts/test.example.com/httpdocs/index.php on line 2
mod_fcgid: stderr: PHP Warning: include(/var/www/vhosts/krsoft/httpdocs/app): failed to open stream: No such device in /var/www/vhosts/test.example.com/httpdocs/index.php on line 2
mod_fcgid: stderr: PHP Warning: include(): Failed opening '/var/www/vhosts/krsoft/httpdocs/app/' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/test.example.com/httpdocs/index.php on line 2
```
I'm guessing that the issue might be with the way I'm specifying the file path. I'm having trouble understanding the correct format to use. This error often causes issues on [redacted], and I need help to resolve the problem.
Last edited by a moderator: