Re: [gentoo-user] Apache and systemd problem

2023-05-13 Thread Jacques Montier
Le ven. 12 mai 2023 à 16:22, Jacques Montier a écrit : > > >> Yes, you need to configure the apache files to specify IP address to >> listen >> to, webroot, etc. for each host you want to serve files from. >> >> Ok, it's done > >> >> >> Fix this by adding the "start" subcommand: >> >>

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
> > Yes, you need to configure the apache files to specify IP address to > listen > to, webroot, etc. for each host you want to serve files from. > > Ok, it's done > > > Fix this by adding the "start" subcommand: > > ExecStart=/usr/sbin/apache2ctl start > > > ExecStart=/usr/sbin/apache2ctl start

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Michael
On Friday, 12 May 2023 10:41:32 BST Jacques Montier wrote: > > After you are able to start it manually, you can edit your systemd service > > file accordingly. > > GOOD NEWS ! i can start apache2ctl manually by #/usr/bin/apache2ctl > I get the warning message : > AH00558: apache2: Could not

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
> > After you are able to start it manually, you can edit your systemd service > file accordingly. GOOD NEWS ! i can start apache2ctl manually by #/usr/bin/apache2ctl I get the warning message : AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
Le ven. 12 mai 2023 à 10:40, Alexandru N. Barloiu a écrit : > How can you not miss it when it's specified in the ebuild? > > [root@ruja:~]# grep service > /usr/portage/www-servers/apache/apache-2.4.55-r1.ebuild > # Then apache2.4.service can be used and systemd support controlled >

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Alexandru N. Barloiu
How can you not miss it when it's specified in the ebuild? [root@ruja:~]# grep service /usr/portage/www-servers/apache/apache-2.4.55-r1.ebuild     # Then apache2.4.service can be used and systemd support controlled     systemd_newunit "${FILESDIR}/apache2.4-hardened.service" "apache2.service"

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
Le ven. 12 mai 2023 à 02:54, Alexandru N. Barloiu a écrit : > first of all, gentoo does install with a service file: > > [root@noela:~]# equery f apache | grep systemd | grep service > /lib/systemd/system/apache2.service > > Hi Alexandru, Gentoo did not install any apache2.service. I had to

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Alexandru N. Barloiu
first of all, gentoo does install with a service file: [root@noela:~]# equery f apache | grep systemd | grep service /lib/systemd/system/apache2.service also, I feel the way apache works is indifferent to distro or os. i mean, it makes very little difference as far as apache goes if you have

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Michael
On Thursday, 11 May 2023 17:17:27 BST Jacques Montier wrote: > I don't find any "LogLevel info" in /etc/apache2/httpd.conf > /var/log/apache2/error_log is empty. > > Jacques Please take a look here to see what the httpd.conf should look like and if there is no LogLevel directive add it

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Jacques Montier
> > > - /var/log/apache2 and /etc/apache2/httpd.conf are in the right place > > Check ownership of files in /var/log/apache2/ > > Apache will need to be able to write to them. > > Apache ownership of apache:apache Inside apache2, root:root and the files are empty. I changed the ownership of the

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Michael
On Thursday, 11 May 2023 15:07:09 BST Jacques Montier wrote: > Thank you Michael for your response. > > - no error during compilation and installation OK > - /var/log/apache2 and /etc/apache2/httpd.conf are in the right place Check ownership of files in /var/log/apache2/ Apache will need to

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Jacques Montier
Thank you Michael for your response. - no error during compilation and installation - /var/log/apache2 and /etc/apache2/httpd.conf are in the right place - by default in httpd.conf: User apache Group apache - User and group for /var/www -> apache:apache - /usr/bin/apache2ctl configtest returns

Re: [gentoo-user] Apache and systemd problem

2023-05-11 Thread Michael
On Wednesday, 10 May 2023 19:58:50 BST Jacques Montier wrote: > Hello all, > > To learn a little bit about systemd, I recently installed a gentoo with > systemd profile. > After some fights, the OS is working, but it was a real mess !!! > Now I am struggling for launching apache2 daemon. > When