• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

php Error, stoping a section of a site working...

Q

QuantumX

Guest
Gents.

I've been stumped on a problem for the last few days, and was hopeing to get some help here.

Anyway i'm running Plesk 8.1. The problem is one of the domain on my server is trying to run a bit of webbased software that seems to install ok and create all the mysql db enteries and files, which i have confirmed howvere, when they try to browse to the page its blank, just a big white screen with no error messages.

Anyway I checked within the logs and found the following:

[client x.x.x.x] PHP Warning: main(db.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /var/www/vhosts/sicarri.net/httpdocs/ZelotKB/common/index.php on line 2
[client x.x.x.x] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'db.php' (include_path='.:') in /var/www/vhosts/sicarri.net/httpdocs/ZelotKB/common/index.php on line 2
[client x.x.x.x] PHP Warning: main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/db.php) is not within the allowed path(s): (/var/www/vhosts/sicarri.net/httpdocs:/tmp) in /var/www/vhosts/sicarri.net/httpdocs/ZelotKB/common/index.php on line 2
[client x.x.x.x] PHP Warning: main(db.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /var/www/vhosts/sicarri.net/httpdocs/ZelotKB/common/index.php on line 2
[client x.x.x.x] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'db.php' (include_path='.:') in /var/www/vhosts/sicarri.net/httpdocs/ZelotKB/common/index.php on line 2
[client x.x.x.x] PHP Warning: main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/db.php) is not within the allowed path(s): (/var/www/vhosts/sicarri.net/httpdocs:/tmp) in /var/www/vhosts/sicarri.net/httpdocs/ZelotKB/common/index.php on line 2
[client x.x.x.x] PHP Warning: main(db.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /var/www/vhosts/sicarri.net/httpdocs/ZelotKB/common/index.php on line 2
[client x.x.x.x] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'db.php' (include_path='.:') in /var/www/vhosts/sicarri.net/httpdocs/ZelotKB/common/index.php on line 2

Note: I removed some ip addresses.

Any i decided to check the php code of index.php at line two and found the following.

<?php
require_once('db.php');

the file db.php exists within the /var/www/vhosts/sicarri.net/httpdocs/ZelotKB/common/ directory the same as the index.php trying to reference it.

Which is a writable and accessable folder has far as i can see. (chmod 755)..

I have managed to find reference to restricted access to various folders controlled via a vhost.conf file but i dont see how that is an issues because the folder with the file in is not restricted.

Anyway any help would be greatly appreciated, because i'm stumped!:mad:
 
Back
Top