1
In php 7.1 the configuration of php.ini (original Locaweb) contains several BD commands that are not used.
I only use Mysql with PDO.
What can be disabled in php.ini and how to do it?
Below php.ini only with lines referring to Bds.
[SQL]
sql.safe_mode = Off
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[MySQL]
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_links = -1
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mSQL]
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Sybase]
sybase.allow_persistent = On
sybase.max_persistent = -1
sybase.max_links = -1
sybase.min_error_severity = 10
sybase.min_message_severity = 10
sybase.compatability_mode = Off
[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10
[Informix]
ifx.default_host =
ifx.default_user =
ifx.default_password =
ifx.allow_persistent = On
ifx.max_persistent = -1
ifx.max_links = -1
ifx.textasvarchar = 0
ifx.byteasvarchar = 0
ifx.charasvarchar = 0
ifx.blobinfile = 0
ifx.nullformat = 0
[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off
mssql.secure_connection = Off
I read your other post and concluded that inhibiting does not improve performance. right?
– Geo
What about security? Won’t leave paths open? Your guidance above goes for php 7.1 tb? Thanks !!
– Geo
@Geo yes, it is little thing for some and for others a lot, it depends on the extension you want to disable, in general the legal is to remove what you will not use. This has no relation to security or faults, security is another problem, which is usually in your . php you wrote yourself. Yes for any version of php, but it’s just an example, you should analyze your own php.ini and see what you won’t use ;)
– Guilherme Nascimento
In my php.ini there is no line with Extension= , I have looked now. I think the inhibition should be done in my example above. Can you guide me? thank you
– Geo
@Geo runs in a script . php o
<?php phpinfo(); ?>
it is possible that you are using.ini
s complementary– Guilherme Nascimento
I got confused, I opened phpinfo and only shows mysqli (nor mysql what normal use/ and others php.ini appear) the version is php 7.1.7. It is normal?
– Geo
Checks in the
phpinfo
the path of yourphp.ini
. Maybe you are changing the incorrect file. Oh, and don’t forget to restart thephp
for the purposes of.– Valdeir Psr
php.ini is at the root and equal to the one shown in info. Even to display it I unlock ini disable_functions which has other tb listed. And I also unlocked everything in ini. But it’s still the same. Could it be something from Locaweb? is shared hosting.
– Geo
@Geo can yes, generally Locaweb uses linux, so it doesn’t have all because in linux vc installs via repository, already in windows vc downloads everything at once.
– Guilherme Nascimento