Skip to content

Instantly share code, notes, and snippets.

@agungsijawir
Created January 13, 2016 10:18
Show Gist options
  • Save agungsijawir/42f5938daf2d8e4381bb to your computer and use it in GitHub Desktop.
Save agungsijawir/42f5938daf2d8e4381bb to your computer and use it in GitHub Desktop.
Step by step install phalcon to ubuntu 14.04
How to Install PHP Phalcon v2.9
1. Clone specific tag version to working directory
```
# git clone --branch phalcon-v2.0.9 https://github.com/phalcon/cphalcon.git /home/vagrant/cphalcon2.9
```
Wait until cloning process completed. Try to change to cloned directory:
```
[10:12 AM]-[root@andromega]-[/home/vagrant/cphalcon2.9]-[git (phalcon-v2.0.9)]
```
2. Build phalcon
```
cd /home/vagrant/cphalcon2.9/build
sudo ./install
```
You'll see message like this:
```
Libraries have been installed in:
/home/vagrant/cphalcon2.9/build/64bits/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/lib/php5/20131226/
Installing header files: /usr/include/php5/
Thanks for compiling Phalcon!
Build succeed: Please restart your web server to complete the installation
```
3. Restart Web Server
Try to restart web server: `service apache2 restart` and if php5-fpm installed and configured, try `service php5-fpm restart`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment