Skip to main content

problem editing php.ini

Comments

7 comments

  • SysSachin
    Hello, Please check which php.ini file is using for your website. You have to create phpinfo file and check php.ini file path.
    0
  • danielpmc
    Hello silue massaillon, You can try placing this in your public_html/.htaccess instead of creating a php.ini file. AllowOverride Options AllowOverride All safe_mode = Off memory_limit = 256M post_max_size = 256M upload_max_filesize = 256M
    0
  • silue massaillon
    Hello, Please check which php.ini file is using for your website. You have to create phpinfo file and check php.ini file path.

    hi @SysSachin I tried what you mentioned but the is the path is a linux path and I don't know how to access the path for accessing the right php.ini
    0
  • silue massaillon
    Hello silue massaillon, You can try placing this in your public_html/.htaccess instead of creating a php.ini file. AllowOverride Options AllowOverride All safe_mode = Off memory_limit = 256M post_max_size = 256M upload_max_filesize = 256M

    hi daniel I tried this way too but still no affecting the php parameter.
    0
  • danielpmc
    Hello silue, Do you have access to a WHM panel? If you do you can edit your php options in your WHM. I strongly advise writing down the default settings before editing. This way if something goes wrong you can easily go back to the original settings. WHM/Service Configuration/php configuration editor
    0
  • SysSachin
    Hello, Please check steps in mentioned below screen-shot for how to create custom php.ini for single account. prntscr.com/d3f01s Please try and update here if you have any query.
    0
  • cPanelMichael
    Hello, Please see the following post for information about editing the php.ini file in EasyApache 4: EA4 php.ini/local.ini behavior Thanks!
    0

Please sign in to leave a comment.