尝试在本地安装Magento 2.3(Nginx-Php 7.1-Mysql-Centos 7),但它在0%的安装进度上停滞不前.控制台错误日志说: http://domain.test/setup/index.php/install / start 500内部服务器错误。
它是nginx配置还是magento文件权限问题,还是其他什么?
最新回答
- 2019-12-51 #
- 2019-12-52 #
内存不足.
检查
https://devdocs.magento.com/guides/v2.3/install-gde/trouble/php/tshoot_php-set.html
- 2019-12-53 #
是否安装了所有必需的php扩展程序?
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
尝试https://github.com/sjanjic/magento2-check?files=1
的php模块部分check.php
<?php error_reporting(E_ALL); ini_set('display_errors', 1); function result($value, $result) { if ($result) { return array('css' => 'success', 'note' => $value . ': OK'); } return array('css' => 'danger', 'note' => $value . ': FAIL'); } function apacheModules() { $results = array(); preg_match('/([\d]+\.[\d]+\.[\d]+)/', apache_get_version(), $version); $results[0] = array('css' => 'danger', 'note' => 'Version: ' . $version[0]); if (version_compare($version[0], '2.2') >= 0) { $results[0] = array('css' => 'success', 'note' => 'Version: ' . $version[0]); } $requiredModules = array('mod_rewrite','mod_expires'); $apacheModules = apache_get_modules(); foreach ($requiredModules as $req) { $results[] = result($req, in_array($req, $apacheModules)); } return $results; } function phpExtensions() { $results = array(); preg_match('/([\d]+\.[\d]+\.[\d]+)/', phpversion(), $version); $ver = $version[0]; $results[0] = array('css' => 'danger', 'note' => 'Version: ' . $ver); if ((version_compare($ver, '5.6.5', '>=') && version_compare($ver, '7.0.0', '<')) || version_compare($ver, '7.0.2', '==') || version_compare($ver, '7.0.4', '==') || version_compare($ver, '7.0.6', '>=') ) { $results[0] = array('css' => 'success', 'note' => 'Version: ' . $ver); } $requiredExtensions = array( 'curl', 'gd', 'intl', 'mbstring', 'mcrypt', 'openssl', 'PDO', 'SimpleXML', 'soap', 'xml', 'xsl', 'zip', 'json', 'iconv', 'Zend OPcache', 'xdebug', ); $phpExtensions = get_loaded_extensions(); foreach ($requiredExtensions as $req) { $results[] = result($req, in_array($req, $phpExtensions)); } return $results; } function phpOptionalExtensions() { $optionalExtensions = array( 'imagick', ); $phpExtensions = get_loaded_extensions(); $results = array(); foreach ($optionalExtensions as $opt) { $results[] = result($opt, in_array($opt, $phpExtensions)); } return $results; } //apacheModules(); ?> <!DOCTYPE html> <html> <head> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> </head> <body> <div class="container"> <h1>Magento 2 requirements check script</h1> <div class="panel panel-default"> <div class="panel-heading">Apache</div> <div class="panel-body"> <?php foreach (apacheModules() as $result): ?> <div class="alert alert-<?php echo $result['css'] ?>" role="alert"><?php echo $result['note'] ?></div> <?php endforeach; ?> </div> </div> <div class="panel panel-default"> <div class="panel-heading">PHP</div> <div class="panel-body"> <div role="alert" class="alert alert-warning">Loaded php.ini file: <?php echo php_ini_loaded_file()?></div> <?php foreach (phpExtensions() as $result): ?> <div class="alert alert-<?php echo $result['css'] ?>" role="alert"><?php echo $result['note'] ?></div> <?php endforeach; ?> </div> </div> <div class="panel panel-default"> <div class="panel-heading">Optional PHP Extension</div> <div class="panel-body"> <?php foreach (phpOptionalExtensions() as $result): ?> <div class="alert alert-<?php echo $result['css'] ?>" role="alert"><?php echo $result['note'] ?></div> <?php endforeach; ?> </div> </div> </div> </body> </html>
- 2019-12-54 #
我只是想让Xdebug启用可以停止安装过程
https://devdocs.magento.com/guides/v2.3/install-gde/trouble/tshoot_install-issues.html
- 2019-12-55 #
尝试使用ssh命令设置magento: -
php bin/magento setup:install --base-url=http://127.0.0.1/magento2/ --db-host=localhost --db-name=magento --db-user=magento --db-password=magento --admin-firstname=Magento --admin-lastname=User [email protected] --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1
相关问题
- installation:应用程序运行期间发生错误有关详细信息,请参阅例外日志magentoerrormagentoinstallationmagento2.1.72019-12-05 21:37
- Magento2安装错误0%magento2magentoerrormagentoinstallationmagentodocker2019-12-05 21:20
- magento2:Magento 2安装步骤“为Apache 24解决403 Forbidden errors”magento2magentoerrormagentoinstallationmagentoapache2magentohttpstatus4032019-12-05 21:13
看起来像文件权限问题,请先尝试使用777权限安装它。
登录到ssh然后:
由于777的权限不正确,您可以使用它进行测试,之后您必须为所有文件和文件夹提供正确的权限,请参阅以下内容:
https://devdocs.magento.com/guides/v2.3/install-gde/prereq/file-sys-perms-over.html https://magehit.com/blog/magento-2-file-folder-permissions-setting/