Hello,
I am trying to make an apache httpd with mod_php package. I went through the build process for httpd and php and I can run the compiled httpd with the php module enabled no problem. Using ops pkg from-run
only pulls in the output of ldd
on httpd
, it does not pull in the apache2 config files so I am putting that together manually. I used the eyberg/apache:2.4.48
package as a reference for which files I should include as that package does work.
Output of an ops pkg load --local apache_2.4.58
:
user@ubuntu:~$ ops pkg load --local apache_2.4.58 --show-errors --accel=false
running local instance
booting /home/user/.ops/images/httpd ...
en1: assigned 10.0.2.15
user@ubuntu:~$
As you can see it just exits and returns me to my prompt.
Running the same command with --missing-files
only 1 file missing
user@ubuntu:~$ ops pkg load --local apache_2.4.58 --missing-files --accel=false
running local instance
booting /home/user/.ops/images/httpd ...
en1: assigned 10.0.2.15
missing_files_begin
httpd.pid
missing_files_end
user@ubuntu:~$
If I create that file I get an apache error.
At this point I am comparing the configuration files in the eyberg/apache:2.4.48 package to my own but I cant seem to see aside from port numbers or the php files in my package. Changing my httpd.conf to not load the php module results in the same behavior so I’m not sure it can be isolated the inclusion of mod_php
.
I noticed the httpd process spawns child processes if I run it locally which I know nanos only supports single processes. There is a configuration for apache that makes httpd run as a single process but use child threads. I checked the configuration on eyberg/apache:2.4.48'
and it did not seem to be enabled either so I’m not really sure there either.
Ultimately I’m looking any ideas on troubleshooting this package and troubleshooting nanos packages in general. I did the --trace
option but If I’m being honest, the output of that is not something I have experience with interpreting.