problem description
mac computer,
brew install httpd24
DocumentRoot is /usr/local/var/www.
The default ports have been set in /usr/local/etc/httpd/httpd.conf to 8080 and in
/usr/local/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.
To have launchd start httpd now and restart at login:
brew services start httpd
Or, if you don"t want/need a background service you can just run:
apachectl start
==> Summary
? /usr/local/Cellar/httpd/2.4.34: 1,633 files, 26.6MB
==> Caveats
==> httpd
DocumentRoot is /usr/local/var/www.
The default ports have been set in /usr/local/etc/httpd/httpd.conf to 8080 and in
/usr/local/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.
To have launchd start httpd now and restart at login:
brew services start httpd
Or, if you don"t want/need a background service you can just run:
apachectl start
macdeMacBook-Pro:~ mac$ brew services start httpd
==> Successfully started `httpd` (label: homebrew.mxcl.httpd)
/usr/local/etc/httpd/httpd.conf
/etc/apache2/httpd.conf
the environmental background of the problems and what methods you have tried
sudo apachectl restart
:
AH00558: httpd: Could not reliably determine the server"s fully qualified domain name, using macdeMacBook-Pro.local. Set the "ServerName" directive globally to suppress this message
nginx.
nginx /usr/local/var/wwwapache
localhost:8080
index.html
localhost:8080/index.php
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
If you are the system administrator of this resource then you should check the error log for details.
Faithfully yours, nginx.
related codes
/ / Please paste the code text below (do not replace the code with pictures)
what result do you expect? What is the error message actually seen?
macphp7echo phpinfo() php.5.6
php7brew install php7
httpd.conf:
LoadModule php7_module /usr/local/opt/php/lib/httpd/modules/libphp7.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
then the project cannot be opened, as if apache did not start. The error reported by
is the same as above.
apache,php7
apache
localhost:8080/index.phpnginxphp