Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Advice on backup software

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
32 posts
  • Previous
  • 1
  • 2
Author
Message
esa
n00b
n00b
User avatar
Posts: 33
Joined: Tue Mar 17, 2009 6:12 am

  • Quote

Post by esa » Mon Aug 04, 2014 8:08 pm

I have installed backuppc but I when I start the service, I get errors :

Code: Select all

/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: Select all

/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: Select all

/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?
Top
hika
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Fri Mar 13, 2009 5:55 pm
Location: Utrecht

  • Quote

Post by hika » Mon Aug 04, 2014 8:35 pm

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
Top
The Doctor
Bodhisattva
Bodhisattva
User avatar
Posts: 2678
Joined: Tue Jul 27, 2010 10:56 pm

  • Quote

Post by The Doctor » Tue Aug 05, 2014 5:11 am

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.
Top
esa
n00b
n00b
User avatar
Posts: 33
Joined: Tue Mar 17, 2009 6:12 am

  • Quote

Post by esa » Wed Aug 06, 2014 6:31 pm

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
Top
dataking
Apprentice
Apprentice
User avatar
Posts: 251
Joined: Wed Apr 20, 2005 12:01 am

  • Quote

Post by dataking » Wed Aug 06, 2014 7:42 pm

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: Select all

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& =-
Top
esa
n00b
n00b
User avatar
Posts: 33
Joined: Tue Mar 17, 2009 6:12 am

  • Quote

Post by esa » Thu Aug 07, 2014 5:34 am

That's what I have done.

Code: Select all

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.
Top
hika
Apprentice
Apprentice
User avatar
Posts: 234
Joined: Fri Mar 13, 2009 5:55 pm
Location: Utrecht

  • Quote

Post by hika » Sun Oct 26, 2014 9:53 am

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.
(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.
Top
Post Reply

32 posts
  • Previous
  • 1
  • 2

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic