Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Apache PHP and System D
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chris.c.hogan
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 189

PostPosted: Thu Aug 24, 2017 1:24 am    Post subject: [Solved] Apache PHP and System D Reply with quote

All my experience is with OpenRC. I wanted to set up a System D system for the experience, lol

Under OpenRC, you would enable PHP in /etc/conf.d/apache2, using APACHE2_OPTS="-D PHP". My understanding from https://wiki.gentoo.org/wiki/Project:Systemd/conf.d_files is that System D doesn't use this file. I've read over https://wiki.gentoo.org/wiki/Apache which talks about starting Apache using System D. However, it doesn't say anything about starting PHP under System D.

How do you start PHP under System D?


Last edited by chris.c.hogan on Thu Aug 24, 2017 10:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Thu Aug 24, 2017 6:51 am    Post subject: Reply with quote

If you have USE=systemd, a service file for systemd will be created for you for a lot of services. I think some services will install a service file regardless...

However apache loads php as a subservice and not as an actual systemd service.

Luckily the Gentoo devs already dealt with this, and ... surprise! The apache2 service file written by the Gentoo Devs actually uses /etc/conf.d/apache2 to make it compatible with openrc, so go ahead and edit that file to start php.

(BTW. Though there's such thing as System V UNIX, but systemd is systemd like distccd is distccd.)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
chris.c.hogan
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 189

PostPosted: Thu Aug 24, 2017 10:39 pm    Post subject: Reply with quote

Thank you eccerr0r. I'm still new to this systemd stuff and thought I was missing a step...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum