dry18813 2018-12-02 23:01
浏览 231

从外部访问php文件时出现404错误

I have a cloud server running Windows Server 2016 with IIS 10.0 web server on which I want to install a contact form to email details. I have found a template using PHP and installed PHP 7.1.24 so that the contact form works when I access the form on the cloud server using http://localhost/phpmailer/examples/contactform.php. I can also access PHP info using http://localhost/phpinfo.php. This file is installed at C:\inetpub\wwwroot\phpinfo.php.

However, if I try to access either PHP file externally using http://websitename/phpinfo.php or http://websitename/phpmailer/examples/contactform.php I get a 404 error. I can externally access an HTML file in C:\inetpub\wwwroot OK.

What do I need to do in order to be able to access the PHP file externally?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 fluent无法启动
    • ¥15 孟德尔随机化r语言运行问题
    • ¥15 pyinstaller编译的时候出现No module named 'imp'
    • ¥15 nirs_kit中打码怎么看(打码文件是csv格式)
    • ¥15 怎么把多于硬盘空间放到根目录下
    • ¥15 Matlab问题解答有两个问题
    • ¥15 LCD12864中文显示
    • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
    • ¥15 gsoap生成onvif框架
    • ¥15 有关sql server business intellige安装,包括SSDT、SSMS。