我安装好apache ,php,mysql 做了一些配置,写了一个测试文件放在apache的C:\Program Files\Apache Group\Apache2\htdocs 目录下 运行 http://localhost/test.php 看到了 PHP Version 4.3.4相关信息 我下载了一个论坛 我把所以问题到放到目录htdocs 下 但http://localhost/index.php报错: Warning: main(./admin/config.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\global.php on line 129请问是什么原因?怎么解决 谢谢!!
config.php <?php ///////////////////////////////////////////////////////////// // Please note that if you get any errors when connecting, // // that you will need to email your host as we cannot tell // // you what your specific values are supposed to be // /////////////////////////////////////////////////////////////// type of database running // (only mysql is supported at the moment) $dbservertype="mysql";// hostname or ip of server $servername="localhost";// username and password to log onto db server $dbusername="root"; $dbpassword="";// name of database $dbname="vbulletin";// technical email address - any error messages will be emailed here $technicalemail = "[email protected]";// use persistant connections to the database // 0 = don't use // 1 = use $usepconnect = 0;// which users are allowed to view the admin log // separate each userid with a comma $canviewadminlog = "1";// which users are allowed to prune the admin log // separate each userid with a comma $canpruneadminlog = "";?> 我不知道怎么看 大家帮我看看把
在LINUX AND APACHE下,WEB根目录是在apache/htdocs下,
你试一下,写一个phpinfo.php
<?
phpinfo();
?>
放到apache web目录下,然后浏览器测试一下,若有出现PHP AND MYSQL的配置信息,证明你成功
可以看见提示 “Apache web server 安装成功”
但 我http://localhost:80/test.php 显示 <? phpinfo(); ?>
是什么地方出问题了?
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
下面的134-170行左右为加载模块的部分。在这部分下面的加上两句:
LoadModule php4_module c:/php/sapi/php4apache2.dll //注释:如果你的php目录不是C:/php,请按实际来写。
AddType application/x-httpd-php .php .php3 .php4(这一句有人说也可以加到768行左右的AddType application/x-tar .tgz之后,不过我有一次这么作了以后没弄成)
做了一些配置,写了一个测试文件放在apache的C:\Program Files\Apache Group\Apache2\htdocs 目录下
运行 http://localhost/test.php 看到了 PHP Version 4.3.4相关信息
我下载了一个论坛 我把所以问题到放到目录htdocs 下
但http://localhost/index.php报错:
Warning: main(./admin/config.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\global.php on line 129请问是什么原因?怎么解决 谢谢!!
<?php
/////////////////////////////////////////////////////////////
// Please note that if you get any errors when connecting, //
// that you will need to email your host as we cannot tell //
// you what your specific values are supposed to be //
/////////////////////////////////////////////////////////////// type of database running
// (only mysql is supported at the moment)
$dbservertype="mysql";// hostname or ip of server
$servername="localhost";// username and password to log onto db server
$dbusername="root";
$dbpassword="";// name of database
$dbname="vbulletin";// technical email address - any error messages will be emailed here
$technicalemail = "[email protected]";// use persistant connections to the database
// 0 = don't use
// 1 = use
$usepconnect = 0;// which users are allowed to view the admin log
// separate each userid with a comma
$canviewadminlog = "1";// which users are allowed to prune the admin log
// separate each userid with a comma
$canpruneadminlog = "";?>
我不知道怎么看 大家帮我看看把
我把他改成config.php
结果再http://localhost/index.php
报错:
看起来在 数据库中发生了一些小错误。
请重试并点击浏览器的 刷新按钮。
一封邮件已经发送到技术支持信箱,如果问题仍然存在,你也可以直接联系管理员。
对此我们感到非常抱歉。我下载的是vbuilletin论坛 是不是数据库配置的问题了
看来要求你建立一个名字是vbulletin的数据库,还有最好吧自己的防火墙关乐。祝您好运气
http://hostname/install.php
没有用,没有install,php这个文件
你可真厉害!!