Mou*_*bar 8 php deployment linode laravel
当我尝试部署我的laravel项目并执行php composer.phar安装时,我得到了这个恼人的错误.我通过git用git clone拉入了我的项目.当我浏览我的域名时,我希望看到我的应用程序:).我已经安装了正确版本的apache,mysql和php.一切都在运行.
当我做yum install php-gd我得到这个错误:错误:php56w-与php-common-5.4.16-36.el7_1.x86_64的常见冲突
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for brianmcdo/image-palette dev-master -> satisfiable by brianmcdo/image-palette[dev-master].
- brianmcdo/image-palette dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 2
- Installation request for phpunit/phpunit 4.8.18 -> satisfiable by phpunit/phpunit[4.8.18].
- phpunit/phpunit 4.8.18 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Run Code Online (Sandbox Code Playgroud)
我的composer.json
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"creativeorange/gravatar": "~1.0",
"illuminate/html": "^5.0",
"laravelcollective/html": "^5.1",
"intervention/image": "^2.3",
"brianmcdo/image-palette": "dev-master",
"weblee/mandrill": "dev-master",
"behat/behat": "^3.0",
"behat/mink": "^1.6",
"behat/mink-extension": "^2.0",
"behat/mink-selenium2-driver": "1.2.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"pre-update-cmd": [
"php artisan clear-compiled"
],
"post-update-cmd": [
"php artisan optimize"
],
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
}
}
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮助我!非常感谢!
首先运行以下两个命令来安装 PHP 5.5 的 RPM:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Run Code Online (Sandbox Code Playgroud)
然后运行:
yum install php-gd
Run Code Online (Sandbox Code Playgroud)
有关更多详细信息,请查看此线程。