Loading...
 
Skip to main content

Architecture / Installation


htaccess magic quotes question

posts: 39 Japan

Hello - I found some information about putting php.ini values in an .htaccess, and I understand directives like:

php_value max_execution_time 300
php_value upload_max_filesize "10M"
php_value memory_limit "16M"

However, the information I read also had directives for "magic quotes" which I don't understand despite reading the PHP website about it. Mostly, the examples seem to be about how programmers should be careful about this or that regarding the subject of "escaping" certain characters - backslashes in paths and such. There are many others as well.

Now, I wonder if someone would be so kind as to answer a question. My question is, how should these variables be set for Tiki, and is there a clear recommendation?

  1. Override PHP variables:

  1. If you are using Apache 2, you have to use instead of .



php_value register_globals 0
php_value track_vars 1
php_value short_open_tag 1

php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value magic_quotes_gpc 0

php_value arg_separator.output "&"
php_value session.cache_expire 200000
php_value session.gc_maxlifetime 200000
php_value session.cookie_lifetime 2000000
php_value session.auto_start 0
php_value session.save_handler user
php_value session.cache_limiter none
php_value allow_call_time_pass_reference On



Thank you for Tiki, and what must be some serious hard work creating such a great piece of software.

Kind regards,
Rick Cogley

posts: 2881 United Kingdom

Hi

This is good information, and nicely posted in the support forums 😎

We need to use these forums more for user to user support like this!

To answer your question:

I would set the max_execution_time to maybe 60 seconds, which will help with the backup feature once its up and running again. otherwise I would leave alone at 30. Oh, if you use the mailin on the forums you might want to set to 120

upload_max_filesize set to whatever you want to set as a limit for your site! LimitRequestBody might also have to set as well to a larger value.

memory_limit 16Mb for a starting out TikiWiki maybe raised to 24 or 32 on an established one like tikiwiki.org.

Lets hope that your findings help many more of our Tiki users!

Good work!

Damian


posts: 39 Japan

Thanks Damian. Er, let's try that again as a reply since I could not edit the post.

--Rick


--
Hello - I found some information about putting php.ini values in an .htaccess, and I understand directives like:

php_value max_execution_time 300
php_value upload_max_filesize "10M"
php_value memory_limit "16M"


However, the information I read also had directives for "magic quotes" which I don't understand despite reading the PHP website about it. Mostly, the examples seem to be about how programmers should be careful about this or that regarding the subject of "escaping" certain characters - backslashes in paths and such. There are many others as well.

Now, I wonder if someone would be so kind as to answer a question. My question is, how should these variables be set for Tiki, and is there a clear recommendation?


# Override PHP variables START:


# If you are using Apache 2, you have to use 
# instead of .


php_value register_globals        0
php_value track_vars              1
php_value short_open_tag          1

php_value magic_quotes_runtime    0
php_value magic_quotes_sybase     0
php_value magic_quotes_gpc          0

php_value arg_separator.output    "&"
php_value session.cache_expire    200000
php_value session.gc_maxlifetime  200000
php_value session.cookie_lifetime 2000000
php_value session.auto_start      0
php_value session.save_handler    user
php_value session.cache_limiter   none
php_value allow_call_time_pass_reference  On


Thank you for Tiki, and what must be some serious hard work creating such a great piece of software.

Kind regards,
Rick Cogley