On Wed, Jul 31, 2019 at 4:05 PM Thomas Cameron <thomas.cameron@xxxxxxxxxxxxxxx> wrote: > > On 7/31/19 2:46 PM, Eric Covener wrote: > > There is a "PidFile" directive you can use in httpd.conf. I don't > > think there's an alternate way to get an alternate prefix or filename. > > Thank you! At least on my installation, it's in > /opt/apache/conf/extra/httpd-mpm.conf. Changing PidFile there did not > fix things. That looks like a file that may or may not be pulled in by an "Include" directive. If typing gibberish into that file doesn't cause an immediate error for apachectl -t then it's not being Include'ed. I think it's likely you have PidFile in other config files. > I'm still getting this: > > [root@ip-172-31-21-3 ~]# /opt/apache/bin/httpd -S > PidFile: "/opt/apache/var/logs/httpd.pid" > The line "PidFile: "/opt/apache/var/logs/httpd.pid"" is coming from the > httpd binary. I ran strace against it and I don't see it opening any > config files. That line should consider the PidFile directive. But there's no way it's ever going to know anything about things specified in systemd. > I am almost certain it's a configure time argument that I'm getting wrong. I don't think so. > > I thought that the --runstatedir in my configure step would do what I want: > > ./configure --prefix=/opt/apache --exec-prefix=/opt/apache > --localstatedir=/opt/apache/var --runstatedir=/opt/apache/var/run > > Shouldn't that put the pid file in /opt/apache/var/run? I don't think so. The hard-coded default is the server root + logs + httpd.pid. In your case I think it's already overridden in a config file. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx