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

问题描述 投票:0回答:1

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

在本地,程序包运行正常。但是,我尝试过在线托管它,以便我的讲师可以对其进行测试,但是它失败了。

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

致命错误:没捉到->聪明:无法写入文件/ opt / bitnami / apache2 / htdocs / SWDB / vendor / smarty / templates_c / wrt5ec521ffb8fad9_62962337

包含在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}");
        }
        /*
php mysql smarty bitnami
1个回答
0
投票

感谢朋友。就像魅力一样。

© www.soinside.com 2019 - 2024. All rights reserved.