Ubuntu 20.04.2环境下安装Shopware6时系统要求检测环节报错求助
Hey there! Let's work through the system requirement check errors you're hitting while installing Shopware 6 on your VMware Ubuntu VM with XAMPP 7.4.3.0. Below are the most common fixes based on Shopware 6's mandatory prerequisites:
1. Enable Missing PHP Extensions
Shopware 6 requires a set of PHP extensions that might not be enabled by default in your XAMPP setup. For PHP 7.4, the non-negotiable ones include intl, gd, zip, pdo_mysql, mbstring, and dom.
Here's how to enable them:
- Open your XAMPP PHP configuration file with a text editor:
sudo nano /opt/lampp/etc/php.ini - Search for lines starting with
;extension=(the semicolon means the extension is disabled). Remove the semicolon for the missing extensions. For example:extension=intl extension=gd extension=zip extension=mbstring - Save the file (press
Ctrl+O, hit Enter, thenCtrl+Xto exit) and restart XAMPP to apply changes:sudo /opt/lampp/lampp restart
2. Adjust PHP Configuration Limits
Shopware 6 needs higher values for key PHP settings than the default XAMPP setup might provide. Update these in the same php.ini file:
- Set memory limit to at least 512MB (1GB is recommended):
memory_limit = 1G - Increase maximum execution time to handle installation processes:
max_execution_time = 300 - Raise file upload limits to accommodate Shopware's files:
post_max_size = 64M upload_max_filesize = 64M
Restart XAMPP after making these edits.
3. Verify MySQL/MariaDB Version Compatibility
Shopware 6 requires MySQL 5.7.20+ or MariaDB 10.2.7+. Check your XAMPP database version with this command:
/opt/lampp/bin/mysql -V
If your version is below the minimum, you'll need to either upgrade your XAMPP installation or update the MySQL/MariaDB component separately.
4. Enable Apache Mod Rewrite
Shopware relies on mod_rewrite for clean URL functionality. Ensure it's enabled:
- Open the Apache config file:
sudo nano /opt/lampp/etc/httpd.conf - Find the line
#LoadModule rewrite_module modules/mod_rewrite.soand remove the leading#to uncomment it. - Restart XAMPP to activate the module.
5. Fix File Permissions
The Shopware installation directory needs proper write permissions for the web server user (usually www-data on Ubuntu):
sudo chown -R www-data:www-data /path/to/your/shopware/folder sudo chmod -R 755 /path/to/your/shopware/folder
Be sure to replace /path/to/your/shopware/folder with the actual directory where you're setting up Shopware.
After going through these steps, run the system requirement check again. If you still encounter specific errors, sharing the exact messages from the check would help us pinpoint the issue further!
内容的提问来源于stack exchange,提问作者Aliaksandr

