启动phpstudyV8.1提示错误:nginx: [emerg] CreateFile() “…/nginx.htaccess” failed

在启用phpstudyV8时,提示出错,此错误提示只有在使用Nginx的时候才出现,这个是因为phpstudyV8从Apache切换为nginx的时候,需要通过网站根目录的nginx.htaccess来切换,缺少该文件就会提示出错了。

出错提示信息:文章源自SEO视频网-https://www.seoshipin.cn/jianzhan/phpstudy/4708.html

nginx: [emerg] CreateFile() "D:/phpstudy_pro/WWW/diuu2.com/nginx.htaccess" failed (2: The system cannot find the file specified) in D:\phpstudy_pro\Extensions\Nginx1.15.11/conf/vhosts/diuu2.com_80.conf:20

解决方法:文章源自SEO视频网-https://www.seoshipin.cn/jianzhan/phpstudy/4708.html

创建新站点,就会在网站根目录自动生成一个nginx.htaccess文件,然后打开新站点的网站根目录,复制nginx.htaccess文件,粘贴到提示错误的站点的网站根目录下。文章源自SEO视频网-https://www.seoshipin.cn/jianzhan/phpstudy/4708.html

也可以从其他站点复制nginx.htaccess文件到提示信息中的网站的根目录。文章源自SEO视频网-https://www.seoshipin.cn/jianzhan/phpstudy/4708.html

phpstudyV8.1教程:https://seo.dingdingkaike.com/course/courseDetail?course_id=69800文章源自SEO视频网-https://www.seoshipin.cn/jianzhan/phpstudy/4708.html

phpstudyv8.1安装后mysql打不开,在使用phpstudyV8.1本地建站的时候,点击启动按钮,但是mysql无...
10212
文章源自SEO视频网-https://www.seoshipin.cn/jianzhan/phpstudy/4708.html文章源自SEO视频网-https://www.seoshipin.cn/jianzhan/phpstudy/4708.html
 
  • 本文由 潮涌SEO 发表于 2022年12月15日 13:32:11
  • 转载请务必保留本文链接:https://www.seoshipin.cn/jianzhan/phpstudy/4708.html