This article shows you how to install Apache and PHP on CentOS 6. CentOS 6 comes with Apache 2.2.3 and PHP 5.1.6, which you can install using the default CentOS Package Manager yum . yum The advantage of using (instead of using source code for
Previous blog We installed the CENTOS7 on the virtual machine, and then we started to install the LNMP environment.Same as before, after entering the command line, first use the SU command to switch to root permissions.Configure the firewall
I. Experimental environment
OS
CentOS 6.8 x86_64
Nagios Main Program
Nagios-4.1.1.tar.gz
Nagios Plugin
Nagios-plugins-2.1.1.tar.gz
Two. Configure domestic
The first installation, or rather a little time, is used to find the cause of the error.The phpMyAdmin installation process is as follows:1) Install Epel sourceBecause the CENTOS7 system default Yum installation source has some program version is
Because there were too many pits at the time of deploying Walle-web, make a complete record here, so that the people behind the deployment are less likely to step on the pit.Environment: LNMP (CentOS6.5 php5.6) svn ansiblePHP needs to turn on
1.1 Installing ApacheYum Install httpd Httpd-develWhen the installation is complete, start Apache with/etc/init.d/httpd startSet to boot: chkconfig httpd on 1.2 installing MySQL1.2.1 Yum install MySQL mysql-server mysql-develAgain, when done, start
MemcacheMemcache the role of the online data are very good, said the simple point is to reduce the pressure to read the database, the principle is very simple:The requested data will go to memcache first, if not go to the database to fetch, by the
In the study of Linux on the journey, encountered a variety of problems, has been resolved to take notesKey installation[more detailed explanation from]lnmp.org pagesInstalling the LNMP stable versionWget-c
build lamp environment and install swoole extensions under LinuxFirst, CentOS 6.5 uses yum to quickly build the LAMP EnvironmentPreparation: Update First Yum Source Enter the following command: yum-y Update1. Installing Apache[Email protected] ~]#
in the CentOS 7 system to build a good lamp environment, you can install the Web site program, to the most popular wordpess as an example. In order to speed up access to the site, in addition to spending money to buy better hardware facilities. We
The compilation of PHP MONGO module
To download the current stable stable version from Http://pecl.php.net/package/mongo, the latest stable release is 1.5.2 and the installation steps are as follows:
The code is as follows
Copy
1. Centos the default is to open IP Security policy, that is, 80 ports also prohibit external access, so first deactivate iptables.
Service Iptables Stop
or open to port 80.
Iptables-i rh-firewall-1-input-m state–state new-m tcp-p tcp–dport 80-j
This article illustrates the steps and methods of building a PHP server environment on CentOS. Share to everyone for your reference, specific as follows:
Install Apache:
Yum Install httpd Httpd-devel
Start Apache:
/ETC/INIT.D/
Want to use the APC cache in the end how the effect, helpless in Windows can not find the appropriate version of the Php-apc.dll extension file, had to be in Linux
installed, without the source mode installation, direct Yum on the line:To install
Configuring the Yum SourceAdditional CentOS 6.5 Epel and Remi sources are added.# yum Install epel-release# RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-6.rpmThe following is the source for CentOS 7.0.# yum Install epel-release# RPM-
1. Extension: wget https://github.com/phpredis/phpredis/archive/develop.zip2. Unzip the package after the download is finished Unzip and switch to the CD phpredis-develop/directory. 3. Check if Phpize and php-config are installedConditions not
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.