How to change php.ini settings in Godaddy shared hostings

email-validation

godaddy

The Godaddy shared hosting's php execution time and memory limit is very low, So some large site's request would break for large process.

But the Godaddy doesn't allow to change the php.ini file directly, we could do that with some tricky First find your server's php.ini file with the following commands

php -i | grep php.ini

it will return the path of the php.ini file, it would be something like this /usr/path-to/php.ini Then copy the php.ini file into your public_html directory with the following commands.

cp /usr/path-to/php.ini /home/your-user-name/public_html/php.ini

Now, we could change whatever in our own new php.ini file.

Tags: