Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Unable to connect to localhost after MAMP installation
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="malcolmi" data-source="post: 1926627" data-attributes="member: 80331"><p>I am using homebrew to set up Apache and PHP on MacOS Monterey since Apple no longer supports PHP. I have successfully installed homebrew and have been following the instructions at <a href="https://tech-cookbook.com/2021/10/25/how-to-setup-mamp-macos-apache-mysql-php-on-macos-12-monterey-2021/" target="_blank">How to Setup MAMP (MacOS, Apache, MySQL, PHP) Local Server on macOS 12 Monterey M1 Mac (2021)</a>. I have also checked the homebrew console output which tells me that whereas tech-cookbook refers to /opt/homebrew/etc/httpd/ this should be replaced by /usr/local/opt/httpd/</p><p></p><p>The installation seems to have worked OK: </p><p></p><p>% brew services restart httpd</p><p>Stopping `httpd`... (might take a while)</p><p>==> Successfully stopped `httpd` (label: homebrew.mxcl.httpd)</p><p>==> Successfully started `httpd` (label: homebrew.mxcl.httpd)</p><p>% brew services restart php</p><p>Stopping `php`... (might take a while)</p><p>==> Successfully stopped `php` (label: homebrew.mxcl.php)</p><p>==> Successfully started `php` (label: homebrew.mxcl.php)</p><p></p><p>But when I try to access localhost via browser I get</p><p></p><p>Unable to connect</p><p>An error occurred during a connection to localhost.</p><p></p><p>I have checked the content of httpd.conf many times. Can anyone suggest how to find out what's wrong?</p><p></p><p>Thank you.</p><p>- Malcolm</p></blockquote><p></p>
[QUOTE="malcolmi, post: 1926627, member: 80331"] I am using homebrew to set up Apache and PHP on MacOS Monterey since Apple no longer supports PHP. I have successfully installed homebrew and have been following the instructions at [URL="https://tech-cookbook.com/2021/10/25/how-to-setup-mamp-macos-apache-mysql-php-on-macos-12-monterey-2021/"]How to Setup MAMP (MacOS, Apache, MySQL, PHP) Local Server on macOS 12 Monterey M1 Mac (2021)[/URL]. I have also checked the homebrew console output which tells me that whereas tech-cookbook refers to /opt/homebrew/etc/httpd/ this should be replaced by /usr/local/opt/httpd/ The installation seems to have worked OK: % brew services restart httpd Stopping `httpd`... (might take a while) ==> Successfully stopped `httpd` (label: homebrew.mxcl.httpd) ==> Successfully started `httpd` (label: homebrew.mxcl.httpd) % brew services restart php Stopping `php`... (might take a while) ==> Successfully stopped `php` (label: homebrew.mxcl.php) ==> Successfully started `php` (label: homebrew.mxcl.php) But when I try to access localhost via browser I get Unable to connect An error occurred during a connection to localhost. I have checked the content of httpd.conf many times. Can anyone suggest how to find out what's wrong? Thank you. - Malcolm [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Unable to connect to localhost after MAMP installation
Top