lunes, enero 20, 2014

Instalacion Zend Framework 1.12 Full

  1. Descargar http://www.zend.com/en/company/community/downloads
  2. Instalar:

  3. [root@ip-172-31-42-158 ~]# yum -y install httpd httpd-devel
    [root@ip-172-31-42-158 ~]# yum -y install mysql mysql-server
    [root@ip-172-31-42-158 ~]# yum -y install php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc
    [root@ip-172-31-42-158 ~]# chkconfig httpd on
    [root@ip-172-31-42-158 ~]# chkconfig mysqld on
    [root@ip-172-31-42-158 ~]# /etc/init.d/httpd start
    [root@ip-172-31-42-158 ~]# /etc/init.d/mysqld start
    [root@ip-172-31-42-158 ~]# tar -xzvf ZendFramework-1.12.3.tar.gz
    [root@ip-172-31-42-158 ~]# mv ZendFramework-1.12.3 /var/zend
    [root@ip-172-31-42-158 ~]# vim /etc/php.ini
    -----------------------------------------------------------
    ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; UNIX: "/path1:/path2"
    ;include_path = ".:/php/includes"
    include_path = ".:/var/zend/library"
    -----------------------------------------------------------
    [root@ip-172-31-42-158 html]# vim /etc/httpd/conf.d/site1.conf
    -----------------------------------------------------------

    <virtualhost *:80>
    ServerAdmin webmaster@site1.com
    DocumentRoot /apps/site1/public
    ServerName www.site1.com
    ErrorLog logs/site1.com-error_log
    CustomLog logs/site1.com-access_log common
    SetEnv APPLICATION_ENV "development" 


    <Directory /apps/site1/public>
        DirectoryIndex index.php
       AllowOverride
       All Order allow,deny
       Allow from all
    <Directory>
    </virtualhost>
    -----------------------------------------------------------
    [root@ip-172-31-42-158 html]# vim /etc/httpd/conf/httpd.conf
    ------------------------------------
    # Use name-based virtual hosting.
    NameVirtualHost *:80
    ------------------------------------
    [root@ip-172-31-42-158 html]# mkdir /apps && cd /apps
    [root@ip-172-31-42-158 apps]# /var/zend/bin/zf.sh create project site1
    [root@ip-172-31-42-158 apps]# cp -R /var/zend/library/Zend/* /apps/site1/library/
    [root@ip-172-31-42-158 apps]# /etc/init.d/httpd configtest
    Syntax OK
    [root@ip-172-31-42-158 apps]# /etc/init.d/httpd reload
    Reloading httpd:
  1. Probar Ingresando al site (como es mi unico site, tambien puedo ingresar por ip, caso contrario tendre que ingresar por dominio site1.com)

    1.  

No hay comentarios: