php-tp5部署到IIS上报Fatal error

来源:未知作者:编程 日期:2020/02/01 06:24 浏览:

私下认可端口号为80端口,能够修正

tp5部署到IIS上报Fatal error
Fatal error: Uncaught exception 'thinkexceptionErrorException' with message 'Undefined index: REQUEST_URI' in D:wwwwebceshi10.com_TtLIkrREPMyRzNlX0LnWwwwroottpthinkphplibrarythinklogdriverFile.php:100 Stack trace: #0 D:wwwwebceshi10.com_TtLIkrREPMyRzNlX0LnWwwwroottpthinkphplibrarythinklogdriverFile.php: thinkError::appError(8, 'Undefined index...', 'D:wwwwebcesh...', 100, Array) #1 D:wwwwebceshi10.com_TtLIkrREPMyRzNlX0LnWwwwroottpthinkphplibrarythinklogdriverFile.php: thinklogdriverFile->write('[ info ] [ LANG...', 'D:wwwwebcesh...') #2 D:wwwwebceshi10.com_TtLIkrREPMyRzNlX0LnWwwwroottpthinkphplibrarythinkLog.php: thinklogdriverFile->save #3 D:wwwwebceshi10.com_TtLIkrREPMyRzNlX0LnWwwwroottpthinkphplibrarythinkError.php: thinkLog::save() #4 [internal function]: thinkError::appShutdown() #5 {main} thrown in D:wwwwebceshi10.com_TtLIkrREPMyRzNlX0LnWwwwroottpthinkphplibrarythinklogdriverFile.php on line 100

Fatal error: Uncaught exception 'thinkexceptionErrorException' with message 'mkdir(): Permission denied' in /usr/local/apache2/htdocs/tp5/thinkphp/library/think/log/driver/File.php:44 Stack trace: #0 [internal function]: thinkError::appError(2, 'mkdir(): Permis...', '/usr/local/apac...', 44, Array) #1 /usr/local/apache2/htdocs/tp5/thinkphp/library/think/log/driver/File.php: mkdir('/usr/local/apac...', 493, true) #2 /usr/local/apache2/htdocs/tp5/thinkphp/library/think/Log.php: thinklogdriverFile->save #3 /usr/local/apache2/htdocs/tp5/thinkphp/library/think/Error.php: thinkLog::save() #4 [internal function]: thinkError::appShutdown() #5 {main} thrown in /usr/local/apache2/htdocs/tp5/thinkphp/library/think/log/driver/File.php on line 44

图片 1端口号

到现在甘休thinkphp运营的粗略碰到就搭建完结了~

翻开实现以后在浏览器中输入: 恐怕localhost,那时候页面将显示it's works!

Apache的私下认可安装路线为/private/etc/apache2,使用Finder的shift+command+g能够在弹出的输入框中输入路线。

持续有新的求学随笔将继续发生

Apache服务的安排路径是在Library/WebServer/Documents/,项目能够直接放在此个目录下,可是也得以将Apache的布置路线改正下,直接改成自定义路线

少年老成旦抛出以下非常

接着在浏览器中输入/localhost/tp5/public。展现平常即ok。

图片 2赋予项目目录777的权力

假诺已经起步的话讲展现already loaded

在顶峰中,本身用的iterm插件,同样输入如下命令来运营Apache服务