Help - Search - Members - Calendar
Full Version: php uploading using vbullentin
The Planet Forums > Control Panels > Plesk
Intrepid00
I have users that want to be able to upload avators for vbulletin. Problem is it doesn't work.

http://forum.plesk.com/showthread.php?s=&threadid=447


I found that, if someone could explain.
Squire
I'm not sure on that whole thread since I don't use VB and don't plan on it (OpenBB...it's free and just as good!) however one observation.

If memory serves I think the Plesk boxes come with php in Safe Mode by default. Uploading with a script is not allowed with safe mode on, so that may be your issue. You can either change this value in your php.ini file and it will affect every site on the server (no recommended unless all of the domains are yours) or you can set it for individual domains through the vhost.conf file

Squire
Arie
OK, for fun I switched safe_mode to on... It didn't make a difference, it still worked.

Sooo here's what I did.

in php.ini I have:

QUOTE
safe_mode = true  

safe_mode_gid = Off  

safe_mode_exec_dir = /nonexec

open_basedir = /tmp

safe_mode_allowed_env_vars = PHP_

safe_mode_protected_env_vars = LD_LIBRARY_PATH


now, in the domain for which you want to use this:

/usr/local/psa/home/vhosts/YOURDOMAIN/conf/

create a file vhost.conf

This file should contain:

QUOTE

              php_admin_value open_basedir "/usr/local/psa/home/vhosts/YOURDOMAIN/httpdocs:/tmp
              php_admin_value upload_tmp_dir /tmp


Now restart Apache /usr/local/psa/admin/bin/my_apci_rst

and it should work.... For me it does anyway....
eva2000
yup what Arie said is also documented here http://vbulletin.com/forum/showthread.php?...&threadid=37766
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.