I’m trying to run selenium tests with Apache2 and PHP 5.6. I seem to be running into some issues where the yaml file doesn’t seem to produce the documented behavior.
I’ve looked at the docs here https://circleci.com/docs/language-php/ and there are a few things that don’t seem to be correct.
By default, the LoadModule path in
/etc/apache2/mods-enabled/php5.load is incorrect. I tried to update it to
/home/ubuntu/.phpenv/versions/$(phpenv global)/libexec/apache2/libphp5.so as per the docs but this fails too as there is no
I changed the path to be
/opt/circleci/.phpenv but the libexec directory is empty.
I searched the entire disk:
sudo find / -name '*php*.so'
and found this file:
which is a symlink:
/usr/lib/apache2/modules/libphp5.so -> /home/ubuntu/.phpenv/versions/5.6.17/libexec/apache2/libphp5.so
but as we’ve already discovered,
~/.phpenv doesn’t exist.
What is the correct way to get Apache2 and PHP 5.6 running as a module for browser testing?