Optimizing PHP for a Linode 1GB Issue

when I come to this step:/etc/php5/apache2/php.ini

maxexecutiontime = 30

memory_limit = 128M

errorreporting = ECOMPILEERROR|ERECOVERABLEERROR|EERROR|ECOREERROR

display_errors = Off

log_errors = On

error_log = /var/log/php/error.log

register_globals = Off

I can't find the :register_globals = Off

but there're

http://php.net/auto-globals-jit

autoglobalsjit = On

http://php.net/register-argc-argv

registerargcargv = Off

should I set the both ??

Thanks in advance

2 Replies

The 'register_globals' directive was deprecated in PHP 5.3 and removed in PHP 5.4: http://php.net/manual/en/security.globals.php

The 'autoglobalsjit' can save a little bit of time and overhead by not creating the $SERVER and $ENV variables unless you reference them.

The 'registerargcargv' directive is used when running PHP from the command line. If you're going to do that then it should be turned on.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct