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)