English 中文(简体)
php_ Value auto_prepend——造成500个错误?
原标题:php_value auto_prepend - causing 500 error?
  • 时间:2011-01-12 15:05:39
  •  标签:
  • php
  • apache

I have a project which uses the following in .htaccess:

php_value auto_prepend_file /home/-path-here/prepend.php

这在我的当地SWAMP服务器和另一个服务器上进行罚款,而不是在这一新服务器上。

我完全可以进入服务器。

I mink I need to can php_ Value 别有用吗?

问题回答

允许<代码>php_ Value in .htaccess file, the AllowOverride号指令必须适当配置。

AllowOverride All

would do it, but that might be to general. Then again, I do not know whether a stricter setting exists that still lets you put PHP configuration options in .htaccess.

出于明显的原因,不能在.htaccess本身中订立。

此外,正如Shrapnel 提到的那样,必须将PHP作为阿帕奇模块,以便能够通过阿帕奇组合改变PHP的配置环境。 核对阿帕奇的错误,以了解实际原因。





相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签