当前位置:网站首页>用宝塔建第2个网站时网站总是报错:No input file specified.
用宝塔建第2个网站时网站总是报错:No input file specified.
2022-06-30 11:36:00 【SDL大华】
用宝塔建第2个网站时,网站总是报错:No input file specified.
网站现象:
No input file specified. 就一直报这个错,我操作时没问题的,我已经很熟练,而且重复卸载安装网站多次,并且也按网上说的,修改重写配置,始终无效。
查日志
查服务器日志发现,以下错误:
PHP Warning: Unknown: open_basedir restriction in effect. FileXXXXXXXX
proxy_fcgi:error AH01071:收到错误'Unable to open primary script: /var/www.html/laravel/public/index.php(权限被拒绝)‘
还是按网上的方法去尝试,比如改入口文件执行者用户,以及修改宝塔配置的base_dir....的勾选项,都没有作用。人在犯懒的时候解决问题的效率可时很低的。过了一天,好好睡了一觉,就集中精力解决这个问题,最后发现是php.ini配置问题。
具体到配置代码:
open_basedir = /www/wwwroot/pakchoimerchant/:/tmp/:/var/tmp/:/proc/
解决
我这里最终问题是出在网站目录配置错误,这个是宝塔默认设置,添加第一个网站的时候就默认的这个值,把它改成自己的目录即可。
注意:这是只有一个网站的情况,多个网站的修改方法自行查阅资料解决。
服务器有多个网站的时候,把目录pakchoimerchant改了是会影响其它网站使用的,最好方法是注释掉open_basedir配置项,我已按照此方法处理,各个网站正常使用。
END
边栏推荐
- MySQL 表的内连和外连
- QT embeds the sub QT program window into the current program
- ClipboardJS——开发学习总结1
- R语言ggplot2可视化:使用ggplot2可视化散点图、在geom_point参数中设置alpha参数指定数据点的透明度级别(points transparent、从0到1)
- WebView, Scrollview sliding conflict correction
- Summer vacation study record
- Win10 R package installation error: not installed in arch=i386
- 构造函数、类成员、析构函数调用顺序
- Alibaba cloud lifeifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
- Evaluation of IP location query interface Ⅲ
猜你喜欢

据说用了这个,老板连夜把测试开了

HMS Core音频编辑服务3D音频技术,助力打造沉浸式听觉盛宴

一瓶水引发的“战争”

Filter error in dplyr: can't transform a data frame with duplicate names

Stm32f407zgt6 uses SDIO mode to drive SD card

一个悄然崛起的国产软件,低调又强大!

Is the golden cycle of domestic databases coming?

What is erdma as illustrated by Coptic cartoon?

wallys/3 × 3 MIMO 802.11ac Mini PCIe Wi-Fi Module, QCA9880, 2,4GHz / 5GHzDesigned for Enterprise

Let's talk about how to do hardware compatibility testing and quickly migrate to openeuler?
随机推荐
It is said that with this, the boss opened the test overnight
Let's talk about how to do hardware compatibility testing and quickly migrate to openeuler?
一瓶水引发的“战争”
The sci-fi ideas in these movies have been realized by AI
wallys/600VX – 2 × 2 MIMO 802.11ac Mini PCIe Wi-Fi Module, Dual Band, 2,4GHz / 5GHz QCA 9880
R language ggplot2 visualization: use ggplot2 visualization scatter diagram and the color parameter in AES function to specify that data points in different groups are displayed in different colors
数据库连接池 druid
R语言ggplot2可视化:使用ggplot2可视化散点图、使用scale_x_log10函数配置X轴的数值范围为对数坐标
Le talent scientifique 丨 dessins animés qu'est - ce qu'erdma?
What is the function of LED backlight?
Cache avalanche and cache penetration solutions
优惠券种类那么多,先区分清楚再薅羊毛!
Shell first command result is transferred to the second command delete
Summer vacation study record
Boost study: boost log
AutoCAD - len command
zabbix监控TCP连接个数
60 divine vs Code plug-ins!!
nvm安装node后,在使用npm指令时候显示不是内部或外部指令
【模式识别大作业】