How to access the php.ini from my CPanel?

Trainee Asked on October 10, 2019 in Cpanel.
Add Comment
2 Answer(s)

Cpanel 60.0.26 (Latest Version) Php.ini moved under Software > Select PHP Version > Switch to Php Options > Change Value > save.

Reviewer Answered on October 10, 2019.
Add Comment

If you’re on a shared hosting environment you won’t have access to the php.ini to make these changes, if you need access, a virtual private server (VPS) or a dedicated server may be a better option if you’re confident in managing it yourself.

Alternatively if you create a new file called .htaccess in your root of your web directory (Ensure it doesn’t contain a .txt extension if using notepad to create the file) and copy something like this inside.

php_value settingToChange 6000

This will only work if your hosting provider let’s you override the certain config value. Best to ask if it doesn’t work after trying.

Reviewer Answered on October 10, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.