在 Apache 上更改端口不起作用(使用 IZ-WAMP)
Changing port on Apache doesn't work (using IZ-WAMP)
我在本地使用 IZ-WAMP https://sourceforge.net/projects/iz-wamp/ PHP/Wordpress。
在他们的托盘菜单中,可以访问 httpd.conf
我使用
将端口更改为 80
定义IZ_WAMP_HTTP_PORT“80”
但是重启 Apache 后,localhost 不再工作了。
回答后更新:我看不到任何应用程序使用的任何端口 80,对于 httpd.exe 我只能看到 "http",这很奇怪。
我是来自法国的IZ-WAMP 的创造者。
您可以转到 IZ-WAMP 菜单,"Administration / Systems infomations / TCPView"。然后去"Local Port"一栏看是哪个进程使用了"http"端口。
还要检查您的防火墙是否未阻止 "Apache" 应用程序或 "http" 端口。
另请注意,在安装 IZ-WAMP 时,如果端口“80”已被使用,它将为您配置端口“8080”。一切都在安装过程中说。
最好的问候。
好的,问题解决了,很好!
如何将 IZ-WAMP Wordpress 端口 8080 更改为 80:
1-转到 http://localhost:8080/wordpress 检查它是否正常工作
2-转到 http://localhost:8080/adminer(或通过 de IZ-WAMP 菜单 "MySQL/Adminer")
3-select "wordpress" 数据库
4-更改值:
update wp_options set optionvalue='http://localhost' where option_name='siteurl';
5-更改值:
update wp_options set optionvalue='http://localhost' where option_name='home';
6-更改 "httpd.conf" 文件(或通过 de IZ-WAMP 菜单 "Administration/Configuration Files")
[before] Define IZ_WAMP_HTTP_PORT "8080"
[after] Define IZ_WAMP_HTTP_PORT "80"
7-通过 IZ-WAMP 菜单重新启动 "Restart All"
8-转到 http://localhost/wordpress 再次检查它是否正常工作
我在本地使用 IZ-WAMP https://sourceforge.net/projects/iz-wamp/ PHP/Wordpress。
在他们的托盘菜单中,可以访问 httpd.conf
我使用
将端口更改为 80定义IZ_WAMP_HTTP_PORT“80”
但是重启 Apache 后,localhost 不再工作了。
回答后更新:我看不到任何应用程序使用的任何端口 80,对于 httpd.exe 我只能看到 "http",这很奇怪。
我是来自法国的IZ-WAMP 的创造者。 您可以转到 IZ-WAMP 菜单,"Administration / Systems infomations / TCPView"。然后去"Local Port"一栏看是哪个进程使用了"http"端口。 还要检查您的防火墙是否未阻止 "Apache" 应用程序或 "http" 端口。 另请注意,在安装 IZ-WAMP 时,如果端口“80”已被使用,它将为您配置端口“8080”。一切都在安装过程中说。 最好的问候。
好的,问题解决了,很好!
如何将 IZ-WAMP Wordpress 端口 8080 更改为 80:
1-转到 http://localhost:8080/wordpress 检查它是否正常工作
2-转到 http://localhost:8080/adminer(或通过 de IZ-WAMP 菜单 "MySQL/Adminer")
3-select "wordpress" 数据库
4-更改值:
update wp_options set optionvalue='http://localhost' where option_name='siteurl';
5-更改值:
update wp_options set optionvalue='http://localhost' where option_name='home';
6-更改 "httpd.conf" 文件(或通过 de IZ-WAMP 菜单 "Administration/Configuration Files")
[before] Define IZ_WAMP_HTTP_PORT "8080"
[after] Define IZ_WAMP_HTTP_PORT "80"
7-通过 IZ-WAMP 菜单重新启动 "Restart All"
8-转到 http://localhost/wordpress 再次检查它是否正常工作