简体   繁体   中英

Running mamp pro in cgi mode - how to enable html to run as php

I've tried everything I can think of to run .html files as php in CGI mode on MAMP Pro and nothing seems to work. Currently, I'm trying this but apache fails to start -

AddHandler fcgid-script .html
FCGIWrapper /Applications/MAMP/fcgi-bin/php5.6.25.fcgi .html

I've also tried a whole bunch of different AddHandler options.

Has anyone successfully been able to do this?

这对我有用:

AddHandler php-fastcgi .html

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