已安装了PHP,但Nginx未在浏览器上显示它(可能与Flywheel与WP Local发生冲突)
我最近与WP Local(又名Local by Flywheel)合作,当时该应用程序内部启动时,本地Worpress网站的所有PHP内容都可以正常工作。
现在,我开始研究与WordPress无关的PHP,所以我必须在WP Local 之外进行练习。但是,NGINX并未从存储在/var/www/html的页面中在浏览器中运行我的PHP代码。它仅正确显示HTML页面。 HTML页面内的PHP也不起作用。
Linux,Nginx,PHP7和MySQL已安装(由WP Local安装),
我很感谢您的一些光线以使PHP代码工作(在提到的应用程序之外)。
I have been recently working with WP Local (a.k.a Local by Flywheel) and all the PHP content of local Worpress sites work fine when they are started from inside this app.
Now I started studying PHP, unrelated to Wordpress, so I have to do excercises outside of WP Local. However, NGINX is not running my php code in the browser from pages stored at /var/www/html. It only displays correctly the html pages. PHP inside html pages doesn't work either.
Linux, nginx, php7 and mysql are installed (were installed by WP Local)
I would appreciate some light to make php code work (outside of the mentioned app).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论