How to Install PHP 5.4, PHP 5.5 or PHP 5.6 on CentOS 6

Posted Leave a commentPosted in Skill

Install EPEL and Remi Repository 1. To install latest stable version of PHP, you need to add EPEL and Remi repository to your CentOS 6distribution using the following commands as root user. # wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm # rpm -Uvh epel-release-6-8.noarch.rpm remi-release-6.rpm Install EPEL and Remi Repo Install Yum-Utils to Manage Repository 2. Install yum-utils, a collection of utilities that integrate with […]

Installing PHP 5.4 on RHEL 6 and CentOS 6

Posted Leave a commentPosted in Skill

Red Hat Enterprise Linux and CentOS 6 still ship with PHP 5.3. ownCloud requires PHP 5.4 or better. There are several third-party repositories that supply PHP 5.4, but you must use the Software Collections (SCL) repository to be in compliance with your RHEL support contract, and not any other third-party repository. RHEL 6 Follow these […]

快速搭建 Nginx + https + wordpress + Let’s Encrypt永久免费SSL证书

Posted Leave a commentPosted in Skill

首先准备一台Google cloud server, CentOS 6.1 安装必要软件 sudo yum -y install nginx php php-mysql mysql mysql-server git php-fpm php-xml php-mbstring 启动相关软件 sudo chkconfig mysqld on sudo service mysqld start sudo chkconfig nginx on sudo service nginx start sudo service php-fpm start sudo chkconfig php-fpm on 此时在浏览器输入 该服务器IP确保已经可以正常访问 设置mysql数据库 sudo mysql_secure_installation 1. Enter current password for root […]

安裝 LAMP – 在 CentOS 6.3 裡安裝 Apache、Mysql、Php

Posted Leave a commentPosted in Skill

LAMP = Linux + Apache + Mysql + PhP。說明安裝這三個網頁項目,早就讓掉落的牙齒變成化石了。如果你也是這麼想,說不定你的部分記憶跟我一樣,停留在自己逐步的修改 conf 檔,使 apache 跟 php 能合作處理網頁的查詢。今天要說的事簡單利用 yum 等套件管理程式來安裝所需的環境,所以這篇純粹是做紀錄用的,就是讓我下次可以直接複製、貼上、執行就搞定的紀錄。 第一步安裝我們就來安裝上說明的項目 sudo yum  -y  install  httpd  php  php-mysql  mysql  mysql-server 批哩啪啦的亂跑一堆,正常安裝話最後就會出現 Installed:   mysql.x86_64 0:5.1.66-2.el6_3           mysql-server.x86_64 0:5.1.66-2.el6_3   php.x86_64 0:5.3.3-14.el6_3             php-mysql.x86_64 0:5.3.3-14.el6_3 Dependency Installed:   perl-DBD-MySQL.x86_64 0:4.013-3.el6 […]

安裝 LAMP – 在 CentOS 6.3 裡安裝 Apache、Mysql、Php

Posted Leave a commentPosted in Skill

LAMP = Linux + Apache + Mysql + PhP。說明安裝這三個網頁項目,早就讓掉落的牙齒變成化石了。如果你也是這麼想,說不定你的部分記憶跟我一樣,停留在自己逐步的修改 conf 檔,使 apache 跟 php 能合作處理網頁的查詢。今天要說的事簡單利用 yum 等套件管理程式來安裝所需的環境,所以這篇純粹是做紀錄用的,就是讓我下次可以直接複製、貼上、執行就搞定的紀錄。 一般來說安裝 網頁伺服器 httpd (apache) ,你只需要 yum install httpd -y 就搞定了,但為了能搭配 MySQL 跟 PHP 你還得多安裝一些套件。目前 20130107 yum 可以安裝的各版本為   軟體套件 目前版本 說明 httpd Apache 2.2.15 15.el6.centos.1 The Apache HTTP Server is a powerful, efficient, and extensible web server. PHP 5.3.3 14.el6_3 http://www.php.net/ PHP is […]