InMotion Hosting Support Center

Can't update PHP settings in .htaccess

2012-05-05 10:12 am EST

Hits: 2,317

I've tried to move a site from other hosting to yours. But i've found an unpleasant error: htaccess file got an error:
[Sat May 05 07:03:11 2012] [alert] [client] /home/bibalt5/public_html/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
I suppose the reason is the type of work for PHP on your server. It works in CGI mode. Also, i even haven't found an php.ini file on the root directory of my site.
Is it possible to turn it off and make able to read an htaccess file as it right now, without changing? If not, could you make me a php.ini file with following options:

"php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value display_errors 0"

Thanks in advance!

home catalog: /home/bibalt5

You must login before you can ask a follow up question.

You must login before you can submit an answer.



1,344 Points
2012-05-05 12:07 pm EST
Hi mobydik22,

You're correct about PHP running as a CGI module. You will want to make those changes in your php.ini file. If you do not see a file named php.ini in your public_html, please <a href="">contact our Support Department</a> and request that we create one for you. Our Support Team is available 24/7 through phone, chat, or email. For more information about modifying your site's PHP settings, please see our article <a href="">How to update your local PHP settings</a>. Also, if the site you are working on is an Addon domain, be sure to <a href="">make your php.ini file recursive</a>.

Please let us know if you have any additional questions or need further assistance.


Christi N.

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!