Hi. I have recently completed a M2OS install. I'm able to serve up a dummy index.php from the /pub folder. But when I run the OOTB index.php I get a ERR_CONNECTION_REFUSED. Nothing useful in the logs even after turning on debug level logging. I would appreciate any ideas or feedback. Thanks!
Addendum: M2OS v 2.4.7. PHP 8.3.9. Running locally on Mac (Intel chips) with Homebrew Apache. bin/magento is working. I was able to complete all of the installation steps. The log is printing but no errors/exceptions. I have previously installed Docker Magento and used it successfully. Now trying to install the non-Dockerized Magento to prepare for a fresh install on a new host (moving away from Nexcess due to the cost).
Hello @plambateks60af
public_html
or pub
).index.php
.httpd.conf
or apache2.conf
).755
for directories and 644
for files).
Hello @plambateks60af,
you've set up everything correctly, but you're encountering an issue with Magento's front end serving. The ERR_CONNECTION_REFUSED error typically indicates a problem with the server configuration or network settings. Here are some steps you can take to troubleshoot the issue:
<VirtualHost *:80> DocumentRoot "/path/to/magento2/pub" ServerName magento.local <Directory "/path/to/magento2/pub"> AllowOverride All Require all granted </Directory> ErrorLog "${APACHE_LOG_DIR}/magento_error.log" CustomLog "${APACHE_LOG_DIR}/magento_access.log" combined </VirtualHost>
Make sure that the ServerName matches the URL you're using to access the site.
If using SSL, ensure your Apache configuration also has the appropriate SSLEngine and certificate settings.
Check Localhost Port:
sudo chown -R :www-data . sudo find . -type f -exec chmod 644 {} \; sudo find . -type d -exec chmod 755 {} \;
If the issue will be resolved, Click Kudos & Accept as a Solution.