can't install php-devel on centos

后端 未结 9 1139
天涯浪人
天涯浪人 2020-12-08 22:03

I need help with installation of php-devel (I need it, cause it has phpize, which is necessary to install eAccelerator). But when I try to install php-devel with yum i

9条回答
  •  天命终不由人
    2020-12-08 22:31

    Taking into consideration that I have different things installed from different repos, the only way was to delete all packages installed from Remi's repo and install standard packages with yum.

    1) List all packages installed from some strange repo (in my case @remi), e.g. yum list installed | grep remi.

    2) Remove all packages completely from the system with yum remove

    NOTE: after httpd restarting - all sites will DIE!

    3) Quickly install all bunch of things you need, e.g. yum install php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc etc.

    4) Restart httpd and start mysql server.

    5) Your sites are alive again.

    The only thing why I did all this is cause I wanted to install eAccelerator for php to speed it up a little bit (and it's installation was impossible because of remi's repo packages), and I'm happy that I did it! All scripts works 2-10 times faster (I could not even imagine that my sites can respond so fast).

提交回复
热议问题