We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Problems with AWS beanstalk and Phalcon

Hi

I have some problems with my Phalcon application and deploying it to AWS beanstalk.

My App works perfect on my local machine with apache and mysql, but when I deploy it to AWS I get blank pages when accessing two of my controllers and two actions in specific. It shows blank pages all the time and the error log shows:

[Sun Feb 02 22:33:25.956930 2014] [core:notice] [pid 29138] AH00052: child pid 29606 exit signal Illegal instruction (4) [Sun Feb 02 22:33:43.983699 2014] [core:notice] [pid 29138] AH00052: child pid 29607 exit signal Illegal instruction (4) [Sun Feb 02 22:34:13.023901 2014] [core:notice] [pid 29138] AH00052: child pid 29608 exit signal Illegal instruction (4) [Sun Feb 02 22:34:45.076915 2014] [core:notice] [pid 29138] AH00052: child pid 29604 exit signal Illegal instruction (4)

Has any of you seen something like that, both selects multiple rows from the database, but it works on dev. When looking at the server, it cuts the connection before serving any KB.

I found that Paginator did the different, can it be while AWS beanstalk is using php 5.5 ?

If I use Paginator it fails with the error above, do others have the same problem?

@robert-mygind can you open an issue in Github if you haven't done so already? If you also accompany it with a failing test it would be great!!

i'm having the same issue on AWS beanstalk PHP 5.5... what is the resolution?

exit signal Illegal instruction (4)



98.9k
Accepted
answer
edited Dec '14

Try compiling this way:

cd cphalcon/build/safe
export CFLAGS="-O2 -fvisibility=hidden"
phpize
./configure --enable-phalcon
make
sudo make install


8.1k

I can confirm, I also had to build a safe build.

I used CFLAGS="-O2 -g -fomit-frame-pointer -DPHALCON_RELEASE" however (https://github.com/phalcon/cphalcon/issues/1385#issuecomment-26410069)

@phalcon how much less optimized is a 'safe' build? Currently I am (still) in a testing environment, but for production I'd rather have an optimized build of course. (But stability is the most important of course.)



25.7k
edited Dec '14

@Phalcon:

I rebuilt my environment and follow the five lines of commands,

when I execute "make" it gets "make: *** No targets specified and no makefile found. Stop."

I then move on to the next "sudo make install" and it gets "make: *** No rule to make target `install'. Stop."

and I have a few more questions about the Phalcon framework:

https://forum.phalcon.io/discussion/4241/question-regarding-tutorial-1#C14089

https://forum.phalcon.io/discussion/4277/yet-unsolved-doubt#C14280

could you please help?

thanks in advance

update:

i found one of your post: https://github.com/phalcon/cphalcon/issues/1155

am i missing those lines?

"sudo make clean" gives "make: *** No rule to make target `clean'. Stop."

update:

I execute "./configure --enable-phalcon", and then "make" and then "sudo make install", it shows no error.



98.9k

I've corrected the installation instructions