I am wondering if someone, could please tell me how can I access /usr/local/lib/php.ini, when I only have cpanel and FileZilla? I have looked by using FileZilla, but couldn’t find it. Thanks in advance.
I’d be surprised if you access to that file; what are you trying to do achieve? Sometimes, you can create a php.ini in the document root to configure PHP options for that host.
Most shared hosting packages don’t allow you to access or modify the php.ini file, however you can change a few settings from your .htaccess file and even from your php file itself. Try looking up the setting you want to change and see if theres another way to do it.
PHP: List of php.ini directives - Manual shows you what you can change where
Most shared hosts, Hostgator being one, allows you to upload a custom php.ini to the directory you need the settings applied to.
Don’t upload a full php.ini, just what you need like so:
display_errors = 1 error_reporting = 2047 date.timezone = "America/New_York" output_buffering = On max_execution_time = 60 max_input_time = 60 memory_limit = 32M post_max_size = 10M magic_quotes_gpc = Off upload_max_filesize = 10M