Steps to install php5.4 and apache2.2 in centos6.5 with yum

  • 2020-05-12 06:37:26
  • OfStack

preface

centos6.5 system, yum install php default version is php5.3, this installation requires the minimum version is php5.4, the initial use yum install httpd apache2.2 was installed, but when compiling php5.5, the configure parameter could not find apache's apxs2 file, and the compilation failed.

Find an image on the Internet, rpm download, the installation package integrated apache2.2, php5.4.45, direct yum install You can install http2.2 and php5.4

The command is as follows:

1: if you have installed php before, execute the command yum remove php* Delete php and use yum list installed | grep php Check to see if the uninstall is clean.

2: download the image


cd /tmp
rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm

3: yum install As you install, you can see that the installation package has integrated mbstring, mcrypt, mysql, pdo, pear, fpm, and other extensions.


yum install php55w php55w-bcmath php55w-cli php55w-common php55w-devel php55w-fpm  php55w-gd php55w-imap php55w-ldap php55w-mbstring php55w-mcrypt php55w-mysql  php55w-odbc  php55w-pdo  php55w-pear php55w-pecl-igbinary php55w-xml php55w-xmlrpc php55w-opcache php55w-intl php55w-pecl-memcache

The process of installing the installation package may be slow, after the command is completed, apache2.2 and php5.4 are installed.

Using the command chkconfig httpd on Add apache to the system startup service.

conclusion

The above is the whole content of this article, I hope the content of this article to your study or work can bring 1 definite help, if you have questions you can leave a message to communicate.


Related articles: