简体   繁体   中英

npm live-server not reading php files

I'm very new to Git, and I just installed live server and I run it via terminal. I noticed that it only runs .html files rather than .php files. It basically skips reading them so instead of running index.php, it gives me a directory listing. If I use an html file, it works fine. Is there any work around to this?

There is no. This server works only with HTML, CSS and JavaScript.

If you want PHP you need more powerful server (Apache, nginx, lighttpd, etc.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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