View previous topic :: View next topic |
Author |
Message |
esa n00b
Joined: 17 Mar 2009 Posts: 33
|
Posted: Mon Aug 04, 2014 8:08 pm Post subject: |
|
|
I have installed backuppc but I when I start the service, I get errors :
Code: | /etc/init.d/apache2-backuppc restart
* apache2-backuppc has detected an error in your setup:
apache2: Syntax error on line 69 of /etc/BackupPC/httpd.conf: Cannot load modules/mod_authn_default.so into server: /usr/lib/apache2/modules/mod_authn_default.so: cannot open shared object file: No such file or directory
* ERROR: apache2-backuppc failed to start |
php-5.5.14 and apache-2.4.9 is installed.
From : http://httpd.apache.org/docs/2.4/en/upgrading.html
These modules have been removed: mod_authn_default, mod_authz_default, mod_mem_cache.
So, I deleted the line 69 but after this I have :
Code: | /etc/init.d/apache2-backuppc restart
* apache2-backuppc has detected an error in your setup:
apache2: Syntax error on line 72 of /etc/BackupPC/httpd.conf: Cannot load modules/mod_authz_default.so into server: /usr/lib/apache2/modules/mod_authz_default.so: cannot open shared object file: No such file or directory |
I deleted the line 72 :
Code: | /etc/init.d/apache2-backuppc restart
* apache2-backuppc has detected an error in your setup:
apache2: Syntax error on line 170 of /etc/BackupPC/httpd.conf: Syntax error on line 2 of /etc/apache2/modules.d/75_mod_perl.conf: Cannot load modules/mod_perl.so into server: /usr/lib/apache2/modules/mod_perl.so: undefined symbol: ap_log_rerror
|
I can't manage to setup backuppc.
I need help.
Can you give me some advices? |
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Mon Aug 04, 2014 8:35 pm Post subject: |
|
|
You need to install the needed apache modules.
Add "APACHE2_MODULES="$APACHE2_MODULES authn_default" to your make.conf
although this module should be installed by default.
Check the output of emerge -pv apache
Also try going back to a stable apache version e.a. 2.2.27-r4 I have noticed modules to not be available for that version.
Hika |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Tue Aug 05, 2014 5:11 am Post subject: |
|
|
The most elegant solution I found for my backups is to use rsnapshot. It configures easily, doesn't waste space, and uses an incremental backup. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
esa n00b
Joined: 17 Mar 2009 Posts: 33
|
Posted: Wed Aug 06, 2014 6:31 pm Post subject: |
|
|
I have done the downgrade.
Now, I have :
- PHP Version 5.5.15
- www-servers/apache-2.2.27-r4
- Loaded Modules core prefork http_core mod_so mod_actions mod_alias mod_auth_basic mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authn_file mod_authz_dbm mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_owner mod_authz_user mod_autoindex mod_cgi mod_cgid mod_deflate mod_dir mod_env mod_expires mod_ext_filter mod_filter mod_headers mod_include mod_info mod_log_config mod_logio mod_mime mod_mime_magic mod_negotiation mod_rewrite mod_setenvif mod_speling mod_ssl mod_unique_id mod_usertrack mod_vhost_alias mod_php5
I don't understand the following :
/etc/init.d/apache2-backuppc restart
* Starting apache2-backuppc ...
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
* start-stop-daemon: failed to start `/usr/sbin/apache2' [ !! ]
* ERROR: apache2-backuppc failed to start
I stop apache 2 : /etc/init.d/apache2 stop
Restart backuppc : It doesn't complain about "Address already in use"
/etc/init.d/apache2-backuppc restart
* Starting apache2-backuppc ...
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
* start-stop-daemon: failed to start `/usr/sbin/apache2' [ !! ]
* ERROR: apache2-backuppc failed to start
If I do su backuppc :
/root $ /etc/init.d/apache2 start
* apache2: superuser access required
So, I suppose it's normal that backuppc can't start the apache service.
I'm lost |
|
Back to top |
|
|
dataking Apprentice
Joined: 20 Apr 2005 Posts: 251
|
Posted: Wed Aug 06, 2014 7:42 pm Post subject: |
|
|
Apache (and therefore apache-backuppc) need to be started as root -- or use sudo.
But you can't have apache and apache-backuppc running simultaneously on the same port (TCP/80).
If you're serving web content with apache, best bet is to configure apache-backuppc to run on a different port. Otherwise, don't start apache and run apache-backuppc on port 80.
Code: |
sudo rc-update del apache
sudo /etc/init.d/apache stop
sudo rc-update add apache-backuppc default
sudo /etc/init.d/apache-backuppc start
|
_________________ -= the D@7@k|n& =- |
|
Back to top |
|
|
esa n00b
Joined: 17 Mar 2009 Posts: 33
|
Posted: Thu Aug 07, 2014 5:34 am Post subject: |
|
|
That's what I have done.
Code: | asuss1 ~ # /etc/init.d/apache2 stop
* Stopping apache2 ... [ ok ]
asuss1 ~ # /etc/init.d/apache2-backuppc start
* Starting apache2-backuppc ...
* start-stop-daemon: failed to start `/usr/sbin/apache2' [ !! ]
* ERROR: apache2-backuppc failed to start
|
I give up. |
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sun Oct 26, 2014 9:53 am Post subject: |
|
|
Sorry, I was away some time and for some reason don't get the mails about posts.
Your apache error could come from you running another webserver.
Quote: | (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 |
So you have to put the webserver on another address. For instance 8080. |
|
Back to top |
|
|
|