军哥 帮忙看下我这个安装了lnmp包 但是打开网址怎么写阿帕奇的默认
就是打开我网址 www.yichenV空格P空格N.tk 显示http://www.yichenV空格P空格N.tk/icons/ubuntu-logo.pngApache2 Ubuntu Default PageIt 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 file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\2419971988\QQ\WinTemp\RichOle\APF%W5@ 32位 恩祖file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\2419971988\QQ\WinTemp\RichOle\APF%W5@
# rpm -qa|grep httpd
# rpm -qa | grep httpd
# cd /usr/
# ls
可是根本就没有安装啊 可是输入ip 是正常的
http://23.88.3.45/
恭喜您,LNMP一键安装包安装成功!http://23.88.3.45/lnmp.gif
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程序。
查看本地环境: 探针phpinfophpMyAdmin(为了安全,建议将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侦探
# cd lnmp1.3-full
# ls
ChangeLogaddons.shincludeinstall.shphp5.2.17.shreadmetools upgrade.sh
License conf init.d lnmp.conf pureftpd.sh src uninstall.sh
#
安装好后的 目录列表
# lnmp vhost list
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| http://lnmp.org |
+-------------------------------------------+
Nginx Virtualhost list:
www.yichenV空格P空格N.tk
#
这个是创建的虚拟主机
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配置文件
# cd /home/wwwroot/www.yichenV空格P空格N.tk/
# ls
LICENSE admin asset composer.jsonfooter.phpindex.phppwd.php tools user
README.mdana.phpcode.phpfavicon.ico header.phplib robots.txt.txtupgrade_to_v2.md
#
这是网站目录 文件已经上传好了
就是打开怎么是阿帕奇啊我就纳闷 可是我根本没有安装阿帕奇啊 index.php 里面的内容是什么? 你这样显示apache 可能是网站本身的问题吧?
回复 2# 的帖子
我看了一下 文件是正确的。我想应该是域名绑定的问题 但是我找不出原因 你这个域名报500,可能程序上有问题,建议开php错误日志看看是否有有用的信息显示apache估计可能安装之前有默认的apache,你访问过有缓存
页:
[1]