LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2012, 09:22 PM   #1
WhoAmI99
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Rep: Reputation: Disabled
Question Webacula 5.5.1 give an http 500 error


Hi,

I have installed webacula on a Ubuntu 11.10, but i'm a total noob... :/
I can't access webacula at all...
Bacula, Apache, Mysql, PHP, etc... are installed...

Here's what I does:
Command = Blue
File content = Green


Code:

apt-get install zend-framework

mkdir /var/www/webacula && cd /var/www/webacula

wget https://github.com/tim4dev/webacula/tarball/master

mv master webacula-src.tar.gz

tar xfzv webacula-src.tar.gz

mv tim4dev-webacula-544ce5e/* ./ && rm -r tim4dev-webacula-544ce5e/

echo "www-data ALL=NOPASSWD: /usr/bin/bconsole" >> /etc/sudoers

cat /var/www/webacula/application/config.ini
;
; config.ini
; Webacula 5.5
;

[general]
;; supported adapters : PDO_MYSQL, PDO_PGSQL, PDO_SQLITE  
db.adapter = PDO_MYSQL
db.config.host = localhost
db.config.username = root
db.config.password = MY_MYSQL_ROOT_PASSWORD
db.config.dbname = bacula
;; for Sqlite db.config.dbname = "/full patch/bacula.db"

;; see http://www.php.net/timezones
; def.timezone = "UTC"
def.timezone = "Europe/Minsk"

;; if locale undefined, webacula use autodetect
;; avaliable locales : en, cs, de, fr, pt_BR, ru, it, es
; locale = "en"

;; see INSTALL file for details
bacula.sudo = "/usr/bin/sudo"
bacula.bconsole = "/usr/bin/bconsole"
bacula.bconsolecmd = "-n -c /etc/bacula/bconsole.conf"

;; time to live data (session and temporary data tables) for restore files (sec)
; default = 1h
; ttl_restore_session = 3600

;; the text, which will be placed in the header of the page
; head_title = "webacula :: domain.tld"

;; Main menu floating (default = 0)
;; A floating menu stays visible even if you scroll down a web page.
;; They're animated, so they move up and down as you scroll the browser window up or down.
; mainmenu_floating = 1

;; As many days to show those Jobs that are completed with errors (default = 7)
;; Jobs with errors (last NN day(s)
; days_to_show_jobs_with_errors = 7

;; Show human readable short Job description instead of Bacula Job names (default = 0)
; avaliable optins : 0 | 1 | 2
; 0 - only show Bacula Job Name (behavior as in earlier versions)
; 1 - only show human readable short Job description instead of Bacula Job Name
; 2 - show both
; show_job_description = 0

; Normally, you will specify only one Restore job in bacula-dir.conf.
; However, if it is not so, if you have multiple (exact - more than one) Restore Job resources 
; put Restore Job names from bacula-dir.conf here.
; IMPORTANT!!! Restore Job names should be specified in the same order as in bacula-dir.conf!
; bacula_restore_job[] = "restore"
; bacula_restore_job[] = "Restore_Files_1"
; bacula_restore_job[] = "Restore_Files_2"
; and so on.

[timeline]
;; will be used when the system font by default
; gdfontpath = "/usr/share/fonts/dejavu"
; fontname   = "DejaVuLGCSansMono"
fontsize   = 10

[webacula]
email.to_admin = root@localhost
email.from = webacula@localhost

[feed]
feed_title = "My Bacula backup server #1"
feed_desc  = "Description feed here"

[layout]
;; available values : "default"
path = "default"



cat /var/www/webacula/install/db.conf

# See also application/config.ini

# bacula settings
db_name="bacula"
# for Sqlite only
db_name_sqlite="/var/bacula/working/bacula.db"
db_user="root"

# CHANGE_THIS
db_pwd="MY_MYSQL_ROOT_PASSWORD"

# Webacula web interface settings
#
# Built-in superuser login is 'root'
#
# CHANGE_THIS
webacula_root_pwd="test"


cd /var/www/webacula/install/MySql

sh 10_make_tables.sh  

sh 20_acl_make_tables.sh


cat /etc/apache2/sites-available/webacula


    <VirtualHost *:80>
           ServerAdmin webacula@localhost
           ServerName webacula
           DocumentRoot /var/www/webacula
           <Directory />
               Options FollowSymLinks
               AllowOverride None
           </Directory>
           <Directory /var/www/webacula/>
               Options Indexes Includes FollowSymLinks MultiViews
               AllowOverride All
               Order allow,deny
               Allow from all
           </Directory>
           Include /var/www/webacula/install/apache/webacula.conf
           ErrorLog /var/log/apache2/webacula.log
           LogLevel warn
           CustomLog /var/log/apache2/webacula.access.log combined
    </VirtualHost>



cat /var/www/webacula/install/apache/webacula.conf
#
# Webacula - Web interface of a Bacula backup system
# Apache conf
# 
# Allows only localhost by default
#

#LoadModule rewrite_module modules/mod_rewrite.so

# AccessFileName .htaccess
# RewriteLog "/var/log/httpd/mod_rewrite.log"
# RewriteLogLevel 3

# SetEnv APPLICATION_ENV development
SetEnv APPLICATION_ENV production

Alias /webacula  /var/www/webacula/html
<Directory /var/www/webacula/html>
   RewriteEngine On

   RewriteBase   /webacula
   RewriteCond %{REQUEST_FILENAME} -s [OR]
   RewriteCond %{REQUEST_FILENAME} -l [OR]
   RewriteCond %{REQUEST_FILENAME} -d
   RewriteRule ^.*$ - [NC,L]
   RewriteRule ^.*$ index.php [NC,L]

   php_flag magic_quotes_gpc off
   php_flag register_globals off

   Options Indexes FollowSymLinks
   AllowOverride All
   Order deny,allow

   Deny from all
   Allow from 127.0.0.1
   Allow from localhost
   Allow from ::1
   #
   # change the settings below
   #
   # Allow from <your network>
</Directory>

<Directory /var/www/webacula/docs>
   Order deny,allow
   Deny from all
</Directory>

<Directory /var/www/webacula/application>
   Order deny,allow
   Deny from all
</Directory>

<Directory /var/www/webacula/languages>
   Order deny,allow
   Deny from all
</Directory>

<Directory /var/www/webacula/library>
   Order deny,allow
   Deny from all
</Directory>

<Directory /var/www/webacula/install>
   Order deny,allow
   Deny from all
</Directory>

<Directory /var/www/webacula/tests>
   Order deny,allow
   Deny from all
</Directory>

<Directory /var/www/webacula/data>
   Order deny,allow
   Deny from all
</Directory>

#
# test mod_rewrite
#
<Directory /var/www/webacula/html/test_mod_rewrite>
   RewriteEngine On
   # for test mod_rewrite
   RewriteBase   /webacula/test_mod_rewrite
   RewriteRule ^testlink([^/]*).html$  index.php?testlink=$1 [L]

   php_flag magic_quotes_gpc off
   php_flag register_globals off

   Options Indexes FollowSymLinks
   AllowOverride All
   Order deny,allow

   Deny from all
   Allow from 127.0.0.1
   Allow from localhost
   Allow from ::1
   #
   # change the settings below
   #
   # Allow from <your network>
</Directory>


a2enmod rewrite

a2ensite webacula

ln -s /usr/share/php/libzend-framework-php/Zend/ /var/www/webacula/library/Zend

chown www-data:www-data -R /var/www/webacula

/etc/init.d/apache2 restart
Is anyone know what's the problem because when I want to see the webacula main web page(http://127.0.0.1/webacula/), Chromium give me this error: Error HTTP 500 (Internal Server Error).

Thanks a lot!
*Maybe it will help someone at the same time as me! *
 
Old 04-22-2012, 03:08 PM   #2
es0teric
Member
 
Registered: Apr 2007
Distribution: Ubuntu
Posts: 105

Rep: Reputation: 19
The Apache log should have details about why the request failed. Try checking there. It's probably in /var/log/apache2/
 
Old 09-27-2012, 02:40 AM   #3
anyother1983
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
webacula

hello whoami99

are find any solution for the subect post, i am also facing the same problem.
please let me inform the status of webacula on your site

jafar
 
Old 09-27-2012, 06:46 AM   #4
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
@Hendri2201 -I had veiwed your link you had posted for whoAm199 its completely irrevelant to these topic.Dont mess the user with irrevelant topic
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Apache:HTTP 500 error sunrised24 Linux - Server 1 02-17-2012 12:23 PM
monodoc-http gives a http 500 internal server error ernesto_cgf Linux - Software 0 05-10-2007 03:48 PM
HELP! CGI problem : HTTP 500 - Internal server error eech55 Programming 2 10-11-2004 11:27 AM
HTTP error: 500 read timeout precioso77 Linux - Software 0 11-17-2003 04:59 PM
http status 500 error pattar Linux - Software 1 02-18-2003 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration