highrise Posted December 15, 2010 Share Posted December 15, 2010 hi guys I have my own dedicated server and I recently installed the Smarty 3 template engine - I stored it below the root folder of my virtual hosts so that each site may access it. Now I obviously don't want to completely remove the php base directory restriction, but I need to for these files. So, to do this, I did what I thought I needed to, and added a vhost.conf files in the conf directory. I then restarted Apache. ...but it didn't work. I tried various different configurations, but all with the same result : "File(/usr/local/lib/php/Smarty/Smarty.class.php) is not within the allowed path(s)" I have no idea what I have done wrong. It's not the capital letter, I've tried that. Can anyone help me? I need to know exactly what I need to put in this vhost.conf file to make it work. At the moment the vhost.conf says: <Directory /var/www/vhosts/myhost.com/httpdocs> php_admin_value open_basedir "/usr/local/lib/php/Smarty/" </Directory> Do I need to CHMOD the smarty folder maybe? any help would be appreciated, thanks in advance. Link to comment https://forums.phpfreaks.com/topic/221777-help-cant-configure-open_basedir/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.