Jump to content

help! cant configure open_basedir


highrise

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.