hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Enabling a function for one account
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Enabling a function for one account

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-21-2007, 02:33 PM
cyberturk cyberturk is offline
Ex-Hoster
 
Join Date: Apr 2005
Location: Istanbul
Posts: 763

Enabling a function for one account


Hello

In my php.ini, exec funtion is disabled. One of my clients want to use it for his coppermine installation

I dont use php su exec

Is there a way to give him permision to use this function

Thanks for your answers

__________________
Business with Turkey? Yes, you found your partner / advisor...

Reply With Quote


Sponsored Links
  #2  
Old 04-21-2007, 07:34 PM
ISPserver ISPserver is offline
Web Hosting Guru
 
Join Date: Aug 2002
Posts: 308
As I know you need enable function in php.ini and then disable it for all VirtualHost in httpd.conf

It's beckouse php do not exist directive 'enable_function'

Also you can see "http://www.webhostingtalk.com/showthread.php?t=427365"

__________________
MiniVDS.com - Extremely low prices at small VPS (Linux and FreeBSD)
ISPsystem - Offers a flexible and affordable hosting solution

Reply With Quote
  #3  
Old 04-22-2007, 03:44 AM
Cristi4n Cristi4n is offline
Web Hosting Evangelist
 
Join Date: Jun 2006
Location: Cluj Napoca
Posts: 468
Enable php function for one domain.

You can however use suhosin to enable a function for one domain only.
How can you do that ?
After installing suhosin, remove all functions from disable_functions in php.ini and add in php.ini suhosin.executor.func.blacklist = "exec,passthru,shell_exec" and all the functions that you whant to disable globally.
After that for each domain in the virtual host section you can add suhosin.executor.func.blacklist again but without the function that you need to enable. And so you will enable that function only for one domain.
Example:
<VirtualHost 127.0.0.1>
...........
...........
<IfModule mod_php4.c>
php_admin_value open_basedir "/usr/lib/php"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/usr/lib/php"
php_admin_value suhosin.executor.func.blacklist = "passthru,shell_exec"
</IfModule>
.......
......
</VirtualHost>

In this example exec has been enabled for the VirtualHost.
This way it will be better as you do not neet to modify all the virtual hosts only the ones that you need to enable one or more functions.

Reply With Quote
Sponsored Links
  #4  
Old 10-03-2009, 06:56 AM
webstyler webstyler is offline
Web Hosting Evangelist
 
Join Date: Feb 2004
Posts: 459
:/

I've try to make this but not work

suhosin is correctly worked

under httpd.conf insert for virtualhost function without what I mean ..

but when try to use function :
"Warning: shell_exec() has been disabled for security reasons .."

??

Any suggest ?

__________________
We need server tuning for improve mass mailing list. Please send PM if have knowledge
TX

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Rackspace Details New Cloud Hosting Control Panel Features Web Hosting News 2012-08-03 16:03:35
DigiCert ‘s new SSL Certificate Audit Tool Could Win it Some Business Web Hosting News 2012-04-26 19:19:53
Cloud Host VPS.NET Launches Beta of Desktop-like Control Panel Web Hosting News 2011-12-07 16:17:52
Web Host U-SYNC Launches CM4all OnlineDrive-Powered Cloud Storage Web Hosting News 2011-06-22 20:54:21
Web Host Future Hosting Launches CDN Service Web Hosting News 2011-05-26 20:53:13


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?