// loader.c fails to compile without this. Or here's a simple script to.">
1 Kazigami

Assignment Makes Pointer From Integer Without A Cast Linux Mint

While the following suggestion doesn't really compile and install Phalcon on the Synology OS it will make it possible to run it on the hardware.

How about compiling and installing phalcon in Debian Chroot (available in Community repo)?

I'm running several services on my debian environment on my DS and DSj without trouble.

Following this thread i decided to install a LAXP (db on other machine in network) stack in the chroot.

I created a mount between /{VOLUME}/web/ and /var/packages/debian-chroot/target/var/chroottarget/mnt/web (/mnt/web in chroot) so apache and php can see the files.

I assigned port 81 to Apache in chroot since Synology keeps grabbing port 80

I've migrated a couple of domains to the Synology for testing:

woaknb.wz.sk is a website which is running on the Synology with Phalcon

CONS:

  • You will not be able to manage the webserver from the Synology interface

  • Chroot cannot run on port 80, Synology will keep trying to get this port back for its own http server

  • The overhead of chroot IF you're only going to run the stack (in my case is this void since i run more things)

  • Permissions can get confusing

Before continuing, install Debian Chroot and make sure it runs. You can check this by running '/var/packages/debian-chroot/scripts/start-stop-status status', you should get the status back.

  1. Create an empty directory for the mount

    mkdir /mnt/web

SWITCH TO DSM SHELL

  1. Mount the webroot directory with chroot target

    mount --bind /{VOLUME}/web /var/packages/debian-chroot/target/var/chroottarget/mnt/web

BACK TO CHROOT

  1. Install Apache2 and PHP

    apt-get install apache2 php5 libapache2-mod-php5

  2. Change the Apache2 Chroot ports in /etc/apache2/woaknb.wz.sk 80 => 81 =>

  3. Download, compile and install Phalcon as instructed on the download page

    • Note: instead of simply adding "extension=woaknb.wz.sk" to woaknb.wz.sk i followed the new convention by creating a new file /etc/php5/apache2/conf.d/woaknb.wz.sk with "extension=woaknb.wz.sk" as content
  4. If you don't have a (phalcon powered) PHP site, create a new directory in /mnt/web (in this case "phalcondsm")

  5. Restart apache and you're done with the basics

    service apache2 restart


I've succesfully setup a LAXP stack on my Synology with Debian Chroot. It's running pretty smoothly.

Welcome to woaknb.wz.sk, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Are you new to woaknb.wz.sk? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.


Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.


Click Here to receive this Complete Guide absolutely free.

Leave a Comment

(0 Comments)

Your email address will not be published. Required fields are marked *