Can't update PHP settings in .htaccess


mobydik22
Asked:
2012-05-05 10:12 am EST

Hits: 954
Hello.

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 95.24.37.26] /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!

PS:
domain: bibaltibab.com
home catalog: /home/bibalt5



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

You must login before you can submit an answer.

OTHER ANSWERS

0

CNick
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="http://www.inmotionhosting.com/support/website/website-troubleshooting/how-to-get-great-technical-support">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="http://www.inmotionhosting.com/support/website/general-server-setup/update-local-php-settings">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="http://www.inmotionhosting.com/support/website/general-server-setup/recursive-php-ini">make your php.ini file recursive</a>.

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

Regards,

Christi N.

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

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!