PHP incredibly slow since upgrading macOS to 10.14 Mojave?

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

Since I upgraded my Mac to Mojave 10.14, I noticed PHP is incredibly slow.

When I do this from the terminal:

php -v

It takes about 4-5 seconds before showing the version number, which is:
PHP 7.1.13 (cli) (built: Feb 1 2018 13:38:42) ( NTS )

Is there a way to fix this? And, perhaps upgrade to the latest PHP (currently 7.2) while I'm at it?

profilepic.png
manpreet 2 years ago

I faced a similar issue on Mojave update, I was able to fix it by updating /etc/hosts file with

::1             localhost YouMacName.local
127.0.0.1       localhost YouMacName.local

You can get YourMacName.local by running in terminal:

$ hostname

I hope it helps you


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.