php.ini file for your specific needs

Here is the solution which will help:

1.  Create a “php.ini” file in your public_html directory and add the following:

disabled_funcions =
extension=pdo.so 
extension=pdo_mysql.so
set display_errors = 0

2.  Open .htaccess and add the folowing lines of code.  Note:   The <Files> Section ensures that no one can access the php.ini from a webbrowser. 

<IfModule mod_suphp.c>
  suPHP_ConfigPath /home/YOURUSERNAME/public_html
  <Files php.ini>
    order allow,deny
    deny from all
  </Files>
</IfModule>


  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

php.ini file and your PHP settings in cPanel

How do I change the PHP environment for my site with php.ini? Generating a new php.ini file:...

php.ini turn off magic quotes

If you want to have it off, try the following in .htaccess under DSO PHP handler: Code:...