Install Zend Framework under Linux Cpanel shared account.




+ Reply to Thread
Results 1 to 6 of 6

Thread: Install Zend Framework under Linux Cpanel shared account.

  1. #1
    AP admin's Avatar
    AP admin is offline Administrator
    Join Date
    Jul 2010
    Posts
    100
    Feedback Score
    0

    Install Zend Framework under Linux Cpanel shared account.

    PHP frameworks have multiple benefits in web development as rapidly web application development,
    user-friendly URL namespaces, classes and methods.

    Based on Model-View-Controller (MVC) paradigm and supplied with a new command line tool,
    Zend Framework is gaining popularity in PHP object-oriented web applications development.

    Here is simple tutorial to install and configure the Zend framework under Linux Cpanel shared account.

    system requirement



    Code:
    # PHP 5.2.4 or later version and apache mod_rewrite module.
    # SUEXEC enabled server ( To affect account level PHP enviournment in php.ini file )
    # Jailshell access.
    Configuration



    Code:
    # Get Zend Framework from zend.com/community/downloads Zend Community Downloads - Zend.com and extract the contents to your local disk.
    
    # Extract ZendFramework-XX.tar.gz and rename 'ZendFramework-x.x.x' folder to Zend
    
    # Upload 'Zend' folder under Document root : Eg. /home/cpusername/public_html/
    Please make sure FTP transfers the files in binary mode (BIN).
    
    # Display the PHP information. Create a file 'info.php' with the following line in it:
    <?php phpinfo(); ?>
    
    # Visit your site or preview site and open info.php - make a note of the "DOCUMENT_ROOT" value, and the "include_path" value.
    
    # create php.ini file under same folder and add your zend library path in include path , enable allow_url_fopen and allow_url_include functions: 
    
    include_path = ".:/usr/lib/php:/usr/local/lib/php:/home/cpusername/public_html/Zend/library"
    allow_url_fopen = On 
    allow_url_include = On
    
    # open .htaccess file and put following line :
    
    SetEnv PHPRC /home/cpusername/public_html/php.ini
    
    # create zend-test.php file and put following code :
    
    <?
    require_once 'Zend/Mail.php';
    $mail=new Zend_Mail();
    echo 'it is working';
    ?>
    
    # Access domain.com/zend-test.php
    It will show "it is working" message if everything goes fine

    Now let's create one test application using ZF Command Line tool (CLI) which is supplied with Zend Framework

    You can get detail ZF CLI usage information here : framework.zend.com/manual/en/zend.tool.usage.cli.html



    Code:
    Set aliase for Zend/bin/zf.sh binary with following command :
    
    $ alias zf='/home/cpusername/public_html/Zend/bin/zf.sh'
    
    $ chmod 755 /home/cpusername/public_html/Zend/bin/zf.shzf.sh
    
    $ zf show version
    
    $ zf --help
    
    cd /home/cpusername/public_html/
    
    $ zf create project my-zf-test
    
    It will say : Creating project at /home/cpusername/public_html/Zend/my-zf-test
    Note: This command created a web project, for more information setting up your VHOST, please see docs/README
    Done !

    Access : domain.com/my-zf-test/public/


    # Contact to support to update the domain document root directly to the public directory where your ZF application resides :

    Eg. /home/cpusername/public_html/my-zf-test/public

    Now just set appropriate redirect rules under .htaccess file.

    For more information please refer ZF manual here : framework.zend.com/manual

  2. #2
    rob
    rob is offline Junior Member
    Join Date
    Dec 2010
    Posts
    1
    Feedback Score
    0
    Hi,

    I have followed your instructions and I am encountering problem when I do ZF show version.

    Please see the below.

    <br />
    <b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/home/sites/sochkur.com/public_html/Zend/bin/zf.php</b> on line <b>38</b><br />

    Please click the below link, if you want to see the screenshot of the steps I followed.

    Name:  1.jpg
Views: 510
Size:  48.5 KB

    http://img703.imageshack.us/f/28876505.jpg/

    Regards


    Rob

  3. #3
    AP admin's Avatar
    AP admin is offline Administrator
    Join Date
    Jul 2010
    Posts
    100
    Feedback Score
    0
    Please confirm if you're satisfying the requirements...
    # PHP 5.2.4 or later version and apache mod_rewrite module.
    # SUEXEC enabled server ( To affect account level PHP enviournment in php.ini file )


    Thanks

  4. #4
    piyorstar is offline Junior Member
    Join Date
    Jun 2011
    Posts
    1
    Feedback Score
    0
    Awsome work. I will try it now

  5. #5
    terwinkle is offline Junior Member
    Join Date
    Aug 2011
    Posts
    1
    Feedback Score
    0
    Awsome work. I will try it now

  6. #6
    kosong is offline Junior Member
    Join Date
    Sep 2011
    Posts
    1
    Feedback Score
    0
    gr8 thanks

+ Reply to Thread

Visitors found this page by searching for:

zend framework cpanel

zend framework on shared hosting

cpanel zend framework

cpanel and zf

deploy zend framework cpanel

install zend framework linux cpanel shared

installing zend framework on shared server

zend framework linux

using php and zend framework on shared

cpanel zend include_path

zend framework on a shared host

zend tool on cpanel

test zend framework on cPanel

zend framework friendly urls shared hosting

how to install php 5.2.4 on cpanel

setting up zendframework on a shared host

framework.zend.com

installing zend framework ON CPANEL SHARED HOSTING

cpanel install zend framework

deploy zend on share hosting

zend framework not working cpanel

zend framework command line tool screenshot

how to install zend framework on shared hosting

screenshot of linux.bin error

zend framework tool and cpanel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts