昨天用win系统安装也是打不开出现这个问题
今晚我用linux 环境 系统:CentOS Linux 7.7.1908 (Core) 免费版 7.0.3
直接用官网提供的 宝塔apache 教程一步一步安装 还是出现这些的问题 还有官网的教程有点模糊
按照官网的教程 安装 是绝对行不通的 必须要先删除php禁止函数 才可以 不然下载源码就会报错
下面 就是没有删除禁止函数报错
PHP Warning: putenv() has been disabled for security reasons in phar:///usr/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 149
Warning: putenv() has been disabled for security reasons in phar:///usr/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 149
PHP Warning: putenv() has been disabled for security reasons in phar:///usr/bin/composer/bin/composer on line 57
[ErrorException]
pcntl_signal() has been disabled for security reasons
我把函数打开了 源码下载下来了
按照教程 也执行了 下面命令 也成功给了权限
[root@localhost wwwroot]# cd fecmall
[root@localhost fecmall]# chmod 755 ./init
[root@localhost fecmall]# ./init
Yii Application Initialization Tool v1.0
配置文件也修改了绑定地址
打开就出现下面的错误
Warning: require(/www/wwwroot/fecmall/appfront/web/../../vendor/autoload.php): failed to open stream: No such file or directory in /www/wwwroot/fecmall/appfront/web/install.php on line 8
Fatal error: require(): Failed opening required '/www/wwwroot/fecmall/appfront/web/../../vendor/autoload.php' (include_path='.:/www/server/php/72/lib/php') in /www/wwwroot/fecmall/appfront/web/install.php on line 8