Reputation: 1342
I installed the apache24 via pkg installer
pkg install apache24
and added the following line
apache24_enable="YES"
to the /etc/rc.conf
file
now I am trying to start the apache with service apache24 start
and it displays the following error
apache24 does not exist in /etc/rc.d or the local startup directories(/usr/local/etc/rc.d)
How can I start apache
Upvotes: 1
Views: 2675
Reputation: 49742
If apache24 has been correctly installed, the startup script will be in the /usr/local/etc/rc.d/ directory. First check this directory to ensure that a file called apache24 exists:
ls /usr/local/etc/rc.d/
To list all of the installed packages, use:
pkg info
Upvotes: 1