• 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

ossec gui open_basedir errors

C

carpman

Guest
Hello, trying to get ossec gui working on default domain (fixed IP) which is on main server IP but am having issues:


Code:
Warning: opendir() [function.opendir]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/ossec owned by uid 0 in /var/www/vhosts/defaultdomain.net/httpdocs/ossec/lib/os_lib_handle.php on line 94

Warning: opendir(/var/ossec) [function.opendir]: failed to open dir: No such file or directory in /var/www/vhosts/defaultdomain.net/httpdocs/ossec/lib/os_lib_handle.php on line 94
Unable to access ossec directory.

I have read http://kb.odin.com/en/432 and created and edited

/var/www/vhosts/defaultdomain.net/conf/vhost.conf
with following

Code:
<Directory /var/www/vhosts/defaultdomain.net/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/defaultdomain.net:/tmp:/var/ossec:/var/www/vhosts/defaultdomain.net/httpdocs:/var/www/vhosts/defaultdomain.net/httpsdocs"
</Directory>

and did

Code:
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=defaultdomain.net

and restarted apache but no change?

any ideas

cheers
 
Back
Top