Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Starting Apache w/o OpenRC
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
TheLexx
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2005
Posts: 115
Location: Austin Tx

PostPosted: Sun Oct 01, 2017 8:15 pm    Post subject: Starting Apache w/o OpenRC Reply with quote

How can I start Apache without using OpenRC or Systemd?

On my backup computer I have multiple Gentoo root partitions that allow me to test drive multiple configurations. Partition /dev/sda6 is the root partition for normal desktop mode. Partition /dev/sda7 is a partition that simulates a co-lo box that does not have X.

The reason I want to start Apache without Open RC or Systemd is that, I would like the ability to boot into Desktop mode then chroot into server mode to run Apache. This would give me the ability to run Apache two ways from a simulated server boot and chroot mode. In chroot mode I will have access to all the software in the desktop partition. Booting in server-simulation mode will allow me a dress-rehearsal before pushing changes to the co-lo box (One do not currently have).

When I boot into server mode, I can start Apache using OpenRC, then use command "ps ax", to see what OpenRC did i get ...

Code:
/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start


However, even in server mode issuing that command will not start Apache. Instead I get the following ...

Code:
root@srv-merganser ~ # /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start &
[1] 4771
root@srv-merganser ~ # AH00526: Syntax error on line 60 of /etc/apache2/modules.d/40_mod_ssl.conf:
Invalid Mutex directory in argument file:/run/apache_ssl_mutex


Any idea what I should try next?
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1694

PostPosted: Mon Oct 02, 2017 12:57 am    Post subject: Reply with quote

Quote:
root@srv-merganser ~ # AH00526: Syntax error on line 60 of /etc/apache2/modules.d/40_mod_ssl.conf:
Invalid Mutex directory in argument file:/run/apache_ssl_mutex


Well, this says there is an issue with the configurations for apache; so figure out what is wrong with that and fix that...
Since, you didn't say what version of apache nor do we know the contents of that file; we are limited on what we can help with.

One thing I noticed according to apache docs for updating from 2.2 to 2.4
Quote:
Directives AcceptMutex, LockFile, RewriteLock, SSLMutex, SSLStaplingMutex, and WatchdogMutexPath have been replaced with a single Mutex directive. You will need to evaluate any use of these removed directives in your 2.2 configuration to determine if they can just be deleted or will need to be replaced using Mutex.


Apache: mutex directive
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