一、ssh登陆阿里云服务器 执行命令: yum install php 二、启动Apachephp服务器 命令: httpd -k start 异常: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 处理: find -name httpd.co
一、ssh登陆阿里云服务器
执行命令:
yum install php
二、启动Apache+php服务器
命令:
httpd -k start
异常:
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
处理:
find -name httpd.conf
编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
如:
[root@server conf]# vi httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
再重新启动apache 即可。
三、通过ftp上传HTML或php项目文件到/var/www/html
如:上传文件为test.html或test.php
四、访问阿里云apahe+php服务器
如:在浏览器中输入:阿里云公网ip/test.html/php 访问阿里云服务器
至此配置结束。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Zend Studio 13.0.1
Powerful PHP integrated development environment

Atom editor mac version download
The most popular open source editor

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
