简体   繁体   English

无法使用php Web服务器访问管理区域processwire

[英]unable to access admin area processwire using php webserver

I have a fresh install of Processwire, and I've set the admin area to 'admin'. 我重新安装了Processwire,并将管理区域设置为“ admin”。

However, as I'm using a Cloud9 selfhosted IDE, I run my dev projects using the PHP webserver. 但是,由于我使用的是Cloud9自托管IDE,因此我使用PHP网络服务器运行开发项目。

I cannot access the admin panel, as the routing is designed around a .htaccess rewrite 我无法访问管理面板,因为路由是围绕.htaccess重写设计的

I followed this guide https://processwire.com/talk/topic/13445-using-phps-built-in-webserver-with-processwire/ to create a routing file, but with no joy. 我遵循了本指南https://processwire.com/talk/topic/13445-using-phps-built-in-webserver-with-processwire/来创建路由文件,但并不高兴。

How can I get a dev processwire site up and running using the PHP server? 如何使用PHP服务器启动并运行一个dev processwire网站?

Nevermind.. Turns out C9 wasn't running 'routing.php' but still launching the 'index.php' file. 没关系。事实证明C9没有运行“ routing.php”,但仍在启动“ index.php”文件。

Not sure how to make it run a non-index file? 不确定如何使其运行非索引文件?

Run php -S localhost:8000 routing.php from the web root. 从Web根目录运行php -S localhost:8000 routing.php The routing.php file should be there, of course. 当然, routing.php文件应该在那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM