This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

PHP Can't Seem to Upload
#11
RE: PHP Can't Seem to Upload
My PHP version is: PHP 5.4.45
And open basedir:
Open basedir /var/sentora/hostdata/customername/public_html/customer_domain:/var/sentora/temp/

/etc/php.ini

Code:
session.save_path = /var/sentora/sessions;
session.save_path = /var/sentora/sessions;
max_execution_time = 60
max_input_time = 90
memory_limit = 64M
post_max_size = 32M
upload_max_filesize = 31M
magic_quotes_gpc = Off
Reply
Thanks given by:
#12
RE: PHP Can't Seem to Upload
Try disabling suhosin for that domain:
Module Admin > Apache Config > Override a Virtual Host > [select domain] > Untick suhosin > Save
Wait ~5 mins and test the site again.
You can also disable openbase_dir the same way and try again.
WP and Joomla are well known for using file locations outside the domain's root folder and the above 2 checks prevent that.
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: td2000
#13
RE: PHP Can't Seem to Upload
(10-17-2015, 12:06 AM)TGates Wrote: Try disabling suhosin for that domain:
Module Admin > Apache Config > Override a Virtual Host > [select domain] > Untick suhosin > Save
Wait ~5 mins and test the site again.
You can also disable openbase_dir the same way and try again.
WP and Joomla are well known for using file locations outside the domain's root folder and the above 2 checks prevent that.

Thank you, TGates. It works.
How about securities problem? Can I change all files permision?
Reply
Thanks given by:
#14
RE: PHP Can't Seem to Upload
Since it is your own site, it should be OK as long as WP or Joomla are kept updated.
I do not use either site. But there are other posts related to this on these forums on how others have updated their configs to work with them more securely Wink
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
PHP Upload limit Crunchn 7 25 ,990 07-25-2019, 09:04 PM
Last Post: amandajames
Webpage not updating after I upload new files Zreddx 2 5 ,972 04-18-2018, 05:26 AM
Last Post: TGates
Increase MYsql file size Upload testing 18 40 ,383 12-01-2017, 09:21 PM
Last Post: Alex Lewis

Forum Jump:


Users browsing this thread: 1 Guest(s)