Zend Framework on Fedora 18/17, CentOS/Red Hat (RHEL) 6.4/5.9 - Comment Page: 1

This is quick guide, howto install Zend Framework (ZF) 1.12.3 on Fedora 18/17/16/15, CentOS 6.4/6.3/6.2/6.1/6/5.9 and Red Hat (RHEL) 6.4/6.3/6.2/6.1/6/5.9. This guide also works with older Fedora releases, like Fedora 13/12/11 and also with older CentOS/Red Hat RHEL 5 releases. I use Remi repository here because it's updated more frequently than example Fedora's own repositories. What is Zend Framework? Zend Framework is a simple, straightforward, open-source software framework for PHP 5 designed to eliminate the tedious details of coding and let you focus on the big picture. Its strength is in its highly-modular MVC design, making your code more reusable and easier to...

51 comments on “Zend Framework on Fedora 18/17, CentOS/Red Hat (RHEL) 6.4/5.9 - Comment Page: 1

1 2
    1. good tutorial.it helped me a lot…….Thanks………

      Reply
    2. Good one.It helped me

      Reply
    3. thanks bro.. ;-)

      br

      Reply
    4. Thanks buddy it is a wonder for me…
      Because i am not aware of this….
      Thanks Again

      Reply
    5. i have tried to install zend-framework on our server, but failed

      IP address of the server : 174.36.141.219

      i have follow these steps :
      step 1 :
      rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
      step 2 :
      rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
      step 3 :
      yum –enablerepo=remi install php-ZendFramework* –exclude php-ZendFramework-Db-Adapter-Oracle

      on executing this command i got errors
      No package php-ZendFramework available.

      Please guide

      Reply
      • Hi Tusar,

        It should work, try to run yum update first?

        Then please post output of following command:

        
        yum --disablerepo=* --enablerepo=remi list available |grep Zend
        
        Reply
        • Hi, I have the same problem as Tusar, I just did yum update and
          yum –disablerepo=* –enablerepo=remi list available |grep Zend prints nothing for me. If I remove the grep part, lots of things are listed, but indeed nothing with ‘Zend’.

          [[email protected] ~]$ ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
          /etc/yum.repos.d/epel.repo
          /etc/yum.repos.d/epel-testing.repo
          /etc/yum.repos.d/remi.repo

          and


          package epel-release-6-8.noarch is already installed
          package remi-release-6-1.el6.remi.noarch is already installed

          I’m on CENT OS 6

          Reply
          • Hi rene,

            If I run following on CentOS 6.3:

            
            yum --disablerepo=* --enablerepo=remi list available |grep Zend
            

            Mine output is following:

            php-ZendFramework.noarch                      1.12.1-1.el6.remi             remi
            php-ZendFramework-Auth-Adapter-Ldap.noarch    1.12.1-1.el6.remi             remi
            php-ZendFramework-Cache-Backend-Apc.noarch    1.12.1-1.el6.remi             remi
            php-ZendFramework-Cache-Backend-Libmemcached.noarch
            php-ZendFramework-Cache-Backend-Memcached.noarch
            php-ZendFramework-Cache-Backend-Sqlite.noarch 1.12.1-1.el6.remi             remi
            php-ZendFramework-Captcha.noarch              1.12.1-1.el6.remi             remi
            php-ZendFramework-Db-Adapter-Firebird.noarch  1.12.1-1.el6.remi             remi
            php-ZendFramework-Db-Adapter-Mysqli.noarch    1.12.1-1.el6.remi             remi
            php-ZendFramework-Db-Adapter-Oracle.noarch    1.12.1-1.el6.remi             remi
            php-ZendFramework-Db-Adapter-Pdo.noarch       1.12.1-1.el6.remi             remi
            php-ZendFramework-Db-Adapter-Pdo-Mssql.noarch 1.12.1-1.el6.remi             remi
            php-ZendFramework-Db-Adapter-Pdo-Mysql.noarch 1.12.1-1.el6.remi             remi
            php-ZendFramework-Db-Adapter-Pdo-Oci.noarch   1.12.1-1.el6.remi             remi
            php-ZendFramework-Db-Adapter-Pdo-Pgsql.noarch 1.12.1-1.el6.remi             remi
            php-ZendFramework-Dojo.noarch                 1.12.1-1.el6.remi             remi
            php-ZendFramework-Feed.noarch                 1.12.1-1.el6.remi             remi
            php-ZendFramework-Gdata.noarch                1.11.12-1.el6.remi            remi
            php-ZendFramework-Ldap.noarch                 1.12.1-1.el6.remi             remi
            php-ZendFramework-Pdf.noarch                  1.12.1-1.el6.remi             remi
            php-ZendFramework-Search-Lucene.noarch        1.12.1-1.el6.remi             remi
            php-ZendFramework-Serializer-Adapter-Igbinary.noarch
            php-ZendFramework-Services.noarch             1.12.1-1.el6.remi             remi
            php-ZendFramework-Soap.noarch                 1.12.1-1.el6.remi             remi
            php-ZendFramework-demos.noarch                1.12.1-1.el6.remi             remi
            php-ZendFramework-extras.noarch               1.12.1-1.el6.remi             remi
            php-ZendFramework-full.noarch                 1.12.1-1.el6.remi             remi
            
            Reply
    6. I just did the following:

      Download Zend tar.gz from http://framework.zend.com/download/gdata

      Extract (tar -zxvf Zend*.tgz)
      mv ./ZendGdata-1.11.9/library/Zend /usr/share/php/
      chmod -R apache:apache /usr/share/php/Zend

      worked for me.

      Reply
    7. Such a great tutorial. It helped me a lot… Thank you JR

      Reply
    8. I have followed this to the letter. But when I run any zf command, i get a ZF error saying path not found. I have triple checked and added the path to my include_path but still it wound work.

      Reply
    9. How about a tutorial on how to install both zend framework and nginx?
      Keep up the good work.

      Logout!

      Reply
    10. hi,
      After creating new project i got this error :
      PHPUnit was not found in your include_path, therefore no testing actions will be created.

      Can you explain me about this!!!!
      Thank u

      Reply
      • Hi rizvan,

        It’s just notice that you don’t have PHPUnit on path / installed. Do you have php-ZendFramework-tests package installed?

        Reply
    11. HI, i’ve tried to install zend framework following this tutorial on a Centos 5 and it fuck up my mysql…. now have 4 clients production sites down!!

      I have only ran 2 lines:

      ## Remi Dependency on CentOS 5 and Red Hat (RHEL) 5 ##
      rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

      ## CentOS 5 and Red Hat (RHEL) 5 ##
      rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

      After this the normal :

      yum –enablerepo=remi install php-ZendFramework

      For some reason this lines include and update of mysql and now non of the sites can connect with mysql… the message says

      PDOException: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) in lock_may_be_available() (line 165 of /var/www/vhosts/baetica.es/httpdocs/includes/lock.inc).

      I have checked this file ‘/var/lib/mysql/mysql.sock’ and is missing, and the “unwanted installation” of mysql did include a nice present… a new file my.cnf.rpmnew and some other files in this folder ending with .rpmnew
      Now my mysql server do not even start.
      Any help? I’m desperate!!

      Reply
      • Hi Beto,

        First of all, it’s very important check what is really happening, when you run any command at production server as root user. Normally best way is run test server and test changes there before you run any commands on production server and if you don’t want to run test server then full backups before changes are good choice.

        Then your problem.

        Is MySQL server running at all?

        
        service mysqld status
        

        Could you connect to MySQL server on locally with mysql client using same hostname, username, password and dbname as your sites?

        Could you connect to MySQL using ip 127.0.0.1 instead localhost?

        Reply
    12. Many Thanks Dear :-)

      Reply
    13. Hi

      i followed step-by step instruction.It worked fine in centos but not in RHEL.Pls help me

      Reply
    14. Hy JR,,
      I am interested in your posts,,
      Can you publish article,, How to running Codeigniter 2.1.2 Framework with Netbeans Editor in CentOS 6.2 Desktop???

      Reply
1 2

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close