to moderator; For some reason my previous message was flagged of spam, but why? Im new here and I just need help!
Server Environment: Yunohost PHP Version: 8.2 Web Server: Nginx Database: MySQL
Description of the Issue
Dear Magento Community,
I am reaching out for assistance with my Magento installation on Yunohost. I have encountered multiple issues and need help resolving them. Below is a detailed description of the problems and the steps I have taken so far.
Problems Encountered
Service Temporarily Unavailable (503)
When accessing the site, I initially received a "Service Temporarily Unavailable" error.
Admin Page Not Accessible (404)
The admin page returns a 404 error.
Magento Setup Page Stuck
The setup page displays but doesn't proceed beyond the initial welcome screen.
Main Site Page (403)
The main site page returns a 403 error.
Steps Taken to Resolve the Issues
Checked and Set Correct PHP Version
Verified that PHP 8.2 is active.
Adjusted File Permissions and Ownership
Set file permissions to 644 and directory permissions to 755.
Changed ownership of the Magento directory to www-data
.
Reviewed and Updated Nginx Configuration
Ensured the configuration aligns with Magento's requirements.
Restarted Services
Restarted Nginx and PHP-FPM multiple times.
Cleared Magento Cache and Rebuilt Configurations
Manually cleared cache directories.
Ran Magento setup upgrade, compile, deploy, and reindex commands.
Reviewed Logs
Analyzed Nginx error logs, PHP-FPM logs, and Magento system and exception logs.
Switched Maintenance Mode
Disabled maintenance mode to ensure the site is accessible.
Verified PHP-FPM Pool Configuration
Ensured the PHP-FPM pool configuration is correct and uses the appropriate Unix socket.
Current Status
Test Page: is accessible.
Setup Page: is accessible but doesn't proceed beyond the initial screen.
Admin Page: returns a 404 error.
Main Site Page: returns a 403 error.
System Information
OS: Debian (Yunohost)
Web Server: Nginx
PHP Version: 8.2
Magento Version: 2.4.7-p1
Logs and Error Messages (nothing really useful)
Magento System Log:
Warning: file_put_contents(/var/www/magento/var/cache//mage-tags/mage---d19_EAV): Failed to open stream: Permission denied in /var/www/magento/vendor/colinmollenhour/cache-backend-file/File.php on line 710
Nginx Access Logs:
[22/Jun/2024:23:33:03 +0200] "HEAD / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
I appreciate any guidance or suggestions from the community to resolve these issues. Please let me know if you need any further information.