• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

open base dir Uregent

B

bigd40

Guest
I am try to find out why this such a big problem in php with plesk setup
file_exists(): open_basedir restriction in effect. File(/include/lib-tk/include/system/system.php) is not within the allowed path(s): (/var/www/vhosts/exwebtechnologies.com/httpsdocs:/tmp)
and how do you fix this so it does not come up in any php application. I know this is a plesk setup, but big problem.
 
I have the same problem, can't find the solution. Starting to wonder if Plesk is even worth it.
 
Worth it? You decide.

Well, to make a long search short and make things as simple as I can, if you want to use ClamAV scanner in Moodle or some other executable program to be called by any PHP program you use in a virtual host directory:

Just copy the executable into your httdocs...

Once again PLESK has reminded me why we originally chose to run ISPConfig on three of our four dedicated servers.

Or you can go to http://kb.swsoft.com/en/432 and follow its rather vague directions on to Including Directives into Web Server Configuration File and then waste hours trying to figure out just the right combination for the vhost.conf to get it to actually modify the httpd.include and thus allow PHP to call a executable in /usr/local/lib...

Frankly, even after my phpinfo() showed that the open_basedir path included /usr/local/bin, PHP STILL did not return TRUE for file_exists()... I gave up and just decided ever time I update ClamAV I will copy clamscan into the ONE domain on this server's httpdocs dir and NEVER get another server with PLESK.

RDB

PS: ISPConfig lets you add directivers per directory right in the domain setups and would never ASSUME that you are too dumb to run any software that it does not install or that you should PAY even to use SpamAssassin.... GRRRRRR.
 
Back
Top