Title: using custom php.ini file
Last modified: August 30, 2016

---

# using custom php.ini file

 *  Resolved [Avinash Devina](https://wordpress.org/support/users/avinashdevineni/)
 * (@avinashdevineni)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-custom-phpini-file/)
 * Hi, i installed wordpress on linux shared hosting with in.bluehost.com, accidentally
   i deleted all my default configuration file and directories in my filemanager,
   after that i created few directories manually and i installed wordpress using
   softaculous, it was installed successfully but when i am uploading plugins,themes,
   media fils i got an error missing a temerity directory error, then i created 
   a file php.ini in my pubilc_html directory, now i am able to upload plugins and
   themes, so now my question is what are the drawbacks of using custom php.ini 
   file if any please let me know.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [OptimalDeficiency](https://wordpress.org/support/users/optimaldeficiency/)
 * (@optimaldeficiency)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-custom-phpini-file/#post-6814095)
 * Hello,
 * There shouldn’t be any real drawbacks of using a custom php.ini file.
 * By default your php configuration will typically adhere to the options set in
   the /usr/local/lib/php.ini file on the server (this can be different if your 
   host uses technology like CageFS, but that is generally the file location in 
   cPanel host)
 * Using a custom php.ini file located in your users /home/user/public_html directory
   you are simply overwriting the default php configuration options with the ones
   you set.
 * This gives you the ability to set the php configuration to match closer to your
   needs depending on the software you use. Say you need to upload large file sizes
   via php, but the host default value is low.
 * You can change the post_max_size and upload_max_filesize values to anything you
   like to allow for larger uploads via php.
 * To make the php.ini file work recursively upon all subdirectories add the following
   code to the top of your .htaccess file:
 * SuPHP_ConfigPath /home/[CPANELUSERNAME]/public_html/
 * If this code causes errors speak with your host as they may use another method.
 * Hope you found this helpful!
 *  Thread Starter [Avinash Devina](https://wordpress.org/support/users/avinashdevineni/)
 * (@avinashdevineni)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/using-custom-phpini-file/#post-6814219)
 * Hi Thanks For your replay. help full.
 *  [jorgedeiacruz](https://wordpress.org/support/users/jorgedeiacruz/)
 * (@jorgedeiacruz)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/using-custom-phpini-file/#post-6814364)
 * Thanks a lot. I’ve been looking for ‘that trick’ since the last week.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘using custom php.ini file’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [jorgedeiacruz](https://wordpress.org/support/users/jorgedeiacruz/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/using-custom-phpini-file/#post-6814364)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
