当前位置:   article > 正文

inc.php错误,inc.common.php解决错误

缺少inc.php

inc.common.php解决错误

SPECweb2009 docker 毕设 原创

借鉴官方常见问题文档排错:

http://www.spec.org/web2009/docs/supportfaq.html#FAQ_Entry21

遇到的错误及排错如下:

(1)When trying to manually access PHP pages (i.e. from a browser), the PHP error log or the response displays "failed to open stream: No such file or directory in [PATH]\inc.common.php"

官网回答:

You must first initialize the benchmark by running 'java specweb' with all the variables in the .config files set properly.

The init.php script for each workload will write these variables to init_vars.php, so be sure user the Web server runs as has write permissions for the SPECweb2009 directories.

#

这点在官网上找到依据了:http://www.spec.org/web2009/docs/SPECweb2009_User's_Guide.html#Running_SPECweb2009

3.4 Trouble Shooting your first run

3.4.2 BeSim Checks

Have you installed and configured a Web server on you BeSim system to run on port 81 (or other non-standard port number)?

Have you built and installed the BeSim application (FastCGI, NSAPI, ISAPI) in the appropriate directory under the Web server's document root?

Have you run the test_besim_* scripts provided with BeSim to check that the BeSim setup is working? If not, see Section 2.3.

说明全部要执行test_besim_* scripts

#

解决方法:

1、Besim容器在/usr/web2009-1.20/Besim/bin/目录下

[root@282e3ac0b681 bin]# perl test_besim_bank.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi

[root@282e3ac0b681 bin]# perl test_besim_ecom.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi

[root@282e3ac0b681 bin]# perl test_besim_errs.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi

[root@282e3ac0b681 bin]# perl test_besim_support.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi

执行上述4条测试Besim容器是否安装好的命令之后。重启apache

[root@282e3ac0b681 bin]# /usr/local/apache2/bin/apachectl restart

2、在client、prime_client端执行specweb测试程序,分别在test.config文件中测试TEST_TEPY=banking 、support、ecommerce三种

如果测试过程中说initialating error,那在webserver容器/usr/local/apache2/htdocs或者这个目录在主机的位置执行# chmod -R 777 /usr/local/apache2/htdocs给其访问权限

之后在运行specweb初始化成功,便可以访问浏览器http://202.117.16.189:8080/supoort/index.php 注意这路测试support之后,就可以浏览器打开supoort。即测试初始化之后哪个应用,哪个就可以用浏览器打开了。

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
  

闽ICP备14008679号