How to disable Register_globals in php.ini? wordpress server host

I run the ecommerce theme in wordpress on the host server server and come up with this error.

Security warning: set register_globals to php ini to Off !! Otherwise, this topic will not work correctly.

I can not find php.ini in any of the folders. I tried to create a file with the added command and put it in the root directory, as suggested by google, with no luck.

Any recommendations? otherwise.

+3
source share
7 answers

The file you should put in the root folder is not php.ini, but .htaccess. Make sure it contains the following line:

php_flag register_globals off

500 Internal Server Error, HostGator , .

+4

/ cpanel php.ini QuickConfig, php.

+3

, php.ini / cpanel. "on" , , .

365 php Globals. "on" "off".

, php.ini. , , cpanel, Software/Services php.ini EZConfig ( HostGator - ). , , 1/2 . .

+1

Darko , php.ini QuickConfig / CPanel.

CPanel @http://cpanel.yourdomain.com

CPanel.

0

cPanel, php.ini Quick Config " /".

Set register_globals as off
0

.htaccess . Hostgator , .

php.ini , Hostgator . .htaccess php.ini www doc.

(php.ini and .htaccess file) register_globals hostgator

0

I use hostgator, I will try my solution: Insert more lines into your .htaccess file: you need to replace the "username" with your user account.

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/username
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>

If you have a php.ini file, add more lines to the php.ini file:

register_globals = Off // O in "Off" is uppercase text

If not, you can create a new php.ini file with the code below:

register_globals = Off // O in "Off" is uppercase text

Note. The .htaccess file and the php.ini file should be placed in the root folder (the top level folder on your hosting).

0
source

Source: https://habr.com/ru/post/1750226/


All Articles