登录后更精彩...O(∩_∩)O...
您需要 登录 才可以下载或查看,没有账号?立即注册
×
本帖最后由 mind 于 2022-4-10 17:33 编辑
Mac上搭建Discuz论坛
步骤一:开启apache
第二步:搭建php运行环境
最新版X3.4 Discuz! X3.4 R20220131,PHP最低要求5.3,最高7.4
第三步:安装mysql
或者手动自己安装
mysql官网:https://dev.mysql.com/downloads/mysql
下载文件:mysql-8.0.28-macos11-x86_64.dmg
一直点下一步安装完成。
第四步:安装discuz
下载源码https://gitee.com/Discuz/DiscuzX/attach_files
https://www.dismall.com/forum-38-1.html
安装
[code] blue@blues-MBP ~ brew search php
Warning: Calling Cask: SL::Version#before_colon is deprecated! Use Cask: SL::Version#csv instead.
Please report this issue to the homebrew/cask tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/eclipse-php.rb:5
Warning: Calling Cask: SL::Version#after_colon is deprecated! Use Cask: SL::Version#csv instead.
Please report this issue to the homebrew/cask tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/eclipse-php.rb:5
Warning: Calling Cask: SL::Version#before_colon is deprecated! Use Cask: SL::Version#csv instead.
Please report this issue to the homebrew/cask tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/eclipse-php.rb:5
Warning: Calling Cask: SL::Version#after_colon is deprecated! Use Cask: SL::Version#csv instead.
Please report this issue to the homebrew/cask tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/eclipse-php.rb:5
==> Formulae
brew-php-switcher php@7.2 phplint pcp
php ✔ php@7.3 phpmd pup
php-code-sniffer php@7.4 phpmyadmin
php-cs-fixer php@8.0 phpstan
php-cs-fixer@2 phpbrew phpunit
==> Casks
eclipse-php phinze/cask/eclipse-php
phpstorm phinze/cask/phpstorm
blue@blues-MBP ~ brew install phpmyadmin
Running `brew update --preinstall`...
==> Downloading https://ghcr.io/v2/homebrew/core/phpmyadmin/manifests/5.1.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/phpmyadmin/blobs/sha256:e7f6687
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring phpmyadmin--5.1.3.monterey.bottle.tar.gz
==> Caveats
To enable phpMyAdmin in Apache, add the following to httpd.conf and
restart Apache:
Alias /phpmyadmin /usr/local/share/phpmyadmin
<Directory /usr/local/share/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
Then open http://localhost/phpmyadmin
The configuration file is /usr/local/etc/phpmyadmin.config.inc.php
==> Summary
|