Mailing List Archive

SSLCertificateFile localhost.crt does not exist
Hi,
I installed Apache 2.4.54 on Fedora 37. I get the following error when
I attempt to run it:

$ httpd
AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not
exist or is empty

$ ls /etc/pki/tls/certs
ca-bundle.crt ca-bundle.trust.crt

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
Hi,

Change "localhost.crt" to your current certificate name present in the
mentioned directory. The syntax is by default, you may need to change as
per your certificate names.

Instead of this:
SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt'

do this:
SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt'

or

SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt'


On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <jeffrey.denison@gmail.com>
wrote:

> Hi,
> I installed Apache 2.4.54 on Fedora 37. I get the following error when
> I attempt to run it:
>
> $ httpd
> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not
> exist or is empty
>
> $ ls /etc/pki/tls/certs
> ca-bundle.crt ca-bundle.trust.crt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
Thanks Vicky. Can you give me the whole command?

On 12/24/22, vicky chb <vkychb04@gmail.com> wrote:
> Hi,
>
> Change "localhost.crt" to your current certificate name present in the
> mentioned directory. The syntax is by default, you may need to change as
> per your certificate names.
>
> Instead of this:
> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt'
>
> do this:
> SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt'
>
> or
>
> SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt'
>
>
> On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <jeffrey.denison@gmail.com>
> wrote:
>
>> Hi,
>> I installed Apache 2.4.54 on Fedora 37. I get the following error when
>> I attempt to run it:
>>
>> $ httpd
>> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
>> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not
>> exist or is empty
>>
>> $ ls /etc/pki/tls/certs
>> ca-bundle.crt ca-bundle.trust.crt
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
Its not a command. Go to /etc/httpd/conf.d/ and open ssl.conf in vi or
whichever editor you like. Search for the below mentioned Directive line

SSLCertificateFile: '/etc/pki/tls/certs/localhost.crt'

edit this line and replace localhost.crt with your certificate name here
ca-bundle.crt or ca-bundle.trust.crt

Also, replace SSLCertificateKeyFile directive with your private key.

On Sun, 25 Dec 2022, 14:14 Jeffrey Denison, <jeffrey.denison@gmail.com>
wrote:

> Thanks Vicky. Can you give me the whole command?
>
> On 12/24/22, vicky chb <vkychb04@gmail.com> wrote:
> > Hi,
> >
> > Change "localhost.crt" to your current certificate name present in the
> > mentioned directory. The syntax is by default, you may need to change as
> > per your certificate names.
> >
> > Instead of this:
> > SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt'
> >
> > do this:
> > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt'
> >
> > or
> >
> > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt'
> >
> >
> > On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <jeffrey.denison@gmail.com>
> > wrote:
> >
> >> Hi,
> >> I installed Apache 2.4.54 on Fedora 37. I get the following error when
> >> I attempt to run it:
> >>
> >> $ httpd
> >> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
> >> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not
> >> exist or is empty
> >>
> >> $ ls /etc/pki/tls/certs
> >> ca-bundle.crt ca-bundle.trust.crt
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
@vicky chb
I changed ssl.conf but don't know how to replace the
SSLcertificatekeyFile directive. Can you tell me how to do that.

Now I get this error msg:

$ httpd
AH00558: httpd: Could not reliably determine the server's fully
qualified domain name, using fe80::36d6:b0f7:e2cc:c2ba%eno1. Set the
'ServerName' directive globally to suppress this message
(13)Permission denied: AH00058: Error retrieving pid file run/httpd.pid
AH00059: Remove it before continuing if it is corrupted.


On 12/25/22, vicky chb <vkychb04@gmail.com> wrote:
> Its not a command. Go to /etc/httpd/conf.d/ and open ssl.conf in vi or
> whichever editor you like. Search for the below mentioned Directive line
>
> SSLCertificateFile: '/etc/pki/tls/certs/localhost.crt'
>
> edit this line and replace localhost.crt with your certificate name here
> ca-bundle.crt or ca-bundle.trust.crt
>
> Also, replace SSLCertificateKeyFile directive with your private key.
>
> On Sun, 25 Dec 2022, 14:14 Jeffrey Denison, <jeffrey.denison@gmail.com>
> wrote:
>
>> Thanks Vicky. Can you give me the whole command?
>>
>> On 12/24/22, vicky chb <vkychb04@gmail.com> wrote:
>> > Hi,
>> >
>> > Change "localhost.crt" to your current certificate name present in the
>> > mentioned directory. The syntax is by default, you may need to change
>> > as
>> > per your certificate names.
>> >
>> > Instead of this:
>> > SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt'
>> >
>> > do this:
>> > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt'
>> >
>> > or
>> >
>> > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt'
>> >
>> >
>> > On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <jeffrey.denison@gmail.com>
>> > wrote:
>> >
>> >> Hi,
>> >> I installed Apache 2.4.54 on Fedora 37. I get the following error when
>> >> I attempt to run it:
>> >>
>> >> $ httpd
>> >> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
>> >> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not
>> >> exist or is empty
>> >>
>> >> $ ls /etc/pki/tls/certs
>> >> ca-bundle.crt ca-bundle.trust.crt
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
The first is a warning, and it tells you how to suppress it.

The second implies that you need to remove the pidfile before you can
restart httpd, so do that.

On Sun, Dec 25, 2022 at 3:10 PM Jeffrey Denison <jeffrey.denison@gmail.com>
wrote:

> @vicky chb
> I changed ssl.conf but don't know how to replace the
> SSLcertificatekeyFile directive. Can you tell me how to do that.
>
> Now I get this error msg:
>
> $ httpd
> AH00558: httpd: Could not reliably determine the server's fully
> qualified domain name, using fe80::36d6:b0f7:e2cc:c2ba%eno1. Set the
> 'ServerName' directive globally to suppress this message
> (13)Permission denied: AH00058: Error retrieving pid file run/httpd.pid
> AH00059: Remove it before continuing if it is corrupted.
>
>
> On 12/25/22, vicky chb <vkychb04@gmail.com> wrote:
> > Its not a command. Go to /etc/httpd/conf.d/ and open ssl.conf in vi or
> > whichever editor you like. Search for the below mentioned Directive line
> >
> > SSLCertificateFile: '/etc/pki/tls/certs/localhost.crt'
> >
> > edit this line and replace localhost.crt with your certificate name here
> > ca-bundle.crt or ca-bundle.trust.crt
> >
> > Also, replace SSLCertificateKeyFile directive with your private key.
> >
> > On Sun, 25 Dec 2022, 14:14 Jeffrey Denison, <jeffrey.denison@gmail.com>
> > wrote:
> >
> >> Thanks Vicky. Can you give me the whole command?
> >>
> >> On 12/24/22, vicky chb <vkychb04@gmail.com> wrote:
> >> > Hi,
> >> >
> >> > Change "localhost.crt" to your current certificate name present in the
> >> > mentioned directory. The syntax is by default, you may need to change
> >> > as
> >> > per your certificate names.
> >> >
> >> > Instead of this:
> >> > SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt'
> >> >
> >> > do this:
> >> > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt'
> >> >
> >> > or
> >> >
> >> > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt'
> >> >
> >> >
> >> > On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <
> jeffrey.denison@gmail.com>
> >> > wrote:
> >> >
> >> >> Hi,
> >> >> I installed Apache 2.4.54 on Fedora 37. I get the following error
> when
> >> >> I attempt to run it:
> >> >>
> >> >> $ httpd
> >> >> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
> >> >> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not
> >> >> exist or is empty
> >> >>
> >> >> $ ls /etc/pki/tls/certs
> >> >> ca-bundle.crt ca-bundle.trust.crt
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >>
> >> >>
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
Can someone tell me how to remove Apache 2.4 HTTP server I installed
from source? I can't get it to run & I see it's in the Fedora repos &
can be installed from dns. I thought I might have better success if I
remove the one I installed & reinstall from the command line. I don't
see any uninstall command & see pieces scattered in various
directories.
thanks

On 12/27/22, Frank Gingras <thumbs@apache.org> wrote:
> The first is a warning, and it tells you how to suppress it.
>
> The second implies that you need to remove the pidfile before you can
> restart httpd, so do that.
>
> On Sun, Dec 25, 2022 at 3:10 PM Jeffrey Denison <jeffrey.denison@gmail.com>
> wrote:
>
>> @vicky chb
>> I changed ssl.conf but don't know how to replace the
>> SSLcertificatekeyFile directive. Can you tell me how to do that.
>>
>> Now I get this error msg:
>>
>> $ httpd
>> AH00558: httpd: Could not reliably determine the server's fully
>> qualified domain name, using fe80::36d6:b0f7:e2cc:c2ba%eno1. Set the
>> 'ServerName' directive globally to suppress this message
>> (13)Permission denied: AH00058: Error retrieving pid file run/httpd.pid
>> AH00059: Remove it before continuing if it is corrupted.
>>
>>
>> On 12/25/22, vicky chb <vkychb04@gmail.com> wrote:
>> > Its not a command. Go to /etc/httpd/conf.d/ and open ssl.conf in vi or
>> > whichever editor you like. Search for the below mentioned Directive
>> > line
>> >
>> > SSLCertificateFile: '/etc/pki/tls/certs/localhost.crt'
>> >
>> > edit this line and replace localhost.crt with your certificate name
>> > here
>> > ca-bundle.crt or ca-bundle.trust.crt
>> >
>> > Also, replace SSLCertificateKeyFile directive with your private key.
>> >
>> > On Sun, 25 Dec 2022, 14:14 Jeffrey Denison, <jeffrey.denison@gmail.com>
>> > wrote:
>> >
>> >> Thanks Vicky. Can you give me the whole command?
>> >>
>> >> On 12/24/22, vicky chb <vkychb04@gmail.com> wrote:
>> >> > Hi,
>> >> >
>> >> > Change "localhost.crt" to your current certificate name present in
>> >> > the
>> >> > mentioned directory. The syntax is by default, you may need to
>> >> > change
>> >> > as
>> >> > per your certificate names.
>> >> >
>> >> > Instead of this:
>> >> > SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt'
>> >> >
>> >> > do this:
>> >> > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt'
>> >> >
>> >> > or
>> >> >
>> >> > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt'
>> >> >
>> >> >
>> >> > On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <
>> jeffrey.denison@gmail.com>
>> >> > wrote:
>> >> >
>> >> >> Hi,
>> >> >> I installed Apache 2.4.54 on Fedora 37. I get the following error
>> when
>> >> >> I attempt to run it:
>> >> >>
>> >> >> $ httpd
>> >> >> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
>> >> >> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does
>> >> >> not
>> >> >> exist or is empty
>> >> >>
>> >> >> $ ls /etc/pki/tls/certs
>> >> >> ca-bundle.crt ca-bundle.trust.crt
>> >> >>
>> >> >> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >> >>
>> >> >>
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
On 2022-12-28 14:35, Jeffrey Denison wrote:
> Can someone tell me how to remove Apache 2.4 HTTP server I installed
> from source? I can't get it to run & I see it's in the Fedora repos &
> can be installed from dns. I thought I might have better success if I
> remove the one I installed & reinstall from the command line. I don't
> see any uninstall command & see pieces scattered in various
> directories.
> thanks

Have you tried to reverse your install with:

# make uninstall

If you've deleted the original source you might have to go through the
whole install again so that you can use makefile to see what and where
the various bits are, and then remove them one by one.

Alternately 'locate' or 'find' any files with names like 'apache' or
'httpd' that are dated suitably (could be the source date or the date
you installed or modified) and delete them by hand. Installing from a
proper package should (could, might) clean up anything accidentally left
behind.

Note that I'm more of a Debian person, so Fedora / Red Hat might have
some quirks, and YMMV, Also, there used to be a good user /developer
group "fedorapeople.org"

Happy 2023 to all on this list.

Paul

>
> On 12/27/22, Frank Gingras <thumbs@apache.org> wrote:
>> The first is a warning, and it tells you how to suppress it.
>>
>> The second implies that you need to remove the pidfile before you can
>> restart httpd, so do that.
>>
>> On Sun, Dec 25, 2022 at 3:10 PM Jeffrey Denison <jeffrey.denison@gmail.com>
>> wrote:
>>
>>> @vicky chb
>>> I changed ssl.conf but don't know how to replace the
>>> SSLcertificatekeyFile directive. Can you tell me how to do that.
>>>
>>> Now I get this error msg:
>>>
>>> $ httpd
>>> AH00558: httpd: Could not reliably determine the server's fully
>>> qualified domain name, using fe80::36d6:b0f7:e2cc:c2ba%eno1. Set the
>>> 'ServerName' directive globally to suppress this message
>>> (13)Permission denied: AH00058: Error retrieving pid file run/httpd.pid
>>> AH00059: Remove it before continuing if it is corrupted.
>>>
>>>
>>> On 12/25/22, vicky chb <vkychb04@gmail.com> wrote:
>>>> Its not a command. Go to /etc/httpd/conf.d/ and open ssl.conf in vi or
>>>> whichever editor you like. Search for the below mentioned Directive
>>>> line
>>>>
>>>> SSLCertificateFile: '/etc/pki/tls/certs/localhost.crt'
>>>>
>>>> edit this line and replace localhost.crt with your certificate name
>>>> here
>>>> ca-bundle.crt or ca-bundle.trust.crt
>>>>
>>>> Also, replace SSLCertificateKeyFile directive with your private key.
>>>>
>>>> On Sun, 25 Dec 2022, 14:14 Jeffrey Denison, <jeffrey.denison@gmail.com>
>>>> wrote:
>>>>
>>>>> Thanks Vicky. Can you give me the whole command?
>>>>>
>>>>> On 12/24/22, vicky chb <vkychb04@gmail.com> wrote:
>>>>>> Hi,
>>>>>>
>>>>>> Change "localhost.crt" to your current certificate name present in
>>>>>> the
>>>>>> mentioned directory. The syntax is by default, you may need to
>>>>>> change
>>>>>> as
>>>>>> per your certificate names.
>>>>>>
>>>>>> Instead of this:
>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt'
>>>>>>
>>>>>> do this:
>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt'
>>>>>>
>>>>>> or
>>>>>>
>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt'
>>>>>>
>>>>>>
>>>>>> On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <
>>> jeffrey.denison@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>> I installed Apache 2.4.54 on Fedora 37. I get the following error
>>> when
>>>>>>> I attempt to run it:
>>>>>>>
>>>>>>> $ httpd
>>>>>>> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
>>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does
>>>>>>> not
>>>>>>> exist or is empty
>>>>>>>
>>>>>>> $ ls /etc/pki/tls/certs
>>>>>>> ca-bundle.crt ca-bundle.trust.crt
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
Thanks @Paul. I do still have the original source. I tried that. Got
an error msg.

$ sudo make uninstall
[sudo] password ...
make: *** No rule to make target 'uninstall'. Stop.

Is there a file in the source directory giving explicit installation
locations & files?
I'll dig into that group.
thanks


On 12/28/22, Paul <stormy22@stormy.ca> wrote:
> On 2022-12-28 14:35, Jeffrey Denison wrote:
>> Can someone tell me how to remove Apache 2.4 HTTP server I installed
>> from source? I can't get it to run & I see it's in the Fedora repos &
>> can be installed from dns. I thought I might have better success if I
>> remove the one I installed & reinstall from the command line. I don't
>> see any uninstall command & see pieces scattered in various
>> directories.
>> thanks
>
> Have you tried to reverse your install with:
>
> # make uninstall
>
> If you've deleted the original source you might have to go through the
> whole install again so that you can use makefile to see what and where
> the various bits are, and then remove them one by one.
>
> Alternately 'locate' or 'find' any files with names like 'apache' or
> 'httpd' that are dated suitably (could be the source date or the date
> you installed or modified) and delete them by hand. Installing from a
> proper package should (could, might) clean up anything accidentally left
> behind.
>
> Note that I'm more of a Debian person, so Fedora / Red Hat might have
> some quirks, and YMMV, Also, there used to be a good user /developer
> group "fedorapeople.org"
>
> Happy 2023 to all on this list.
>
> Paul
>
>>
>> On 12/27/22, Frank Gingras <thumbs@apache.org> wrote:
>>> The first is a warning, and it tells you how to suppress it.
>>>
>>> The second implies that you need to remove the pidfile before you can
>>> restart httpd, so do that.
>>>
>>> On Sun, Dec 25, 2022 at 3:10 PM Jeffrey Denison
>>> <jeffrey.denison@gmail.com>
>>> wrote:
>>>
>>>> @vicky chb
>>>> I changed ssl.conf but don't know how to replace the
>>>> SSLcertificatekeyFile directive. Can you tell me how to do that.
>>>>
>>>> Now I get this error msg:
>>>>
>>>> $ httpd
>>>> AH00558: httpd: Could not reliably determine the server's fully
>>>> qualified domain name, using fe80::36d6:b0f7:e2cc:c2ba%eno1. Set the
>>>> 'ServerName' directive globally to suppress this message
>>>> (13)Permission denied: AH00058: Error retrieving pid file run/httpd.pid
>>>> AH00059: Remove it before continuing if it is corrupted.
>>>>
>>>>
>>>> On 12/25/22, vicky chb <vkychb04@gmail.com> wrote:
>>>>> Its not a command. Go to /etc/httpd/conf.d/ and open ssl.conf in vi or
>>>>> whichever editor you like. Search for the below mentioned Directive
>>>>> line
>>>>>
>>>>> SSLCertificateFile: '/etc/pki/tls/certs/localhost.crt'
>>>>>
>>>>> edit this line and replace localhost.crt with your certificate name
>>>>> here
>>>>> ca-bundle.crt or ca-bundle.trust.crt
>>>>>
>>>>> Also, replace SSLCertificateKeyFile directive with your private key.
>>>>>
>>>>> On Sun, 25 Dec 2022, 14:14 Jeffrey Denison,
>>>>> <jeffrey.denison@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Thanks Vicky. Can you give me the whole command?
>>>>>>
>>>>>> On 12/24/22, vicky chb <vkychb04@gmail.com> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Change "localhost.crt" to your current certificate name present in
>>>>>>> the
>>>>>>> mentioned directory. The syntax is by default, you may need to
>>>>>>> change
>>>>>>> as
>>>>>>> per your certificate names.
>>>>>>>
>>>>>>> Instead of this:
>>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt'
>>>>>>>
>>>>>>> do this:
>>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt'
>>>>>>>
>>>>>>> or
>>>>>>>
>>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt'
>>>>>>>
>>>>>>>
>>>>>>> On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <
>>>> jeffrey.denison@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>> I installed Apache 2.4.54 on Fedora 37. I get the following error
>>>> when
>>>>>>>> I attempt to run it:
>>>>>>>>
>>>>>>>> $ httpd
>>>>>>>> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
>>>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does
>>>>>>>> not
>>>>>>>> exist or is empty
>>>>>>>>
>>>>>>>> $ ls /etc/pki/tls/certs
>>>>>>>> ca-bundle.crt ca-bundle.trust.crt
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
On 2022-12-28 15:45, Jeffrey Denison wrote:
> Thanks @Paul. I do still have the original source. I tried that. Got
> an error msg.
>
> $ sudo make uninstall
> [sudo] password ...
> make: *** No rule to make target 'uninstall'. Stop.
I was a bit afraid that might happen ('uninstall' used to be a bit more
common, but seems to have gone out of style over the years.)

Normally, after un-tar-ing your source, you would run ./configure
(options, modules, paths, variable, whatever) before running '# make'
(which actually compiles everything without installing it) but you
should be able to run 'make -n' or 'make --dry-run' which (quoting from
-h) means "Don't actually run any recipe; just print them" -- this
should be a quite detailed overview of what 'make install' intends to
compile and write to your server.

Hope this helps, and good luck.

Paul

>
> Is there a file in the source directory giving explicit installation
> locations & files?
> I'll dig into that group.
> thanks
>
>
> On 12/28/22, Paul <stormy22@stormy.ca> wrote:
>> On 2022-12-28 14:35, Jeffrey Denison wrote:
>>> Can someone tell me how to remove Apache 2.4 HTTP server I installed
>>> from source? I can't get it to run & I see it's in the Fedora repos &
>>> can be installed from dns. I thought I might have better success if I
>>> remove the one I installed & reinstall from the command line. I don't
>>> see any uninstall command & see pieces scattered in various
>>> directories.
>>> thanks
>>
>> Have you tried to reverse your install with:
>>
>> # make uninstall
>>
>> If you've deleted the original source you might have to go through the
>> whole install again so that you can use makefile to see what and where
>> the various bits are, and then remove them one by one.
>>
>> Alternately 'locate' or 'find' any files with names like 'apache' or
>> 'httpd' that are dated suitably (could be the source date or the date
>> you installed or modified) and delete them by hand. Installing from a
>> proper package should (could, might) clean up anything accidentally left
>> behind.
>>
>> Note that I'm more of a Debian person, so Fedora / Red Hat might have
>> some quirks, and YMMV, Also, there used to be a good user /developer
>> group "fedorapeople.org"
>>
>> Happy 2023 to all on this list.
>>
>> Paul
>>
>>>
>>> On 12/27/22, Frank Gingras <thumbs@apache.org> wrote:
>>>> The first is a warning, and it tells you how to suppress it.
>>>>
>>>> The second implies that you need to remove the pidfile before you can
>>>> restart httpd, so do that.
>>>>
>>>> On Sun, Dec 25, 2022 at 3:10 PM Jeffrey Denison
>>>> <jeffrey.denison@gmail.com>
>>>> wrote:
>>>>
>>>>> @vicky chb
>>>>> I changed ssl.conf but don't know how to replace the
>>>>> SSLcertificatekeyFile directive. Can you tell me how to do that.
>>>>>
>>>>> Now I get this error msg:
>>>>>
>>>>> $ httpd
>>>>> AH00558: httpd: Could not reliably determine the server's fully
>>>>> qualified domain name, using fe80::36d6:b0f7:e2cc:c2ba%eno1. Set the
>>>>> 'ServerName' directive globally to suppress this message
>>>>> (13)Permission denied: AH00058: Error retrieving pid file run/httpd.pid
>>>>> AH00059: Remove it before continuing if it is corrupted.
>>>>>
>>>>>
>>>>> On 12/25/22, vicky chb <vkychb04@gmail.com> wrote:
>>>>>> Its not a command. Go to /etc/httpd/conf.d/ and open ssl.conf in vi or
>>>>>> whichever editor you like. Search for the below mentioned Directive
>>>>>> line
>>>>>>
>>>>>> SSLCertificateFile: '/etc/pki/tls/certs/localhost.crt'
>>>>>>
>>>>>> edit this line and replace localhost.crt with your certificate name
>>>>>> here
>>>>>> ca-bundle.crt or ca-bundle.trust.crt
>>>>>>
>>>>>> Also, replace SSLCertificateKeyFile directive with your private key.
>>>>>>
>>>>>> On Sun, 25 Dec 2022, 14:14 Jeffrey Denison,
>>>>>> <jeffrey.denison@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Thanks Vicky. Can you give me the whole command?
>>>>>>>
>>>>>>> On 12/24/22, vicky chb <vkychb04@gmail.com> wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Change "localhost.crt" to your current certificate name present in
>>>>>>>> the
>>>>>>>> mentioned directory. The syntax is by default, you may need to
>>>>>>>> change
>>>>>>>> as
>>>>>>>> per your certificate names.
>>>>>>>>
>>>>>>>> Instead of this:
>>>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt'
>>>>>>>>
>>>>>>>> do this:
>>>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt'
>>>>>>>>
>>>>>>>> or
>>>>>>>>
>>>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt'
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <
>>>>> jeffrey.denison@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> I installed Apache 2.4.54 on Fedora 37. I get the following error
>>>>> when
>>>>>>>>> I attempt to run it:
>>>>>>>>>
>>>>>>>>> $ httpd
>>>>>>>>> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf:
>>>>>>>>> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does
>>>>>>>>> not
>>>>>>>>> exist or is empty
>>>>>>>>>
>>>>>>>>> $ ls /etc/pki/tls/certs
>>>>>>>>> ca-bundle.crt ca-bundle.trust.crt
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
It was thus said that the Great Jeffrey Denison once stated:
> Can someone tell me how to remove Apache 2.4 HTTP server I installed
> from source? I can't get it to run & I see it's in the Fedora repos &
> can be installed from dns. I thought I might have better success if I
> remove the one I installed & reinstall from the command line. I don't
> see any uninstall command & see pieces scattered in various
> directories.

I have recently compiled and installed the latest Apache server from
source, everything was installed into "/usr/local/apache2". If there are
pieces scattered about, then you might have a system installed version as
well (my previous version of Apache, installed as part of the OS, had files
under "/etc/httpd", "/usr/sbin" and "/var/www").

I also had to modify the boot sequence to get my new Apache instance to
run instead of the system supplied Apache. How you do that depends upon the
operating system.

-spc


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
Thanks @Sean Conner. You were right. My screwup. It is a system
version. No apache2 dir in /usr/local & parts scattered in those
system directories. I appreciate it. Now I've got to figure out how to
configure it. I'm guessing I need to generate OpenSSL keys.
Should /etc/pki/tls/private/localhost.key contain my private key?

On 12/28/22, Sean Conner <spc@conman.org> wrote:
> It was thus said that the Great Jeffrey Denison once stated:
>> Can someone tell me how to remove Apache 2.4 HTTP server I installed
>> from source? I can't get it to run & I see it's in the Fedora repos &
>> can be installed from dns. I thought I might have better success if I
>> remove the one I installed & reinstall from the command line. I don't
>> see any uninstall command & see pieces scattered in various
>> directories.
>
> I have recently compiled and installed the latest Apache server from
> source, everything was installed into "/usr/local/apache2". If there are
> pieces scattered about, then you might have a system installed version as
> well (my previous version of Apache, installed as part of the OS, had files
> under "/etc/httpd", "/usr/sbin" and "/var/www").
>
> I also had to modify the boot sequence to get my new Apache instance to
> run instead of the system supplied Apache. How you do that depends upon
> the
> operating system.
>
> -spc
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: SSLCertificateFile localhost.crt does not exist [ In reply to ]
Jeffrey,

A .crt file is usually the certificate, and .key usually the private key,
yes.

On Fri, Dec 30, 2022 at 4:41 PM Jeffrey Denison <jeffrey.denison@gmail.com>
wrote:

> Thanks @Sean Conner. You were right. My screwup. It is a system
> version. No apache2 dir in /usr/local & parts scattered in those
> system directories. I appreciate it. Now I've got to figure out how to
> configure it. I'm guessing I need to generate OpenSSL keys.
> Should /etc/pki/tls/private/localhost.key contain my private key?
>
> On 12/28/22, Sean Conner <spc@conman.org> wrote:
> > It was thus said that the Great Jeffrey Denison once stated:
> >> Can someone tell me how to remove Apache 2.4 HTTP server I installed
> >> from source? I can't get it to run & I see it's in the Fedora repos &
> >> can be installed from dns. I thought I might have better success if I
> >> remove the one I installed & reinstall from the command line. I don't
> >> see any uninstall command & see pieces scattered in various
> >> directories.
> >
> > I have recently compiled and installed the latest Apache server from
> > source, everything was installed into "/usr/local/apache2". If there are
> > pieces scattered about, then you might have a system installed version as
> > well (my previous version of Apache, installed as part of the OS, had
> files
> > under "/etc/httpd", "/usr/sbin" and "/var/www").
> >
> > I also had to modify the boot sequence to get my new Apache instance to
> > run instead of the system supplied Apache. How you do that depends upon
> > the
> > operating system.
> >
> > -spc
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>