franch

Topic: Problem with Installation 505 Error

Hello, I have been trying to install jobberbase on my server for more than 3 hours, i have read a lot of topics with similar problems but none of them helped me so now I`ll try to post my problem.
I followed the apache installation guide, and I get the following error:

Code:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@conceptdezain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

this is what I got in my config.envs.php file:

Code:
/**
 * Define environments
 *
 */

// local (http://localhost/jobberbase/public)
$__instances['local'] = array(
    // should be a unique part of the url (or the entire url if you wish)
    'prefix' => 'localhost',
    // mysql credentials
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'root',
    'db_password' => '',
    'db_name' => 'jobberbase',
    'db_prefix' => '',
    // your site's full url
    'app_url' => 'http://localhost/jobberbase/trunk/public/',
    // error reporting
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'On',
    // environment setting 1 (use 'local' for localhost/testing OR 'online' for live, production environment)
    'location' => 'local',
    // environment setting 2 (use 'dev' together with 'local' in the previous setting OR 'prod' with 'online')
    'environment' => 'dev',
    //'apache_mod_rewrite', 'iis_url_rewrite' -microsoft URL Rewrite module, 'iis_isapi_rewrite'
    'rewrite_mode' => 'apache_mod_rewrite'
);

// live (http://www.conceptdezain.com/jobs)
$__instances['live'] = array(
    'prefix' => 'conceptdezain.com',
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => '*****',
    'db_password' => '*******',
    'db_name' => '*****_jobs',
    'db_prefix' => '',
    'app_url' => 'http://www.conceptdezain.com/jobs/',
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'on',
    'location' => 'online',
    'environment' => 'prod',
    'rewrite_mode' => 'apache_mod_rewrite'
);


// setup current instance
foreach ($__instances as $__instance)
{
    // http requests
    if (isset($_SERVER['HTTP_HOST']))
    {
        $_compare_to = $_SERVER['HTTP_HOST'];
    }

    if (strstr($_compare_to, $__instance['prefix']))
    {
        define('DB_HOST', $__instance['db_host']);
        define('DB_PORT', $__instance['db_port']);
        define('DB_USER', $__instance['db_user']);
        define('DB_PASS', $__instance['db_password']);
        define('DB_NAME', $__instance['db_name']);
        define('DB_PREFIX', $__instance['db_prefix']);

        // values kind of redundant, they indicate wether this is a live/production or dev/testing environment
        define('LOCATION', $__instance['location']);
        define('ENVIRONMENT', $__instance['environment']);
        
        // base url of the app
        define('APP_URL', $__instance['app_url']);
        define('REWRITE_MODE', $__instance['rewrite_mode']);
        // error reporting
        ini_set('error_reporting', $__instance['ini_error_reporting']);
        ini_set('display_errors', $__instance['ini_display_errors']);
        
        break;
    }
}
?>

I can`t figure it out by myself so please if you could help me I`ll be really thankfull.
Thanks

putypuruty

Re: Problem with Installation 505 Error

Hi!

What happens if you remove or rename the root .htaccess file? Does the home page show without it?

franch

Re: Problem with Installation 505 Error

excellent thanks a lot, but now the problem is when I click in any link, I get the 404 error page.

putypuruty

Re: Problem with Installation 505 Error

Sure, that''s what I expected that will happen.

Can you please post here the content of your root .htaccess file? What you can try is to remove the Options +FollowSymlinks line as this causes troubles on some hostings.

franch

Re: Problem with Installation 505 Error

Hi, Thanks. I have tried that and it didn`t worked. This is the content of the htacces in the subfolder where I have the jobberbase installed:

Code:
# AddType x-mapp-php5 .php
# AddHandler x-mapp-php5 .php

RewriteEngine on
RewriteBase /
Options +FollowSymlinks

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

ErrorDocument 404 /page-unavailable/

<files ~ "\.tpl$">
order deny,allow
allow from none
deny from all
</files>

Thanks

When I upoloaded it again I did what you told me and nothing happende, the error persist.

Last edited by franch (2011-04-12 18:56:13)

putypuruty

Re: Problem with Installation 505 Error

Hi!

Without access to the code, I don't know how else to help you. If you wish, you can write me a private mail here http://www.jobberbase.com/forum/email19.html and maybe we will try to solve the problem offline.