Problem with apache-default-modules.conf

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Post Reply
ampapa
Know my way around
Posts: 126
Joined: Sat Dec 03, 2011 7:47 am

Problem with apache-default-modules.conf

Post by ampapa »

Every time I restart the Apache server my modified apache-default-modules.conf file appears to be reset to a default copy?

I've been having to add the following 2 modules to the .conf file in order to get my pages served up:

Code: Select all

LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
[/b]

I also have the same problem if restoring the file and then restarting Apache using /etc/init.d/Qthttpd.sh restart I have to restart the service using /usr/local/apache/bin/apachectl restart and all is good.

I thought loading the modules was a temporary fix after an update that was put out by QNAP but this seems to now be a permanent bug for me... what am I missing here?

Any help is appreciated...

ampapa,
ampapa
Know my way around
Posts: 126
Joined: Sat Dec 03, 2011 7:47 am

Re: Problem with apache-default-modules.conf

Post by ampapa »

It's never good when nobody reply's... ugh!

ampapa,
User avatar
Toxic17
Ask me anything
Posts: 6469
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: Problem with apache-default-modules.conf

Post by Toxic17 »

yep, thats correct though not many people try to change QNAPs own locked down version of Apache - you end up in a world of hurt or wasting your time....

Personally if you want apache with all the bells and whistles on it, then try Qapache.

viewtopic.php?t=110391
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
ampapa
Know my way around
Posts: 126
Joined: Sat Dec 03, 2011 7:47 am

Re: Problem with apache-default-modules.conf

Post by ampapa »

Thanks for the reply.

Originally I was repairing a problem when QNAP pushed out an update...

I'm assuming that the apache-default-modules.conf is being overwritten each reboot. Where does QNAP store its image of the file?
User avatar
Toxic17
Ask me anything
Posts: 6469
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: Problem with apache-default-modules.conf

Post by Toxic17 »

I found two instances.

Code: Select all

[/] # find / -name "apache-default-modules.conf"
find: ‘/proc/11834’: No such file or directory
/mnt/HDA_ROOT/.config/apache/extra/apache-default-modules.conf
/etc/default_config/apache-default-modules.conf
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
ampapa
Know my way around
Posts: 126
Joined: Sat Dec 03, 2011 7:47 am

Re: Problem with apache-default-modules.conf

Post by ampapa »

So that got me closer as I can now restart apache via

Code: Select all

/etc/init.d/Qthttpd.sh restart
However even after modifying /etc/default_config/apache-default-modules.conf and adding the necessary module 'LoadModule authz_host_module modules/mod_authz_host.so' the config file will not survive a reboot?

Any other ideas or suggestions?
bisbinix
New here
Posts: 2
Joined: Thu Aug 06, 2015 4:20 am

Re: Problem with apache-default-modules.conf

Post by bisbinix »

Do not restart apache.An apache restart overwrites the conf file.
Use :
/etc/init.d/Qthttpd.sh reload_apache
Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”