首页上一页 1 下一页尾页 1 条记录 1/1页
《php项目案例分析》第五章明日网上书店的网站发布问题
发表在PHP图书答疑
2014-06-25
是否精华
是
否
版块置顶:
是
否
我已经用Appserv搭好了环境,进入localhost:8080后是Appserver的界面。
在搭建Appserv时设置了数据库用户名root,密码为123456。
下载了ADODB包放在了lib中。同时也把05文件夹中的数据库文件db_bookshop复制之后放在了mysql的data文件夹中。问题来了:运行localhost:8080/mr/05时网页显示如下:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log
诚心请教一下解决的方法?
这里附上我改过的配置文件lzhConfig.ini:
[url-config]
baseUrl = /mr/05
[smarty-config]
template_dir = views
compile_dir = library/smarty/compile_dir
cache_dir = library/smarty/cache_dir
config_dir = library/smarty/config_dir
caching = 0;
[database-config]
dbType = mysql
host = localhost:8080
userName = root
password = 123456
dbName = db_bookshop
isDebug = false
[static-page-config]
dirName = pages
cacheTime = 20
defaultIndexPage = index
staticPageExtendsName = .html
pageArray = login.php, logout.php
sessionArray = index.php
还有改过的数据库连接文件conn.php:
<?php
$conn=mysql_connect("localhost:8080","root","123456");
mysql_select_db("db_mrbooks_cn",$conn);
mysql_query("set names gb2312");
?>
为了把问题描述的详细,我可能写的比较长,请见谅。
在搭建Appserv时设置了数据库用户名root,密码为123456。
下载了ADODB包放在了lib中。同时也把05文件夹中的数据库文件db_bookshop复制之后放在了mysql的data文件夹中。问题来了:运行localhost:8080/mr/05时网页显示如下:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log
诚心请教一下解决的方法?
这里附上我改过的配置文件lzhConfig.ini:
[url-config]
baseUrl = /mr/05
[smarty-config]
template_dir = views
compile_dir = library/smarty/compile_dir
cache_dir = library/smarty/cache_dir
config_dir = library/smarty/config_dir
caching = 0;
[database-config]
dbType = mysql
host = localhost:8080
userName = root
password = 123456
dbName = db_bookshop
isDebug = false
[static-page-config]
dirName = pages
cacheTime = 20
defaultIndexPage = index
staticPageExtendsName = .html
pageArray = login.php, logout.php
sessionArray = index.php
还有改过的数据库连接文件conn.php:
<?php
$conn=mysql_connect("localhost:8080","root","123456");
mysql_select_db("db_mrbooks_cn",$conn);
mysql_query("set names gb2312");
?>
为了把问题描述的详细,我可能写的比较长,请见谅。