All the directory hierarchy gets duly created.
But when I try to access index.php from my Firefox browser, I only see a completely blank page.
In the error log, I read :
[:error] [pid 48494] [client 127.0.0.1:57358]
PHP Parse error: parse error, expecting '&'' or “variable (T_VARIABLE)”’
in patientcare/vendor/cakephp/cakephp/src/I18n/functions.php on line 26
So I obediently looked at line 26 of vendor/cakephp/cakephp/src/I18n/functions.php ;
it is the first line of this paragraph :
function __($singular, …$args)
{
if (!$singular) {
return null;
}
if (isset($args[0]) && is_array($args[0])) {
$args = $args[0];
}
PHP 5.6.7 (cli) (built: Apr 9 2015 19:32:03)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Xdebug v2.2.5-komodo, Copyright (c) 2002-2014, by Derick Rethans
And it’s CakePHP 3.0 I’m using.
I just found that bin/cake server -p 8765and typing http://localhost:8765 in my browser works, but I’m still curious to know why the first way doesn’t work
Even when 5.6.7 should be sufficient - Is there a special reason for combining a rather old PHP Version with CakePHP 3?
Normally this error indicates an outdated PHP Version - Are you sure that your webserver uses the same PHP Version like shown in CLI?
What does echo phpversion(); instead of a CLI command print out?
Problem 1
- cakephp/cakephp 3.4.7 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.4.6 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.4.5 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.4.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.4.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.4.2 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- cakephp/cakephp 3.4.1 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- cakephp/cakephp 3.4.0 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- Installation request for cakephp/cakephp 3.4.* -> satisfiable by cakephp/cakephp[3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6, 3.4.7].
To enable extensions, verify that they are enabled in your .ini files:
- /Applications/XAMPP/xamppfiles/etc/php.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.