• Resolved Avinash Devina

    (@avinashdevineni)


    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)
  • 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

    (@avinashdevineni)

    Hi Thanks For your replay. help full.

    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.