Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

2022-07-23 用宝塔上传后端文件到服务器,在浏览器直接访问接口地址报Service Unavailable(服务不可用)错误

 Share


Recommended Posts

前言:我在宝塔上传了php文件,在浏览器输入www.yyy.com/index.php,回车,报错。

具体报错:

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


Apache Server at www.yyy.com Port 443 

服务不可用
由于维护停机或容量问题,服务器暂时无法满足您的请求。请稍后再试。
Apache服务器位于www.yyy。com端口443

原因推测:服务器资源被占满或者是服务器太渣了运行不起来php

解决方案:

1、检查是否存在硬盘容量已满的情况,如有就处理硬盘,然后就重启服务器(来自百度的方案,我不是这样的,我的服务器硬盘占用资源极少);

2、直接重启服务器,我先是在宝塔中重启服务器,然并卵x1,我又跑去百度智能云管理后台去重启,然并卵x2;

我就纳了闷了,Apache和PHP正常启用,域名也已备案,而且就是不能访问.php文件,其他诸如.txt文本可以访问

直至我刷到了一篇文章才知道问题出在哪:

原因:我在宝塔建立的站点设置成了伪静态,而没有选择php版本,从而不能运行php文件。

解决方案:在宝塔右=左侧菜单点击网站,点击出问题的站点,找到php版本,点击后出现PHP版本,这里我看到了伪静态三个字,去掉,选择我的服务器配置的php版本,

刷新www.yyy.com/index.php,成功显示内容。

该文章链接:https://www.cnblogs.com/my-global/articles/12962458.html

 

Link to post
Link to comment
Share on other sites

 Share

discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...