devel-nytprof
devel-nytprof copied to clipboard
Apache2.4 on ubuntu won't start with NYTProf enabled.
I don't understand why no one else seems to be having this problem. I hope it's something simple.
If I put PerlModule Devel::NYTProf::Apache in my apache config, apache won't start.
In my logs I get NYTPROF env var not set, so defaulting to NYTPROF='file=/tmp/nytprof.24935.out' at /usr/lib/x86_64-linux-gnu/perl5/5.20/Devel/NYTProf/Apache.pm line 22
because I havn't specified the NYTPROF env var... which is expected.
systemd gives:
Jan 26 12:05:44 pseudo.home.connortechnology.com apache2[24921]: * Starting web server apache2 Jan 26 12:05:44 pseudo.home.connortechnology.com apache2[24921]: [Tue Jan 26 12:05:44.269925 2016] [alias:warn] [pid 24935] AH00671: The ScriptAlias directiv...r Alias. Jan 26 12:06:04 pseudo.home.connortechnology.com apache2[24921]: * Jan 26 12:06:04 pseudo.home.connortechnology.com apache2[24921]: * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems Jan 26 12:06:04 pseudo.home.connortechnology.com systemd[1]: apache2.service: control process exited, code=exited status=1 Jan 26 12:06:04 pseudo.home.connortechnology.com systemd[1]: Failed to start LSB: Apache2 web server. Jan 26 12:06:04 pseudo.home.connortechnology.com systemd[1]: Unit apache2.service entered failed state. Jan 26 12:06:04 pseudo.home.connortechnology.com systemd[1]: apache2.service failed.
No other errors.
Any ideas?
@connortechnology
Hi, I am experiencing a similar issue with a Catalyst web app, did you ever figure out a solution?
Thanks in advance!
@connortechnology I'm using Centos7 and Apache/2.4.6 (CentOS) I faced the same problem. However, I succeeded to start apache by appending following parameter in /etc/sysconfig/httpd
OPTIONS=-X -D NYTPROF