Problems after upgrading mac computer to apache

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


Php
Apr.11,2021

find your newly installed php and php-config files. It is possible to link these two files to the / usr/bin/ directory here in / usr/local/opt/php/bin.
execute the following command to link, and versions after 10.11 need to use sudo. (if your newly installed php and php-config are in the / usr/local/opt/php/bin directory)

sudo ln -f /usr/local/opt/php/bin/php /usr/bin/php
sudo ln -f /usr/local/opt/php/bin/php-config /usr/bin/php-config
When

is finished, run the command php-v to see if the php version has changed.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e65a79-45b4e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e65a79-45b4e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?