New! Sign up for our email newsletter on Substack.

Use Apache .htaccess files to set PHP options

use Apache .htaccess files to set PHP options for each directory
edit .htaccess of apache
contents:
+++++++++++++++++++++++++++++++++++++
php_value register_globals 1
php_value mbstring.language Japanese
php_value session.cache_expire 180
…….
…….
++++++++++++++++++++++++++++++++++++++

you should configure httpd.conf

in your virtualhosts or directories


AllowOverride All

put .htaccess into directory you want


Quick Note Before You Read On.

ScienceBlog.com has no paywalls, no sponsored content, and no agenda beyond getting the science right. Every story here is written to inform, not to impress an advertiser or push a point of view.

Good science journalism takes time — reading the papers, checking the claims, finding researchers who can put findings in context. We do that work because we think it matters.

If you find this site useful, consider supporting it with a donation. Even a few dollars a month helps keep the coverage independent and free for everyone.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.