Get Paid to Participate     Twitter     Facebook     Google+
Hosting Discussion
 

forgot password?


Reply


Old
  Post #1 (permalink)   08-22-2010, 12:03 AM
Account Disabled
 
Join Date: Aug 2010
Posts: 78

Status: zoom is offline
Hi could anyone tell me how to arrive to php.ini via whm cpanel?

I want to enable exec and shell_exec in whm cpanel please provide full path
 
 
 


Old
  Post #2 (permalink)   08-22-2010, 06:04 AM
HD Community Advisor
 
handsonhosting's Avatar
 
Join Date: Mar 2005
Location: Omaha, NE
Posts: 2,008

Status: handsonhosting is offline
If you have root access to the server you can likely use the path of /usr/lib/php.ini to modify the main system php.ini file.

From inside WHM, as long as you are logged in as the root user and not a reseller account, you can use the PHP Configuration Editor from under the Service Configuration section to modify the system php.ini file.
__________________
Conor Treacy
http://www.HandsOnWebHosting.com
cPanel Web Hosting, Domain Registration, Managed VPS Servers
SEO in Omaha NE
 
 
 


Old
  Post #3 (permalink)   08-22-2010, 05:06 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 78

Status: zoom is offline
Ye I have that thank you and have used php config editor but I can not find there where to enable exec and shell_exec do you know the path?
 
 
 


Old
  Post #4 (permalink)   08-22-2010, 10:48 PM
HD Addict
 
Join Date: Dec 2005
Posts: 168
Send a message via AIM to lowesthost

Status: lowesthost is offline
it should be enabled by default
if it is off then possibly it is disabled by

disable_functions = in your php.ini
__________________
Lowest Host/Empire Technology LLC
Offering Quality Shared, Reseller, VPS servers, and Dedicated Servers
24x7 Tech Support http://empire-hosting.net
cPanel Licenses http://empire-hosting.net/buy-cpanel.html - Dedicated VPS /
 
 
 


Old
  Post #5 (permalink)   08-23-2010, 08:47 AM
HD Addict
 
Join Date: Apr 2007
Posts: 137

Status: Dougy is offline
Why do you want it enabled?

Having that enabled is an absolute gaping security hole, your server can and will be compromised extremely fast.
__________________
simplywww: mmmmm, directadmin goodness
 
 
 


Old
  Post #6 (permalink)   08-23-2010, 03:19 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 78

Status: zoom is offline
thankis dougy ,I have seen disable_functions on php config and it can be setted to on off mode but I havent seen there how you enable exec and shell_exec

oh ye dougy well I want to enable exec and shell_exec for whmcs status server purpuses since the green circle in uptime dont appear
 
 
 


Old
  Post #7 (permalink)   08-23-2010, 06:34 PM
HD Newbie
 
Join Date: May 2009
Posts: 22

Status: rackaid is offline
If your site is running in cgi mode, I think you can put a custom php.ini within you sites public_html directory.

You may also want to try to enable this using a php_admin_flag setting in your .htaccess. This way you can keep it off at the server level.
__________________
Linux server management and hosting services for small business owners who want to run their business not their servers.
 
 
 


Old
  Post #8 (permalink)   08-24-2010, 11:13 AM
HD Addict
 
Join Date: Apr 2007
Posts: 137

Status: Dougy is offline
Quote:
Originally Posted by rackaid View Post
If your site is running in cgi mode, I think you can put a custom php.ini within you sites public_html directory.

You may also want to try to enable this using a php_admin_flag setting in your .htaccess. This way you can keep it off at the server level.
This is about the best suggestion you will get, I'd go with it!
__________________
simplywww: mmmmm, directadmin goodness
 
 
 


Old
  Post #9 (permalink)   08-24-2010, 07:40 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 78

Status: zoom is offline
Ye because if I enable in server is like Im a hole,well then I first must learn how to put php.ini in my public_html,
could you give me the incentives brother?
first i dunno how
you say is in ht access can you provide path and instructions brother well THANK YOU vary vary much brother
 
 
 


Old
  Post #10 (permalink)   08-25-2010, 08:59 AM
HD Addict
 
Join Date: Apr 2007
Posts: 137

Status: Dougy is offline
Quote:
Originally Posted by zoom View Post
Ye because if I enable in server is like Im a hole,well then I first must learn how to put php.ini in my public_html,
could you give me the incentives brother?
first i dunno how
you say is in ht access can you provide path and instructions brother well THANK YOU vary vary much brother
If you have ssh, try: cp /usr/local/lib/php.ini ~/public_html/php.ini

Then edit that file
__________________
simplywww: mmmmm, directadmin goodness
 
 
 


Old
  Post #11 (permalink)   08-26-2010, 02:53 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 78

Status: zoom is offline
yes dougy thank you brother but couldnt you provide the full path to put php.ini in my public_htm via ht access using whm or cpanel instead of ssh?
 
 
 


Old
  Post #12 (permalink)   08-27-2010, 05:23 AM
HD Newbie
 
Join Date: Aug 2010
Posts: 39
Send a message via AIM to Espeed Send a message via MSN to Espeed Send a message via Skype™ to Espeed

Status: Espeed is offline
Yeah, I thought it was enabled by default what version are you running?
__________________
█ Shared Hosting | Reseller Hosting | Dedicated Hosting | VPS | Gaming Servers & More
█ Now Offering: SSL Certificates | Live Support 24/7 |
Check Us Out Now | 800.315.5915
 
 
 


Old
  Post #13 (permalink)   08-27-2010, 10:31 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 78

Status: zoom is offline
cPanel 11.25.0-r46156 -WHM 11.25.0-X3.9 V
WHM VPS Optimezed virtuozzo on server
 
 
 


Old
  Post #14 (permalink)   08-27-2010, 10:51 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 78

Status: zoom is offline
Im thinking in solving this via ht access but not ssh so Im in a shiverin pit right know you know and I might close this thread to solve things diferently thank you
 
 
 


Old
  Post #15 (permalink)   08-30-2010, 09:48 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 78

Status: zoom is offline
Im thinking in solving this via ht access but not ssh so Im in a shiverin pit right know you know and I might close this thread to solve things diferently thank you
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: