会PHP的请进~~~
我一个网页打开后出现下面这个提示,大侠们谁能帮我看看是什么原因啊?Warning:fopen(../template_tmp/______common_template_...
我一个网页打开后出现下面这个提示,大侠们谁能帮我看看是什么原因啊?
Warning: fopen(../template_tmp/______common_template_err_msg_html.php) [function.fopen]: failed to open stream: Permission denied in /usr/local/apache2/htdocs/project/common/class.smarttemplateparser.php on line 255
SmartTemplate Parser Error: Could not write compiled file.
我改了权限之后出现这样的错误提示,请问高手们这是哪的问题啊?
Fatal error: Uncaught exception 'PDOException' with message 'new PDO Error:SQLSTATE[IM002] SQLConnect: 0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified' in /usr/local/apache2/htdocs/project/common/DBHandler.php:22 Stack trace: #0 /usr/local/apache2/htdocs/project/www/SystemDB.php(15): DBHandler::getDBHandler() #1 /usr/local/apache2/htdocs/project/www/login.php(98): SystemDB->__construct() #2 {main} thrown in /usr/local/apache2/htdocs/project/common/DBHandler.php on line 22 展开
Warning: fopen(../template_tmp/______common_template_err_msg_html.php) [function.fopen]: failed to open stream: Permission denied in /usr/local/apache2/htdocs/project/common/class.smarttemplateparser.php on line 255
SmartTemplate Parser Error: Could not write compiled file.
我改了权限之后出现这样的错误提示,请问高手们这是哪的问题啊?
Fatal error: Uncaught exception 'PDOException' with message 'new PDO Error:SQLSTATE[IM002] SQLConnect: 0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified' in /usr/local/apache2/htdocs/project/common/DBHandler.php:22 Stack trace: #0 /usr/local/apache2/htdocs/project/www/SystemDB.php(15): DBHandler::getDBHandler() #1 /usr/local/apache2/htdocs/project/www/login.php(98): SystemDB->__construct() #2 {main} thrown in /usr/local/apache2/htdocs/project/common/DBHandler.php on line 22 展开
4个回答
展开全部
将文件权限改为644,文件夹改为755
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
我猜是template_tmp/这个文件夹下写权限的问题。你改成777试下。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
权限问题。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询