Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd April 2013, 16:24
SnakeX91 SnakeX91 is offline
Junior Member
 
Join Date: Mar 2013
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default Wrong TMP folder in user-specific php.ini

Hello everyone!

I've got another question to answer...

When i set up a website (SuPHP+suEXEC), ISPConfig create an /var/www/conf/web{WEB_ID}/php.ini that contains the php configuration for web{WEB_ID}. But when I try to upload a file in each way (via CMS or self-made upload script), i get an open_basedir restriction, 'cause /var/tmp/ is not in the list of the open_basedir. In fact in php.ini i find /var/tmp/ as temporary folder for uploads.

Now, I know how is foolish to disable open_basedir for security reasons, but i think that ISPConfig has to set /var/clients/client{client_id}/web{web_id}/tmp/ as tmp folder for upload and NOT /var/tmp/. How can i get out of this?
Reply With Quote
Sponsored Links
  #2  
Old 5th April 2013, 00:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

ISPConfig just copies your default php.ini /var/www/conf/web{WEB_ID}/php.ini.

You can add /var/tmp to open_basedir on the Options tab of the website in ISPConfig.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 5th April 2013, 00:19
SnakeX91 SnakeX91 is offline
Junior Member
 
Join Date: Mar 2013
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default

Hi falko, thanks for your answer!

Yes, i can add /var/tmp/ in Options tab but... why?
Probably my opinion is wrong, but if ISPConfig creates a /tmp/ folder for each web{ID}, why to set /var/tmp/ to the default value if it's not accessible by default?

I can't understand if it is a missing feature, or if my opinion is incorrect. If it is a missing feature, I'd really like to implement it by myself and release it open-source & free. Could you explain me?

Thank you so much!
Reply With Quote
The Following User Says Thank You to SnakeX91 For This Useful Post:
bamlesqtivanova6307 (11th April 2013)
  #4  
Old 5th April 2013, 08:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,964
Thanks: 825
Thanked 5,366 Times in 4,213 Posts
 
Default

ISPConfig is not setting /var/tmp as temporary folder. If this folder is used in your php.ini file, then it has been set by the php package maintainer of your Linux distribution and not by ispconfig.

The combination suphp + suexec does not make much sense fo php as suexec replaces suphp. suphp is very slow and should not be used anymore, the recommended php settings as described in the manual are php-fcgi + suexec or php-fpm + suexec. You will see that the upload temp folder is set by ispconfig then as well.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: protect /web (site) folder with user and password blustem General 7 22nd February 2013 20:06
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Site owned by the wrong user hairydog2 General 1 10th August 2010 13:21
Anything I can do against illegal login-requests? schmidtedv Installation/Configuration 17 7th November 2008 09:25
Adding manually an FTP user for a specific folder Novacom Installation/Configuration 4 11th January 2007 02:15


All times are GMT +2. The time now is 03:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.