Forum Moderators: coopster
•warning: main() [function.main]: open_basedir restriction in effect. File(/actions.inc) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs:/tmp) in /var/www/vhosts/domain.com/httpdocs/dev/modules/actions/actions.module on line 659.
•warning: main(actions.inc) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/domain.com/httpdocs/dev/modules/actions/actions.module on line 659.
•warning: main() [function.include]: Failed opening 'actions.inc' for inclusion (include_path='.:') in /var/www/vhosts/domain.com/httpdocs/dev/modules/actions/actions.module on line 659.
It seems like essentially, it's having trouble optening the actions.inc file, but it's in the same folder as actions.module. I've tried this on a different server, and it works fine, which leads me to believe that it's a server issue. Can anyone help?
I don't know exactly.
• warning: opendir(files/test_fileshare_page3) [function.opendir]: failed to open dir: Not a directory in /var/www/vhosts/domain.com/httpdocs/dev/modules/fileshare/fileshare.module on line 560.
• warning: readdir(): supplied argument is not a valid Directory resource in /var/www/vhosts/domain.com/httpdocs/dev/modules/fileshare/fileshare.module on line 561.
• warning: sort() expects parameter 1 to be array, null given in /var/www/vhosts/domain.com/httpdocs/dev/modules/fileshare/fileshare.module on line 564.
• warning: closedir(): supplied argument is not a valid Directory resource in /var/www/vhosts/domain.com/httpdocs/dev/modules/fileshare/fileshare.module on line 614.
Someone in the drupal forum was telling me that the problem was with the module, but this has happened with 3 or 4 different modules, and they all work fine on my other server, so I'm pretty convinced that this is a php config issue. Just have no idea what.
vhost.confincluded configuration file (plesk has it's own
httpd.includeconfiguration file per domain and if it finds a
vhost.confand/or
vhost_ssl.confit will include them at the base of it's own configuration -- after you "rebuild" the configuration using the plesk command line tool and of course you need to restart apache). The directive might look something along these lines ...
<Directory /var/www/vhosts/@domain_name@/httpdocs>
AddHandler php5-script htm html
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/var/www/vhosts/@domain_name@/httpdocs:/tmp:/var/www/path/to/your/includes"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_value open_basedir "/var/www/vhosts/@domain_name@/httpdocs:/tmp:/var/www/path/to/your/includes"
</IfModule>
</Directory>
php_value include_path "/var/www/path/to/your/includes:."