My apache server is not restarting because the conf file contains references to Ruby. None of the Ruby packages have been installed on this server. I don't want to support Ruby. Where in Virtualmin would I tell it to NOT include Ruby support? TIA
Aug 22 06:25:05 lamphost apache2[15801]: * Reloading Apache httpd web server apache2 Aug 22 06:25:05 lamphost apache2[15801]: * Aug 22 06:25:05 lamphost apache2[15801]: * The apache2 configtest failed. Not doing anything. Aug 22 06:25:05 lamphost apache2[15801]: Output of config test was: Aug 22 06:25:05 lamphost apache2[15801]: [Tue Aug 22 06:25:05.719671 2017] [proxy_html:notice] [pid 15813] AH01425: I18n support in mod_proxy_html requires mod_xml2enc. Without it, non-ASCII characters in proxied pages are likely to display incorrectly. Aug 22 06:25:05 lamphost apache2[15801]: AH00526: Syntax error on line 22 of /etc/apache2/sites-enabled/racktablestest1.example.org.conf: Aug 22 06:25:05 lamphost apache2[15801]: Invalid command 'RubyRequire', perhaps misspelled or defined by a module not included in the server configuration Aug 22 06:25:05 lamphost apache2[15801]: Action 'configtest' failed. Aug 22 06:25:05 lamphost apache2[15801]: The Apache error log may have more information.
Comments
Submitted by curtisb on Tue, 08/22/2017 - 10:17 Pro Licensee Comment #1
Submitted by JamieCameron on Tue, 08/22/2017 - 19:41 Comment #2
This quick solution is to SSH in as
root
and run :virtualmin modify-web --domain example.com --ruby-mode none
Submitted by curtisb on Tue, 08/22/2017 - 20:41 Pro Licensee Comment #3
Thank you this hint. I tried reading the documentation on modify_web here:
https://www.virtualmin.com/documentation/developer/cli/modify_web
I see that there's a switch for --all-domains which I'm assuming (pls correct me) would apply options to all existing vhosts, but not future ones. Is there a way to set the default?
I tried looking at templates, but here is what I see:
root@lamphost:/etc/apache2/sites-available# virtualmin list-templates
ID Description
------------------ ------------------------------------------------------------
0 Default Settings
1 Settings For Sub-Servers
root@lamphost:/etc/apache2/sites-available#
root@lamphost:/etc/apache2/sites-available# virtualmin get-template --id 0 | grep ruby
web_ruby_suexec: -1
root@lamphost:/etc/apache2/sites-available# virtualmin get-template --id 1 | grep ruby
web_ruby_suexec: -1
root@lamphost:/etc/apache2/sites-available#
Submitted by JamieCameron on Wed, 08/23/2017 - 00:01 Comment #4
Yes, you can use
--all-domains
in this case.To prevent this for new domains (if it is happening), turn off Ruby at System Settings -> Server Templates -> Default Settings -> Apache website.