我试图在本地系统中安装Laravel,我收到错误.
操作系统:ubuntu 12.04 LTS
网络服务器:Nginx
PHP:PHP 5.3.10
步骤1 :
$ git clone https://github.com/laravel/laravel.git my_project
Run Code Online (Sandbox Code Playgroud)
第2步 :
my_project$ composer install
Run Code Online (Sandbox Code Playgroud)
我收到了以下错误.
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v4.2.1 requires php >=5.4.0 -> no matching package found.
- laravel/framework v4.2.0 requires php >=5.4.0 -> no matching package found.
- Installation request for laravel/framework 4.2.* -> satisfiable by laravel/framework[v4.2.0, v4.2.1].
Potential causes:
- …Run Code Online (Sandbox Code Playgroud) namespace Facebook\WebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once('vendor/autoload.php');
$host = 'http://localhost:4444/wd/hub';
$options = new ChromeOptions();
Run Code Online (Sandbox Code Playgroud)
我在创建类的对象时已阅读此链接,但ChromeOptions出现错误
PHP 致命错误:未捕获的错误:找不到类“Facebook\WebDriver\ChromeOptions”。
URL重写在Nginx中不起作用,操作系统是Ubuntu 12.4 Lts
当打开http://mvc.loc它正在工作,但当我尝试打开http://mvc.loc/login不工作
404未找到
nginx的/ 1.1.19
.htaccess
<IfModule !mod_rewrite.c>
ErrorDocument 500 "mod_rewrite must be enabled"
</IfModule>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?u=$1
Run Code Online (Sandbox Code Playgroud)
mvc.loc的虚拟主机
server {
listen 80;
server_name mvc.loc;
access_log /var/log/nginx/mvc.loc.access.log;
error_log /var/log/nginx/mvc.loc.error.log;
root /usr/share/nginx/www/mvc;
index index.php;
# use fastcgi for all php files
# Are you sure you have this set up?
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access …Run Code Online (Sandbox Code Playgroud) 获取以下通知和警告
注意:使用未定义的常量 GLOB_BRACE - 在第 2 行 /var/www/html/opencart/upload/admin/controller/extension/extension.php 中假设为“GLOB_BRACE”
警告:glob():第 41 行 /var/www/html/opencart/upload/admin/controller/extension/extension.php 中至少有一个传递的标志无效或不受此平台支持
警告:第 44 行 /var/www/html/opencart/upload/admin/controller/extension/extension.php 中为 foreach() 提供的参数无效
当我列出所有定义的常量时GLOB_BRACE丢失了。
GLOB_MARK => 2
GLOB_NOSORT => 4
GLOB_NOCHECK => 16
GLOB_NOESCAPE => 64
GLOB_ERR => 1
GLOB_ONLYDIR => 1073741824
GLOB_AVAILABLE_FLAGS => 1073741911
Run Code Online (Sandbox Code Playgroud)
操作系统,php,Opencart版本:
我已经准备好阅读文档array glob ( string $pattern \[, int $flags = 0 \] ) …
php ×3
.htaccess ×1
docker ×1
laravel-4 ×1
nginx ×1
opencart2.x ×1
selenium ×1
ubuntu-12.04 ×1
ubuntu-16.04 ×1