VPS侦探论坛

 找回密码
 注册
查看: 3166|回复: 3

军哥 帮忙看下我这个安装了lnmp包 但是打开网址怎么写阿帕奇的默认

[复制链接]
发表于 2016-6-27 21:28:04 | 显示全部楼层 |阅读模式

就是打开我网址   www.yichenV空格P空格N.tk 显示
Apache2 Ubuntu Default Page

It works!

This is the default welcome page used to test the correct operation of the Apache2 server after installation on Ubuntu systems. It is based on the equivalent page on Debian, from which the Ubuntu Apache packaging is derived. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.
If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator.


Configuration Overview

Ubuntu's Apache2 default configuration is different from the upstream default configuration, and split into several files optimized for interaction with Ubuntu tools. The configuration system is fully documented in /usr/share/doc/apache2/README.Debian.gz. Refer to this for the full documentation. Documentation for the web server itself can be found by accessing the manual if theapache2-doc package was installed on this server.
The configuration layout for an Apache2 web server installation on Ubuntu systems is as follows:
/etc/apache2/|-- apache2.conf|       `--  ports.conf|-- mods-enabled|       |-- *.load|       `-- *.conf|-- conf-enabled|       `-- *.conf|-- sites-enabled|       `-- *.conf         




这个  但是我找了下  没有安装阿帕奇啊 centos 6   [img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\2419971988\QQ\WinTemp\RichOle\APF%W5@[0`B)ZAHOV%ZQL)E.png[/img] 32位 恩祖[img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\2419971988\QQ\WinTemp\RichOle\APF%W5@[0`B)ZAHOV%ZQL)E.png[/img]
[root@233568 ~]# rpm -qa|grep httpd
[root@233568 ~]# rpm -qa | grep httpd
[root@233568 ~]# cd /usr/
[root@233568 usr]# ls


可是根本就没有安装啊 可是输入ip 是正常的  
http://23.88.3.45/  
恭喜您,LNMP一键安装包安装成功!

LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat、Debian/Ubuntu VPS(VDS)或独立主机安装LNMP(Nginx、MySQL/Mariadb、PHP)、LNMPA(Nginx、MySQL/Mariadb、PHP、Apache)、LAMP(Apache、MySQL/Mariadb、PHP)生产环境的Shell程序。
查看本地环境: 探针  phpinfo  phpMyAdmin(为了安全,建议将phpmyadmin目录重命名为不容易猜到的目录!)
更多LNMP一键安装包信息请访问: http://lnmp.org
LNMP一键安装包问题反馈请访问: https://bbs.vpser.net/forum-25-1.html
VPS相关教程: https://www.vpser.net/vps-howto/
美国VPS推荐: https://www.vpser.net/usa-vps/
声明:出现该页面只说明您当前访问的网站使用了LNMP一键安装包搭建的环境,当前网站与LNMP一键安装包、VPS侦探和licess不存在任何关系!
LNMP一键安装包 by Licess & VPS侦探
[root@233568 ~]# cd lnmp1.3-full
[root@233568 lnmp1.3-full]# ls
ChangeLog  addons.sh  include  install.sh  php5.2.17.sh  readme  tools         upgrade.sh
License    conf       init.d   lnmp.conf   pureftpd.sh   src     uninstall.sh
[root@233568 lnmp1.3-full]#


安装好后的   目录列表
[root@233568 lnmp1.3-full]# lnmp vhost list
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              http://lnmp.org              |
+-------------------------------------------+
Nginx Virtualhost list:
www.yichenV空格P空格N.tk
[root@233568 lnmp1.3-full]#
这个是创建的虚拟主机



server
    {
        listen 80;
        #listen [::]:80;
        server_name www.yichenV空格P空格N.tk yichenV空格P空格N.tk;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/www.yichenV空格P空格N.tk;

                if ($http_user_agent ~* (baiduspider|googlebot|soso|bing|sogou|yahoo|sohu-search|yodao|YoudaoBot|robozilla|msnbot|MJ12bot|NHN|Twiceler)) {
                return 403;
                }

        include none.conf;
        #error_page   404   /404.html;
        include enable-php.conf;

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
"www.yichenV空格P空格N.tk.conf" 33L, 815C

nginx配置文件
[root@233568 vhost]# cd /home/wwwroot/www.yichenV空格P空格N.tk/
[root@233568 www.yichenV空格P空格N.tk]# ls
LICENSE    admin    asset     composer.json  footer.php  index.php  pwd.php         tools             user
README.md  ana.php  code.php  favicon.ico    header.php  lib        robots.txt.txt  upgrade_to_v2.md
[root@233568 www.yichenV空格P空格N.tk]#

这是网站目录 文件已经上传好了
就是打开怎么是阿帕奇啊  我就纳闷   可是我根本没有安装阿帕奇啊
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-6-27 22:21:31 | 显示全部楼层


index.php 里面的内容是什么? 你这样显示apache 可能是网站本身的问题吧?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-6-27 22:54:07 | 显示全部楼层

回复 2# 的帖子


我看了一下 文件是正确的。我想应该是域名绑定的问题 但是我找不出原因
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-6-28 11:03:24 | 显示全部楼层



你这个域名报500,可能程序上有问题,建议开php错误日志看看是否有有用的信息

显示apache估计可能安装之前有默认的apache,你访问过有缓存
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-20 21:45 , Processed in 0.026957 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表