Rhettyx Posted June 23 Share Posted June 23 I installed prestashop 9.0 in wsl2+ubuntu in my win10 computer. The platform configuration is: PHP 8.3.6、Apache 2.4.58、MariaDB 15.0. The installation process is smooth. I can open the frontend, but when I click the back office. It got 500 error. Please check this video: https://www.loom.com/share/8bf2c2386019427caf79bac8d9330867?sid=4ee56a61-feca-4cf2-90f9-c189be3539d8 Then I checked the appach error log, and found below errors: [Mon Jun 23 00:00:04.888787 2025] [mpm_prefork:notice] [pid 268] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Mon Jun 23 00:00:04.888842 2025] [core:notice] [pid 268] AH00094: Command line: '/usr/sbin/apache2' [Mon Jun 23 14:22:50.528238 2025] [mpm_prefork:notice] [pid 326] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Mon Jun 23 14:22:50.528518 2025] [core:notice] [pid 326] AH00094: Command line: '/usr/sbin/apache2' [Mon Jun 23 14:50:03.999195 2025] [php:notice] [pid 375] [client ::1:51584] PHP Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) in /var/www/html/prestashop/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php on line 116, referer: http://localhost/prestashop/admin123/index.php/improve/modules/manage?_token=UA0NojDIbxdPPvMddEkJmj4tSYwXhE4fzx-P_d2t4Gg [Mon Jun 23 15:09:46.232513 2025] [php:error] [pid 375] [client ::1:51550] PHP Fatal error: Declaration of PrestaShop\\PrestaShop\\Adapter\\Configuration::all() must be compatible with Symfony\\Component\\HttpFoundation\\ParameterBag::all(?string $key = null): array in /var/www/html/prestashop/src/Adapter/Configuration.php on line 62, referer: http://localhost/prestashop/admin123/index.php?controller=AdminSelfUpgrade&token=da9c813a1fc4ebd8eab5ec4c381c341b&route=update-page-update [Mon Jun 23 15:09:46.232513 2025] [php:error] [pid 1041] [client ::1:51562] PHP Fatal error: Declaration of PrestaShop\\PrestaShop\\Adapter\\Configuration::all() must be compatible with Symfony\\Component\\HttpFoundation\\ParameterBag::all(?string $key = null): array in /var/www/html/prestashop/src/Adapter/Configuration.php on line 62, referer: http://localhost/prestashop/admin123/index.php?controller=AdminSelfUpgrade&token=da9c813a1fc4ebd8eab5ec4c381c341b&route=update-page-update [Mon Jun 23 15:10:01.067267 2025] [php:error] [pid 1076] [client ::1:58660] PHP Fatal error: Declaration of Symfony\\Component\\Cache\\Traits\\DoctrineTrait::reset() must be compatible with Symfony\\Component\\Cache\\Adapter\\AbstractAdapter::reset(): void in /var/www/html/prestashop/modules/psxdesign/vendor/symfony/cache/Traits/DoctrineTrait.php on line 26, referer: http://localhost/prestashop/admin123/index.php?controller=AdminSelfUpgrade&token=da9c813a1fc4ebd8eab5ec4c381c341b&route=update-page-update [Mon Jun 23 15:10:18.127823 2025] [php:error] [pid 370] [client ::1:32972] PHP Fatal error: Declaration of Symfony\\Component\\Cache\\Traits\\DoctrineTrait::reset() must be compatible with Symfony\\Component\\Cache\\Adapter\\AbstractAdapter::reset(): void in /var/www/html/prestashop/modules/psxdesign/vendor/symfony/cache/Traits/DoctrineTrait.php on line 26 [Mon Jun 23 15:10:23.184073 2025] [php:error] [pid 697] [client ::1:45038] PHP Fatal error: Declaration of Symfony\\Component\\Cache\\Traits\\DoctrineTrait::reset() must be compatible with Symfony\\Component\\Cache\\Adapter\\AbstractAdapter::reset(): void in /var/www/html/prestashop/modules/psxdesign/vendor/symfony/cache/Traits/DoctrineTrait.php on line 26 [Mon Jun 23 15:30:22.492342 2025] [mpm_prefork:notice] [pid 326] AH00170: caught SIGWINCH, shutting down gracefully [Mon Jun 23 15:30:22.584147 2025] [mpm_prefork:notice] [pid 2051] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Mon Jun 23 15:30:22.584202 2025] [core:notice] [pid 2051] AH00094: Command line: '/usr/sbin/apache2' [Mon Jun 23 15:32:05.427177 2025] [mpm_prefork:notice] [pid 2051] AH00170: caught SIGWINCH, shutting down gracefully [Mon Jun 23 15:32:05.503821 2025] [mpm_prefork:notice] [pid 2103] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Mon Jun 23 15:32:05.503937 2025] [core:notice] [pid 2103] AH00094: Command line: '/usr/sbin/apache2' [Mon Jun 23 15:40:18.448360 2025] [mpm_prefork:notice] [pid 2103] AH00171: Graceful restart requested, doing restart [Mon Jun 23 15:40:18.479062 2025] [mpm_prefork:notice] [pid 2103] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Mon Jun 23 15:40:18.479084 2025] [core:notice] [pid 2103] AH00094: Command line: '/usr/sbin/apache2' [Mon Jun 23 15:46:17.877327 2025] [php:error] [pid 2341] [client ::1:44588] script '/var/www/html/prestashop/install/sandbox/anything.php' not found or unable to stat, referer: http://localhost/prestashop/install/index.php [Mon Jun 23 17:08:35.979622 2025] [mpm_prefork:notice] [pid 2103] AH00171: Graceful restart requested, doing restart [Mon Jun 23 17:08:36.006439 2025] [mpm_prefork:notice] [pid 2103] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Mon Jun 23 17:08:36.006456 2025] [core:notice] [pid 2103] AH00094: Command line: '/usr/sbin/apache2' [Mon Jun 23 17:19:52.213043 2025] [mpm_prefork:notice] [pid 2103] AH00170: caught SIGWINCH, shutting down gracefully [Mon Jun 23 17:19:52.377202 2025] [mpm_prefork:notice] [pid 2875] AH00163: Apache/2.4.58 (Ubuntu) configured -- resuming normal operations [Mon Jun 23 17:19:52.377264 2025] [core:notice] [pid 2875] AH00094: Command line: '/usr/sbin/apache2' I checked the errors in Grok AI. It provided several solutions: repair PHP session permission, repaire PHP fatal error (signature incompatibility), and other minor errors. I followed just repair PHP session permission solution, and now I can log into back office, but when I checked the apache error, the errors persist. 3 commands to repair PHP session permission:sudo chown www-data:www-data /var/lib/php/sessions sudo chmod 770 /var/lib/php/sessions sudo rm -rf /var/lib/php/sessions/sess_* Please help me solve the other errors. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now