When i do php artisan or php artisan serve in my laravel project it shows some error and I don't know how to solve it. I tried removing composer and again installing it also doing composer update but it does not seem to solve the problem.
Operationg System: Ubuntu 20.04 LTS
My Error:
wiggly#Wiggly-Faun:~/Desktop/Web Designing/websites/Ticketing$ php artisan serve
PHP Warning: require(/home/wiggly/Desktop/Web
Designing/websites/Ticketing/vendor/autoload.php): failed to open stream: No such file or
directory in /home/wiggly/Desktop/Web Designing/websites/Ticketing/artisan on line 18
PHP Fatal error: require(): Failed opening required '/home/wiggly/Desktop/Web
Designing/websites/Ticketing/vendor/autoload.php' (include_path='.:/usr/share/php') in
/home/wiggly/Desktop/Web Designing/websites/Ticketing/artisan on line 18
When I do composer install inside my project is shows:
wiggly#Wiggly-Faun:~/Desktop/Web Designing/websites/Ticketing$
composer install
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 laravel/framework v7.18.0 -> satisfiable
by laravel/framework[v7.18.0].
- laravel/framework v7.18.0 requires ext-mbstring * -> the requested
PHP extension mbstring is missing from your system.
Problem 2
- Installation request for league/commonmark 1.5.1 -> satisfiable by
league/commonmark[1.5.1].
- league/commonmark 1.5.1 requires ext-mbstring * -> the requested
PHP extension mbstring is missing from your system.
Problem 3
- Installation request for tijsverkoyen/css-to-inline-styles 2.2.2 -
> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.2].
- tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> the
requested PHP extension dom is missing from your system.
Problem 4
- Installation request for facade/ignition 2.0.7 -> satisfiable by
facade/ignition[2.0.7].
- facade/ignition 2.0.7 requires ext-mbstring * -> the requested PHP
extension mbstring is missing from your system.
Problem 5
- Installation request for phar-io/manifest 1.0.3 -> satisfiable by
phar-io/manifest[1.0.3].
- phar-io/manifest 1.0.3 requires ext-dom * -> the requested PHP
extension dom is missing from your system.
Problem 6
- Installation request for phpunit/php-code-coverage 7.0.10 ->
satisfiable by phpunit/php-code-coverage[7.0.10].
- phpunit/php-code-coverage 7.0.10 requires ext-dom * -> the
requested PHP extension dom is missing from your system.
Problem 7
- Installation request for phpunit/phpunit 8.5.8 -> satisfiable by
phpunit/phpunit[8.5.8].
- phpunit/phpunit 8.5.8 requires ext-dom * -> the requested PHP
extension dom is missing from your system.
Problem 8
- Installation request for scrivo/highlight.php v9.18.1.1 ->
satisfiable by scrivo/highlight.php[v9.18.1.1].
- scrivo/highlight.php v9.18.1.1 requires ext-mbstring * -> the
requested PHP extension mbstring is missing from your system.
Problem 9
- Installation request for theseer/tokenizer 1.1.3 -> satisfiable by
theseer/tokenizer[1.1.3].
- theseer/tokenizer 1.1.3 requires ext-dom * -> the requested PHP
extension dom is missing from your system.
Problem 10
- laravel/framework v7.18.0 requires ext-mbstring * -> the requested
PHP extension mbstring is missing from your system.
- facade/flare-client-php 1.3.2 requires illuminate/pipeline
^5.5|^6.0|^7.0 -> satisfiable by laravel/framework[v7.18.0].
- Installation request for facade/flare-client-php 1.3.2 ->
satisfiable by facade/flare-client-php[1.3.2].
To enable extensions, verify that they are enabled in your .ini
files:
- /etc/php/7.4/cli/php.ini
- /etc/php/7.4/cli/conf.d/10-opcache.ini
- /etc/php/7.4/cli/conf.d/10-pdo.ini
- /etc/php/7.4/cli/conf.d/20-calendar.ini
- /etc/php/7.4/cli/conf.d/20-ctype.ini
- /etc/php/7.4/cli/conf.d/20-exif.ini
- /etc/php/7.4/cli/conf.d/20-ffi.ini
- /etc/php/7.4/cli/conf.d/20-fileinfo.ini
- /etc/php/7.4/cli/conf.d/20-ftp.ini
- /etc/php/7.4/cli/conf.d/20-gettext.ini
- /etc/php/7.4/cli/conf.d/20-iconv.ini
- /etc/php/7.4/cli/conf.d/20-json.ini
- /etc/php/7.4/cli/conf.d/20-phar.ini
- /etc/php/7.4/cli/conf.d/20-posix.ini
- /etc/php/7.4/cli/conf.d/20-readline.ini
- /etc/php/7.4/cli/conf.d/20-shmop.ini
- /etc/php/7.4/cli/conf.d/20-sockets.ini
- /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.4/cli/conf.d/20-sysvsem.ini
- /etc/php/7.4/cli/conf.d/20-sysvshm.ini
- /etc/php/7.4/cli/conf.d/20-tokenizer.ini
- /etc/php/7.4/cli/conf.d/20-zip.ini
You can also run `php --ini` inside terminal to see which files are
used by PHP in CLI mode.
Did you installed all the necessary vendor packages locally? Does your "vendor" directory exists?
Don't forget to use:
composer install
in the project directory to install necessary vendor packages.
Also, make sure you have installed necessary PHP extensions, such as mbstring and xml, you may install them via:
sudo apt install php-xml php-mbstring
Hopefullly this helps solve your question.
When running laravel new I receive all these errors. I understand what they mean, but I'm curious to why this happenes, on windows it all went through fine.
I installed php, how come Ubuntu throws errors? Does it exclude a lot of things from the php installation? I'm not really sure why its causing so much drama, this is the 10th set of errors I've gone through today and I'm worried I've done something majorly wrong.
I followed this for my LEMP stack: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04
Also, before I can even use the laravel command, I have to run export PATH="~/.composer/vendor/bin:$PATH" every time I open a terminal. Is there a way to fix this?
Problem 1
- Installation request for erusev/parsedown v1.7.2 -> satisfiable by erusev/parsedown[v1.7.2].
- erusev/parsedown v1.7.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for laravel/framework v5.8.7 -> satisfiable by laravel/framework[v5.8.7].
- laravel/framework v5.8.7 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- Installation request for phar-io/manifest 1.0.3 -> satisfiable by phar-io/manifest[1.0.3].
- phar-io/manifest 1.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 4
- Installation request for phpunit/php-code-coverage 6.1.4 -> satisfiable by phpunit/php-code-coverage[6.1.4].
- phpunit/php-code-coverage 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 5
- Installation request for phpunit/phpunit 7.5.7 -> satisfiable by phpunit/phpunit[7.5.7].
- phpunit/phpunit 7.5.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 6
- Installation request for theseer/tokenizer 1.1.0 -> satisfiable by theseer/tokenizer[1.1.0].
- theseer/tokenizer 1.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 7
- laravel/framework v5.8.7 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- beyondcode/laravel-dump-server 1.2.2 requires illuminate/console 5.6.*|5.7.*|5.8.* -> satisfiable by laravel/framework[v5.8.7].
- Installation request for beyondcode/laravel-dump-server 1.2.2 -> satisfiable by beyondcode/laravel-dump-server[1.2.2].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.2/cli/php.ini
- /etc/php/7.2/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.2/cli/conf.d/10-opcache.ini
- /etc/php/7.2/cli/conf.d/10-pdo.ini
- /etc/php/7.2/cli/conf.d/20-calendar.ini
- /etc/php/7.2/cli/conf.d/20-ctype.ini
- /etc/php/7.2/cli/conf.d/20-exif.ini
- /etc/php/7.2/cli/conf.d/20-fileinfo.ini
- /etc/php/7.2/cli/conf.d/20-ftp.ini
- /etc/php/7.2/cli/conf.d/20-gettext.ini
- /etc/php/7.2/cli/conf.d/20-iconv.ini
- /etc/php/7.2/cli/conf.d/20-json.ini
- /etc/php/7.2/cli/conf.d/20-mbstring.ini
- /etc/php/7.2/cli/conf.d/20-mysqli.ini
- /etc/php/7.2/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.2/cli/conf.d/20-phar.ini
- /etc/php/7.2/cli/conf.d/20-posix.ini
- /etc/php/7.2/cli/conf.d/20-readline.ini
- /etc/php/7.2/cli/conf.d/20-shmop.ini
- /etc/php/7.2/cli/conf.d/20-sockets.ini
- /etc/php/7.2/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.2/cli/conf.d/20-sysvsem.ini
- /etc/php/7.2/cli/conf.d/20-sysvshm.ini
- /etc/php/7.2/cli/conf.d/20-tokenizer.ini
- /etc/php/7.2/cli/conf.d/20-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Which PHP version are you using?
You need mbstring extension installed.
Assuming it's PHP7.2, you can install the dependencies required for Laravel like:
sudo apt install php7.2-mbstring php7.2-dom php7.2-pdo php7.2-xml php7.2-common php7.2-bcmath php7.2-json php7.2-cli php7.2-fpm php7.2-mysql
Edit: That LEMP guide doesn't cover php extensions' installation.
Assuimg it's Laravel 5.8, according to the docs, you need some extensions installed, too. Updating my answer accordingly
Note: If you need MySQL etc (because you mentioned LEMP) I've also added php7.2-mysql.
Although, like I mentioned in my comments, I'd prefer Ondrej Sury's PPA and install PHP7.3 and its extensions instead.
I have a problem Composer and Laravel. I found a lot of similar topic but it doesn't work. So when I try install Laravel it will show me:
Installing laravel/laravel (v5.5.22)
Installing laravel/laravel (v5.5.22): Loading from cache Created project in sadsa
#php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Updating
dependencies (including require-dev) Your requirements could not be
resolved to an installable set of packages.
Problem 1
phpunit/phpunit 6.5.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.3.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.2.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
phpunit/phpunit 6.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Installation request for phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, 6.0.1, 6.0.10, 6.0.11, 6.0.12, 6.0.13, 6.0.2,
6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.0.9, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.3.0, 6.3.1, 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5].
To enable extensions, verify that they are enabled in your .ini
files:
/etc/php/7.0/cli/php.ini
/etc/php/7.0/cli/conf.d/10-opcache.ini
/etc/php/7.0/cli/conf.d/10-pdo.ini
/etc/php/7.0/cli/conf.d/20-calendar.ini
/etc/php/7.0/cli/conf.d/20-ctype.ini
/etc/php/7.0/cli/conf.d/20-exif.ini
/etc/php/7.0/cli/conf.d/20-fileinfo.ini
/etc/php/7.0/cli/conf.d/20-ftp.ini
/etc/php/7.0/cli/conf.d/20-gettext.ini
/etc/php/7.0/cli/conf.d/20-iconv.ini
/etc/php/7.0/cli/conf.d/20-json.ini
/etc/php/7.0/cli/conf.d/20-mbstring.ini
/etc/php/7.0/cli/conf.d/20-mcrypt.ini
/etc/php/7.0/cli/conf.d/20-phar.ini
/etc/php/7.0/cli/conf.d/20-posix.ini
/etc/php/7.0/cli/conf.d/20-readline.ini
/etc/php/7.0/cli/conf.d/20-shmop.ini
/etc/php/7.0/cli/conf.d/20-sockets.ini
/etc/php/7.0/cli/conf.d/20-sysvmsg.ini
/etc/php/7.0/cli/conf.d/20-sysvsem.ini
/etc/php/7.0/cli/conf.d/20-sysvshm.ini
/etc/php/7.0/cli/conf.d/20-tokenizer.ini
/etc/php/7.0/cli/conf.d/20-xdebug.ini
/etc/php/7.0/cli/conf.d/20-zip.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
When I try install it globally, I have this but I can't use Laravel new something command:
Changed current directory to /home/michal/.composer
Using version ^1.5 for laravel/installer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
How I said I found a lot of topic but nothing works like install mbstring and so on.
Looks to me it is mainly focus at message requires ext-dom. Possible work around i can suggest is to install following packages:
php-xml
php-common
Or you can try with specific php version as follow:
php7.0-xml
php7.0-common
for php 7.0
sudo apt-get install php7.0-xml
I am using Ubuntu 17.10 and PHP 7.1 is running well using
sudo apt-get install php7.1-xml
If you are using another version of PHP, for example: 7.0 can change it to
sudo apt-get install php7.0-xml
Don't forget to alwasy restart web server, for example in Ubuntu you can type in terminal:
sudo service apache2 reload
After that you can try run composer again. Hope this helps.
When I try to update packages with the terminal command : php composer.phar update I have this error message
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.5, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4].
- sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.5, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4].
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.4 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for sensio/distribution-bundle ~4.0 -> satisfiable by sensio/distribution-bundle[v4.0.0]."
As you can see from message: you need to install ext-curl extension for PHP.
To install it in Ubuntu you need to run next command:
sudo apt-get install php5-curl
Don't forget to restart apache (or fpm) after it:
sudo service apache2 restart
or fpm:
sudo service php5-fpm restart
The error message is telling you that sensio/distribution-bundle v4 requires sensiolabs/security-checker v2.0.x, which in turn requires the PHP curl extension, which is not installed. So composer cannot (currently) fulfil the requirements specified in your composer.json. At a basic level, you need to install the curl extension.
Why this happened in your case is difficult to determine without more detail:
Have you recently upgraded from distribution bundle v3 to v4? Looks like the dependency on security-checker was introduced between those. You could possibly revert to v3 to avoid this issue.
Has the PHP environment changed, to remove the curl extension?
I haven't encountered any issue in deploying my laravel project until now. I've been deploying for like almost a year already for this project. But some new bug came up.
First of all.
I can't run composer update, cause it says this error.
composer update
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
Loading composer repositories with package information
Updating dependencies (including require-dev)
[RuntimeException]
Could not load package classpreloader/classpreloader in http://packagist.org: [UnexpectedValueException] Could not parse version constraint ^1.2.2: Invalid
version string "^1.2.2"
[UnexpectedValueException]
Could not parse version constraint ^1.2.2: Invalid version string "^1.2.2"
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
So what I did is update my Composer library.
This is my current version.
Composer version 1e27ff5e22df81e3cd0cd36e5fdd4a3c5a031f4a 2014-08-11 15:46:48
I updated composer.
[api#my staging-hoho-middleware]$ sudo composer self-update^C
[api#my staging-hoho-middleware]$ sudo /usr/local/bin/composer self-update
Updating to version b2173d28fc8b56236eddc8aa10dcda61471633ec.
Downloading: 100%
Use composer self-update --rollback to return to version 1e27ff5e22df81e3cd0cd36e5fdd4a3c5a031f4a
[api#my staging-hoho-middleware]$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
But I encounter a new problem once I ran composer update
[api#my staging-hoho-middleware]$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit 4.7.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.7.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.7.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.7.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.0.12 requires ext-dom * -> the requested PHP extension dom is missing from your system. [0/1888]
- phpunit/phpunit 4.0.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.38 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.37 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.36 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.35 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.34 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.33 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.32 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.31 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.30 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.29 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.28 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.27 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.26 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.25 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.24 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.23 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.22 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.21 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.20 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.19 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.18 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.17 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.16 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.15 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.14 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.13 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.12 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.11 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 3.7.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit * -> satisfiable by phpunit/phpunit[3.7.0, 3.7.1, 3.7.10, 3.7.11, 3.7.12, 3.7.13, 3.7.14, 3.7.15, 3.7.16, 3.7.17, 3.7.18, 3.7.19, 3.7.2, 3.7.20, 3.7.21, 3.7.
22, 3.7.23, 3.7.24, 3.7.25, 3.7.26, 3.7.27, 3.7.28, 3.7.29, 3.7.3, 3.7.30, 3.7.31, 3.7.32, 3.7.33, 3.7.34, 3.7.35, 3.7.36, 3.7.37, 3.7.38, 3.7.4, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9, 4.0.0, 4.0.1, 4.0.10, 4
.0.11, 4.0.12, 4.0.13, 4.0.14, 4.0.15, 4.0.16, 4.0.17, 4.0.18, 4.0.19, 4.0.2, 4.0.20, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.8, 4.0.9, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.2.0, 4.2.1, 4.2.2,
4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 4.4.5, 4.5.0, 4.5.1, 4.6.0, 4.6.1, 4.6.10, 4.6.2, 4.6.3, 4.6.4, 4.6.5, 4.6.6, 4.6.7, 4.6.8, 4.6.9,
4.7.0, 4.7.1, 4.7.2, 4.7.3].
Now I am leaning towards uninstalling my composer, and creating a new fresh copy.
sudo apt-get install php5.6-xml
fixed this for me on Ubuntu with PHP 5.6. (Its nothing to do with Laravel BTW - I'm not using that framework at all.)
I fixed it by installing the missing dependencies.
1008 php -v
1009 yum search php55
1010 yum -y install php55w-xml.x86_64
1011 clear
1012 su - api
1013 httpd restart
1014 service httpd restart
had the same problem, performed the composer installation command in the terminal and problem solved
the composer via yum install command:
yum install composer -y
You can install phpunit, after that, if there are problems, execute the command: sudo a2dismod php5 .If you still have questions, to analyze your problem by looking at the system log.