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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 19th January 2010, 19:38
Mosquito Mosquito is offline
Join Date: Nov 2006
Posts: 85
Thanks: 5
Thanked 6 Times in 5 Posts
Default Change PHP Memory Settings Per User

I have all of my users set at the Default PHP memory settings, limiting file size uploads, etc. I need to over ride this for a single user. Is this possible?
Reply With Quote
Sponsored Links
Old 20th January 2010, 00:56
BorderAmigos BorderAmigos is offline
Senior Member
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 33 Times in 31 Posts
Send a message via MSN to BorderAmigos Send a message via Yahoo to BorderAmigos

Try putting the following line in the users .htaccess file, changing the 16M to whatever...

php_value memory_limit 16M
System6Hosting.com, ISPConfig 3, Debian.
Reply With Quote
Old 20th January 2010, 06:41
Mosquito Mosquito is offline
Join Date: Nov 2006
Posts: 85
Thanks: 5
Thanked 6 Times in 5 Posts

This did not work - as I would expect it not to. I don't want users themselves to be able to override the settings I, as an administrator, have put in place.
Reply With Quote
Old 20th January 2010, 12:10
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts

You can add the php_value and php_admin lines into the apache directives field of the website settings.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 24th March 2010, 19:51
Nicram Nicram is offline
Join Date: Mar 2010
Location: PL
Posts: 60
Thanks: 22
Thanked 10 Times in 8 Posts
Send a message via ICQ to Nicram Send a message via AIM to Nicram Send a message via Yahoo to Nicram Send a message via Skype™ to Nicram

Same question here.
Ho to setup php settings per user? So they will not be able to change them (they are added as clients, and can change settings for their domains).

I try to edit apache directives but it do not work.
My syntax is:
php_value upload_max_filesize 12M
I'm using SuPHP, maybe I must use other PHP settings?

I have found answer on SuPHP site:

Can I use the php_value directives in .htaccess files with suPHP?
suPHP does not support the php_value/php_admin_value directive known by mod_php to parse configuration options to scripts for certain virtual hosts or directories. However there is a PECL extension named htscanner that can be used with PHP CGI (called by suPHP) to parse such options being present in .htaccess files. Be sure to take a look at the README file provided with the htscanner distribution on how to make Apache ignore the php_value directives in .htaccess files instead of throwing an error.

Last edited by Nicram; 25th March 2010 at 00:32.
Reply With Quote


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
How to add a subdomain? malinens Installation/Configuration 2 11th March 2008 00:16
Sites are up, but none show in ispconfig Check Installation/Configuration 10 5th February 2008 12:33
Virtual Hosting Not Working stirfry Installation/Configuration 26 7th August 2007 11:53
ubuntu ispconfig joomla .htaccess steve1084 General 8 6th January 2007 16:55
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58

All times are GMT +2. The time now is 15:37.

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