I update my macOS from Catalina to Big Sur. After updating my apache is not working. It shows an error
httpd: Syntax error on line 556 of /private/etc/apache2/httpd.conf: Could not open configuration file /private/etc/apache2/other/+php-osx.conf: No such file or directory
Iam not sure why this error shows me. Please any one suggest me how to solve this error?
Advertisement
Answer
I have faced same problem. I have fixed my problem following three steps
- First remove file
+php-osx.conf
from/private/etc/apache2/other/
directory - In your
httpd.conf
file just remove “#” before “LoadModule php7_module libexec/apache2/libphp7.so”. Using terminal commandsudo nano /etc/apache2/httpd.conf
- After completing above two steps you must restart your apache using command
sudo apachectl restart