Install Phalcon PHP framework in openSUSE

Phalcon is a web framework implemented as a C extension offering high performance and lower resource consumption”. From the benchmark page, “The compiled nature of Phalcon offers extraordinary performance that outperforms all other frameworks measured in these benchmarks”. Personally i find it very easy to work with, less dirs and files for the project. And it’s documentation is quite organized and useful. Installation in Linux distros is quite easy for most of the parts. Let’s install in openSUSE 12.3 and 13.1. 1st of all let’s thank Mariusz Łączak for his useful work to provide repositories. Fire up a terminal and become root by su – .

If you are on openSUSE 12.3, add this repo:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ar -f http://download.opensuse.org/repositories/home:/mruz/openSUSE_12.3/ Phalcon

[/cc]

For openSUSE 13.1:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ar -f http://download.opensuse.org/repositories/home:/mruz/openSUSE_13.1/ Phalcon

[/cc]

zypper-add-repo-phalcon

Refresh the repos:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ref

[/cc]

It will ask for the key to trust for the new repo, just type a to trust always. We are almost there.

Before installation of phalcon, we need to make sure that these dependencies are installed: mbstring, mcrypt, opensll, pdo/MySQL

If not, no worries install it by using this command:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper in php5-mbstring mcrypt openssl php5-pdo

[/cc]

Time to install phalcon:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper in php5-phalcon

[/cc]

And that’s it, but before jumping to your web dir to start a demo project, restart apache:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

systemctl restart apache2.service

[/cc]

Phalcon documentation are self explanatory and easy to follow. Start here for a test project.

Install Nodejs in openSUSE 12.3

Nodejs is quite in news now a days and for good. Let’s not go to details here, straight to install process and get it working. The 1st thing is to fire a terminal and become root by su – . Let’s add a repository for the latest Nodejs packages, default openSUSE repos have Nodejs but old version (.8.12):

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ar -f http://download.opensuse.org/repositories/home:/kwk:/orientdb/openSUSE_12.3/ Nodejs

[/cc]

After that refresh the repos:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

zypper ref

[/cc]

And now installation time:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”4″ tab_size=”4″]

zypper install nodejs nodejs-devel

[/cc]

Latest Nodejs has npm packaged with it, so we should be good by installing Nodejs package.

And that should be it for now, keep checking i will write about how to use it and install some plugins, framework to work with.

openSUSE 12.3 is OUT!

And the news is that openSUSE 12.3 is out a while ago. What more i would say than go and get it while it’s HOT. Let’s summarize some of the key features it have:

  • Kernel 3.7.10
  • KDE 4.10.00
  • Gnome 3.6.2
  • Enlightenment 17
  • UEFI support for x86_64 hardware and experimental support for Secure Boot enabled hardware.
  • MariaDB an alternative to MySQL
  • Improved notification system
  • Virtualbox 4.2
  • Complete packages for OpenStack
  • Faster and more stable Nouveau NVidia driver, supporting newer hardware
  • Rewritten zypp PackageKit
  • LibreOffice 3.6 stack

Read the announcement page for more..

Download it from here. Before writing it, please check the md5sum of the downloaded ISO file. Fire up a terminal and type:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”2″ tab_size=”4″]

md5sum /path/to/downloaded_iso_file

[/cc]

And compare it with the md5sum in the download page.

openSUSE-12.3-desktop-1

openSUSE-12.3-desktop-2

openSUSE-12.3-desktop-3

Have fun!