小编Nil*_*gor的帖子

安装失败:无法在 ubuntu 上的 wordpress nginx 中创建目录

我在本教程的帮助下设置了 wordpress... 当我尝试安装主题或插件时,如何在 ubuntu 18.04 上使用 LEMP 安装 wordpress显示的错误消息如下所示

Installation failed: Could not create directory
Run Code Online (Sandbox Code Playgroud)

我也试图给予许可:

sudo chown -R www-data:www-data /var/www/domain_name.com/html/wp-content/plugins
sudo find /var/www/domain_name/html/ -type d -exec chmod 7555 {} \;
sudo find /var/www/c-linkons.com/html/ -type f -exec chmod 644 {} \;
Run Code Online (Sandbox Code Playgroud)

我查过这个

ps aux|grep nginx|grep -v grep

826  0.0  0.9 142688  9184 ?        Ss   Sep03   0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 13818  0.0  0.8 144988  8748 ?        S    Sep04   0:00 nginx: worker process …
Run Code Online (Sandbox Code Playgroud)

php wordpress ubuntu nginx

2
推荐指数
1
解决办法
4594
查看次数

Angular.js:未定义的ReferenceError $ rootScope未定义

我正在尝试运行并收到以下消息:

未捕获的ReferenceError:在app.js第12行中未定义$ rootScope

这是我的js / app.js

angular.module('addEvent', ['ngRoute'])
    .config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
        $routeProvider.when('/add-event', {
                templateUrl: 'views/add-event.html',
                controller: 'formCtrl',
                controllerAs: 'eventCtl'
            })
            .otherwise({
                redirectTo: '/'
            });
        $locationProvider.html5Mode(true);
    }])
    .run(['$rootScope', function() {
        $rootScope.event = [];
    }]);
Run Code Online (Sandbox Code Playgroud)

这个js / controller.js

  angular.module('addEvent')
      .controller('formCtrl', ['eventFactory', function(eventFactory) {
          //$scope.event=[];
          this.event = eventFactory.getAllEvents();
          this.submitForm = function(form) {
              eventFactory.createEvent(angular.copy(form), this.event);
              // $scope.event.push(angular.copy(form));
              console.log($scope.event);
          }
      }])
Run Code Online (Sandbox Code Playgroud)

服务/eventFactory.js

angular.module('addEvent')
    .factory('eventFactory', function() {
        var eventFactory = {};
        var events = [];
        eventFactory.getAllEvents = function() {
            return events;
        }
        eventFactory.createEvent = …
Run Code Online (Sandbox Code Playgroud)

javascript jquery angularjs ngroute angularjs-rootscope

0
推荐指数
1
解决办法
3465
查看次数