Showing results for 
Search instead for 
Did you mean: 

Issues with Magento Installation on Yunohost - Need Assistance

Issues with Magento Installation on Yunohost - Need Assistance

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

  1. Service Temporarily Unavailable (503)

    • When accessing the site, I initially received a "Service Temporarily Unavailable" error.
  2. Admin Page Not Accessible (404)

    • The admin page returns a 404 error.
  3. Magento Setup Page Stuck

    • The setup page displays but doesn't proceed beyond the initial welcome screen.
  4. Main Site Page (403)

    • The main site page returns a 403 error.

Steps Taken to Resolve the Issues

  1. Checked and Set Correct PHP Version

    • Verified that PHP 8.2 is active.
  2. Adjusted File Permissions and Ownership

    • Set file permissions to 644 and directory permissions to 755.
    • Changed ownership of the Magento directory to www-data
  3. Reviewed and Updated Nginx Configuration

    • Ensured the configuration aligns with Magento's requirements.
  4. Restarted Services

    • Restarted Nginx and PHP-FPM multiple times.
  5. Cleared Magento Cache and Rebuilt Configurations

    • Manually cleared cache directories.
    • Ran Magento setup upgrade, compile, deploy, and reindex commands.
  6. Reviewed Logs

    • Analyzed Nginx error logs, PHP-FPM logs, and Magento system and exception logs.
  7. Switched Maintenance Mode

    • Disabled maintenance mode to ensure the site is accessible.
  8. 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/ 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.

    Thank you.



Re: Issues with Magento Installation on Yunohost - Need Assistance

Do you see any nginx error? could you share the nginx error log file and nginx configuration file