在Bitnami LAMP服务器上托管数据库和PHP程序失败

时间:2020-05-20 12:35:57

标签: php mysql smarty bitnami

我有一个网络游戏,该游戏是为使用MySQL数据库和Smarty模板引擎的Uni项目设计的。

在本地,程序包运行良好。但是,我已经尝试将其托管在网上,以便我的讲师可以对其进行测试,但是它失败了。

我已经在服务器上复制了htdocs文件夹,但是如果尝试访问索引页,则会出现以下错误:

致命错误:没捉住->聪明:无法写入文件/ opt / bitnami / apache2 / htdocs / SWDB / vendor / smarty / templates_c / wrt5ec521ffb8fad9_62962337 <-扔到/ opt / bitnami / apache2 / htdocs / SWDB /第60行上的vendor / smarty / sysplugins / smarty_internal_runtime_writefile.php

包含在smarty_internal_runtime_writefile.php文件的以下代码部分中:

 // write to tmp file, then move to overt file lock race condition
        $_tmp_file = $_dirpath . DIRECTORY_SEPARATOR . str_replace(array('.', ','), '_', uniqid('wrt', true));
        if (!file_put_contents($_tmp_file, $_contents)) {
            error_reporting($_error_reporting);
            throw new SmartyException("unable to write file {$_tmp_file}");
        }
        /*

0 个答案:

没有答案