douweng3383 2014-10-13 13:44
浏览 80

当我使用htaccess时出错500

I made .htaccsess for include path and i set in it

php_value include_path ".;c:\xampp\php\PEAR;c:\xampp\htdocs\shop\shop\inc";

there is just top line(htaccess)

my project is in locall and my include file is in directory: c:\xampp\htdocs\shop\shop\inc

but when i use function or classess in my include directory i get This Error:

Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
localhost
Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9

in error.log apache is

[Sun Oct 19 17:07:08.037451 2014] [core:alert] [pid 2228:tid 1676] [client ::1:52965] C:/xampp/htdocs/shop/shop/.htaccess: php_value takes two arguments, PHP Value Modifier

[Sun Oct 19 17:07:09.559628 2014] [core:alert] [pid 2228:tid 1676] [client ::1:52966] C:/xampp/htdocs/shop/shop/.htaccess: php_value takes two arguments, PHP Value Modifier

  • 写回答

1条回答 默认 最新

  • duanjiao4763 2014-10-13 15:44
    关注
    php_value include_path ".;c:/xampp/php/PEAR;c:/xampp/htdocs/shop/shop/inc"
    

    Try it with forward slashes and without the semicolon at the end.

    Also retype the spaces to make sure you've not introduced some non ascii character into the string.

    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?