Minimizing the number of modules for ownCloud on apache

Ask all your questions regarding OC 9.0 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
darksky
Newbie
Posts: 8
Joined: Wed Jun 29, 2016 9:41 am
ownCloud version: 9.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 7.0.8

Minimizing the number of modules for ownCloud on apache

Postby darksky » Sat Jul 02, 2016 12:19 am

My goal is to minimize the number of modules I am loading in an attempt to streamline the server. My setup is pretty basic:
*apache 2.4.20
*owncloud 9.0.2
*mariadb
*php
*ssl

Below is my modules section of /etc/httpd/conf/httpd.conf and I'm hoping to get some feedback from folks with more apache knowledge than I. Question: which of these are not needed for my setup?

Modules enabled by the default Arch package:

Code: Select all

access_compat_module modules/mod_access_compat.so
alias_module modules/mod_alias.so
auth_basic_module modules/mod_auth_basic.so
authn_core_module modules/mod_authn_core.so
authn_file_module modules/mod_authn_file.so
authz_core_module modules/mod_authz_core.so
authz_groupfile_module modules/mod_authz_groupfile.so
authz_host_module modules/mod_authz_host.so
authz_user_module modules/mod_authz_user.so
autoindex_module modules/mod_autoindex.so
dir_module modules/mod_dir.so
env_module modules/mod_env.so
filter_module modules/mod_filter.so
headers_module modules/mod_headers.so
include_module modules/mod_include.so
lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
log_config_module modules/mod_log_config.so
mime_module modules/mod_mime.so
mpm_event_module modules/mod_mpm_event.so
negotiation_module modules/mod_negotiation.so
proxy_ajp_module modules/mod_proxy_ajp.so
proxy_balancer_module modules/mod_proxy_balancer.so
proxy_connect_module modules/mod_proxy_connect.so
proxy_express_module modules/mod_proxy_express.so
proxy_fcgi_module modules/mod_proxy_fcgi.so
proxy_ftp_module modules/mod_proxy_ftp.so
proxy_http_module modules/mod_proxy_http.so
proxy_module modules/mod_proxy.so
proxy_scgi_module modules/mod_proxy_scgi.so
proxy_wstunnel_module modules/mod_proxy_wstunnel.so
reqtimeout_module modules/mod_reqtimeout.so
setenvif_module modules/mod_setenvif.so
slotmem_shm_module modules/mod_slotmem_shm.so
status_module modules/mod_status.so
unixd_module modules/mod_unixd.so
userdir_module modules/mod_userdir.so
version_module modules/mod_version.so


Modules added per the wiki (using mysqld, ssl, and php):

Code: Select all

mpm_prefork_module modules/mod_mpm_prefork.so
php7_module modules/libphp7.so
socache_shmcb_module modules/mod_socache_shmcb.so
ssl_module modules/mod_ssl.so

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Minimizing the number of modules for ownCloud on apache

Postby RealRancor » Sat Jul 02, 2016 12:49 am

Hi,

disable one module after another and check if your oC installation is still working.
*gone*

darksky
Newbie
Posts: 8
Joined: Wed Jun 29, 2016 9:41 am
ownCloud version: 9.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 7.0.8

Re: Minimizing the number of modules for ownCloud on apache

Postby darksky » Sat Jul 02, 2016 10:04 am

Was hoping for a faster method :)

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Minimizing the number of modules for ownCloud on apache

Postby tflidd » Sat Jul 02, 2016 10:32 am

Do you use a apache as a proxy? If not, you should be able to disable all proxy_* modules.
status_module is good for debugging but shouldn't be accessible on public.
userdir_module is not needed for owncloud.

darksky
Newbie
Posts: 8
Joined: Wed Jun 29, 2016 9:41 am
ownCloud version: 9.0.2
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 7.0.8

Re: Minimizing the number of modules for ownCloud on apache

Postby darksky » Sat Jul 02, 2016 1:01 pm

Thanks for the tips. Disabling them doesn't seem to affect owncloud for my setup. The currently enabled lists are now as follows:

Modules enabled by the default Arch package:

Code: Select all

access_compat_module modules/mod_access_compat.so
alias_module modules/mod_alias.so
auth_basic_module modules/mod_auth_basic.so
authn_core_module modules/mod_authn_core.so
authn_file_module modules/mod_authn_file.so
authz_core_module modules/mod_authz_core.so
authz_groupfile_module modules/mod_authz_groupfile.so
authz_host_module modules/mod_authz_host.so
authz_user_module modules/mod_authz_user.so
autoindex_module modules/mod_autoindex.so
dir_module modules/mod_dir.so
env_module modules/mod_env.so
filter_module modules/mod_filter.so
headers_module modules/mod_headers.so
include_module modules/mod_include.so
lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
log_config_module modules/mod_log_config.so
mime_module modules/mod_mime.so
mpm_event_module modules/mod_mpm_event.so
negotiation_module modules/mod_negotiation.so
reqtimeout_module modules/mod_reqtimeout.so
setenvif_module modules/mod_setenvif.so
slotmem_shm_module modules/mod_slotmem_shm.so
unixd_module modules/mod_unixd.so
version_module modules/mod_version.so


Modules added per the wiki (using mysqld, ssl, and php):

Code: Select all

mpm_prefork_module modules/mod_mpm_prefork.so
php7_module modules/libphp7.so
socache_shmcb_module modules/mod_socache_shmcb.so
ssl_module modules/mod_ssl.so


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 9.0”

Who is online

Users browsing this forum: No registered users and 1 guest