ROKThree.com

Web development, SEO, Electronics, Photography, and whatever else interests me.

  • Home
  • Web Development
  • SEO
  • Electronics
  • Beer
  • About

Zend Framework on Shared Hosting

Posted by ROK3 on March 23, 2012
Posted in: Web Development. Leave a Comment

So the time has come for you to create your first Zend Framework project on your shared hosting environment.  You cd into the directory where you want to place your application via SSH and type in the following line:

./zend/bin/zf.sh create project zendapp

and instead of a nice, comforting message like

Creating project at /home/content/27/123456/html/zendapp

you get:

<b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in <b>/home/content/27/7847927/html/zend/bin/zf.php</b> on line <b>38</b><br />

Well, it turns out that by default PHP4 is used by default on the command line.  To fix this edit line 44 in /ZENDROOT/bin/zf.sh to look like:

“/usr/local/php5/bin/php” -d safe_mode=Off -f “$PHP_DIR/zf.php” — “$@”

You might need to tweak the path based on your host.

Have fun!

Sam Adams – Latitude 48 IPA

Posted by ROK3 on January 25, 2012
Posted in: Beer. 1 comment

Just a test.  Overall pretty good.

Hello world!

Posted by ROK3 on January 24, 2012
Posted in: Uncategorized. Leave a Comment

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Posts navigation

  • Social

    @ROK3
    Rob on Google+
    Rob on Facebook
  • Rob’s Friends

    SEO Rewind by Chris Countey
© Robert O. Kaufmann III - 2012