2
我试着去建立一个本地工作的子域Wordpress
多站点的端口8090
上。
设置
- MAMP堆栈在端口3306的SQL,Apache就安装在路8080
- 的WordPress 4.4:/用户/ X/Y /网站/网络/ WordPress的
- 运行PHP在Web服务器上的IntelliJ 8090端口
错误(当试图在ADMI安装多站点网络n wordpress部分)
Error: You cannot install a network of sites with your server address
You cannot use port numbers such as :8090.
因此我更改了我的apache2 httpd.config文件。
httpd.config
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
,并加入虚拟主机
的httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/Users/x/Environment/mampstack-5.4.32-0/
apache2/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/x/y/website/www"
ServerName testproject.dev
<Directory "/Users/x/y/website/www">
AllowOverride All
</Directory>
</VirtualHost>
然后,我改变在/ etc /主机。
的/ etc /主机
127.0.0.1 localhost testproject.dev
# later on for mulisite sub domains
127.0.0.1 localhost.com
127.0.0.1 subdomain.localhost.com
我重新启动整个MAMP设置,清空缓存中的htaccess文件并重新启动我的PHP服务器。但我仍然有同样的错误,无法在Wordpress中设置我的多站点。
问题
我在做什么错?