Yum,httpd,php Environment Construction Method

Source: Internet
Author: User

#删除已有的yum

1 Rpm-qa|grep Yum|xargs rpm-e--nodeps

2 ls

3 RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm

4 RPM-IVH yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

5 RPM-IVH yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

6 cd/etc/yum.repos.d/

7 ls

8 Mv/root/centos-base.txt./centos-base.repo

9 ls

Yum Clean All

Yum Makecache

cd

#httpd安装启动

Yum-y Install httpd

#加入

Chkconfig httpd on

Service httpd Start

# This command can unload clean MySQL and reload (spare)

#yum remove MySQL mysql-server mysql-libs compat-mysql51

Yum-y Install httpd-manual mod_ssl mod_perl mod_auth_mysql

Yum-y install MySQL mysql-server mysql-devel

Chkconfig mysqld on

Service mysqld Start

20/usr/bin/mysqladmin-u root password ' 123456 '

Mysql-u root-p

22/usr/bin/mysql_secure_installation

Mysql-u root-p

NETSTAT-TULPN | Grep-i MySQL

#增加80端口命令

# Vim/etc/sysconfig/iptables

#

#php流程

Yum-y Install PHP Php-mysql

Yum Search PHP

Yum-y Install GD php-gd gd-devel php-xml php-common php-mbstring php-ldap php-pear php-xmlrpc php-imap

Service httpd Restart

vim/var/www/html/index.php

#这句话加入其中

<?php

Phpinfo ();

?>

~

#保存退出

cd/var/www/html/

#这两步根据具体文件进行操作 because the file name may not be the same

cp/root/ecmoban_v2.7.3_utf8_20160825\ \ (2\). zip./

Unzip ecmoban_v2.7.3_utf8_20160825\ \ (2\). zip

#文件名有可能不一样

ls

CD ecmoban_v2.7.3_utf8_20160

+ ls

CD ecmoban_v2.7.3_utf8_20160722/

Notoginseng ls

CD ecmoban_v2.7.3_utf8_20160720/

All-in LS

CD. /

The "LS"

ecmoban_v2.7.3_utf8_20160720/mv. /ecmoban27

vim/var/www/html/ecmoban27/upload/includes/cls_mysql.php

#因为页面报版本提示错误所以要注释掉提示错误的163行的 # command: Set nu Show navigation command: 163 find 163 rows

if ($this->platform = = = ' other ' &&

162 ($dbhost! = '. ' && strtolower ($dbhost)! = ' localhost:3306 ' && $dbhost! = ' 127.0.0.1:33 06 ')/*| |

163 (php_version >= ' 5.1 ' && date_default_timezone_get () = = ' UTC ') */)

#

Yum,httpd,php Environment Construction Method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.