赞
踩
SPECWEB测试过程中,”failed to open stream: No such file or directory in [PATH]inc.common.php”。
借鉴(官方常见问题文档)[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] docs/SPECweb2009_User’s_Guide.html 找到依据了:#Running_SPECweb2009
3.4 Trouble Shooting your first run
3.4.2 BeSim ChecksHave 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
解决方法:Besim容器在/usr/web2009-1.20/Besim/bin/目录下
[[email protected] bin]# perl test_besim_bank.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi
[[email protected] bin]# perl test_besim_ecom.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi
[[email protected] bin]# perl test_besim_errs.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi
[[email protected] bin]# perl test_besim_support.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi
执行上述4条测试Besim容器是否安装好的命令之后。重启apache:
[[email protected] bin]# /usr/local/apache2/bin/apachectl restart在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。即测试初始化之后哪个应用,哪个就可以用浏览器打开了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。