How to install the sky-wing Cloud host configuration lamp environment

Source: Internet
Author: User
Tags install php php and mysql versions centos

Before buying the Sky Wing Cloud host, because has not played the Linux operating system, thought that builds the lamp environment to be very troublesome, has been hesitant to choose the Windows operating system to calculate, but considered the stability and the security question, finally has chosen the Linux, Then in the sky-wing cloud mainframe build lamp, until the success of the original found that this is a very simple thing.

First, L (Linux) selection and installation

Linux has many versions of the operating system, including CentOS, Ubuntu, Fedora, Debian, Redhat and so on, a variety of, how to choose? In fact, I can not clearly tell which is good, but only on the internet to learn the most CentOS users, and online tutorials, resources, so chose it.

The system does not need to install, only need to choose, if only the switch between Windows or Linux different versions, you can operate, if it is from Windows and Linux switch between the need to contact the Sky Wing Cloud host customer service to operate.

Second, use Remi Source to quickly install Apache, MySQL and PHP.

(Note: The following command execution is done using putty)

The first step: Install the configuration Remi Source

Remi Source is the latest version of Apache, PHP and MySQL and other packages of Linux sources, provided by the Remi maintenance, are some Linux technology uploaded by Daniel. After this source, using YUM to install or update Apache, PHP, MySQL, phpMyAdmin and other server-related programs is very convenient.

The code is as follows Copy Code

RPM-UVH http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

Step two: Install Apache, MySQL 5.5.30 & PHP 5.4.12

The code is as follows Copy Code

Yum–enablerepo=remi,remi-test install httpd mysql mysql-server php php-common

Step three: Install the PHP 5.4.12 module

The code is as follows Copy Code

Yum–enablerepo=remi,remi-test Install Php-mysql php-pgsql Php-pecl-mongo php-sqlite php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli php-pear php-pdo

Fourth step: Start Apache & MySQL 5.5.30 Service

The code is as follows Copy Code

Chkconfig–levels 235 httpd on

Chkconfig–levels 235 mysqld on

/ETC/INIT.D/HTTPD start

/etc/init.d/mysqld start


Step Fifth: Verify the installation of Apache, MySQL 5.5.30 and PHP 5.4.12

In the browser address bar directly enter your sky-wing cloud host IP address and then enter, you can see the Apache test page, the following figure: (If the record has been passed)

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.