rondaniel58

Topic: The requested URL /page-unavailable/ was not found on this server.

I am trying to run jobberbase on a locahost (ubuntu)

I have correctly followed the install instructions which said copy all th files in public to the web server.

I did this and copied them all to /var/www

Then I changed the config file to be as follows

// 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' => 'passwordiscorrect',
        'db_name' => 'jobberbase',
        'db_prefix' => '',
        // your site's full url
        'app_url' => 'http://localhost/',
        // 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_isa
pi_rewrite'
        'rewrite_mode' => 'apache_mod_rewrite'
);

When I try http://localhost/index.php

I get this :

Not Found

The requested URL /page-unavailable/ was not found on this server.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80

When I went to http://localhost/admin
I got a login page, logged in, then got a similar error to above ,but it appeared to login, because when I went back to same address, i.e. http://localhost/admin

I could see all the functions on the admin menu. Although when I clicked one I got :
The requested URL /admin/settings/mail/ was not found on this server.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80

Seems like something to do with a setting which is incorrectly causing the path of the web page to commence with / which on a unix server means go back to the root directory.

I also need to know what ownership and groupid should be specified for successful operation of the system for the so called webuser.

Apache tasks running seem to indicate www-data as the owner. Do I leave all file permissions as they were and set the ownership and group membership as www-data ?

I would really appreciate some help here.

Kind Regards
Ron
(jobberbase newbie)

hobo

Re: The requested URL /page-unavailable/ was not found on this server.

Did you try just:http://localhost/ ?

putypuruty

Re: The requested URL /page-unavailable/ was not found on this server.

Are you sure that the Apache mod_rewrite plugin is active and correctly configured?

rondaniel58

Re: The requested URL /page-unavailable/ was not found on this server.

I fixed the issue with mod_rewrite. And thanks for the other post too. Yes I had tried the localhost thing too. That was more to do with bad config of the base url at line 14 of config.envs.php.

But it still doesn't fly.

I have now changed permissions on everything to 777 via chmod -R 777 *

This got things moving. I get the main page and the admin page, but everything i click fails with 404 page not found message.

There appears to be something missing or in error in the config somewhere causing it to always bring up a 404 page not found message, like these ;

from administrators on main page

The requested URL /jobberbase/jobs/administrators/ was not found on this server.

Is there some config setting somwhere which has excluded the 'page_' prefix to the created url string in the code that has been generated above? This seems to me to be my problem, or at least where the fix might be achievable.

Here is my config.env.
// 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' => 'jobsaust',
        'db_name' => 'jobberbase',
        'db_prefix' => '',
        // your site's full url
        'app_url' => 'http://localhost/jobberbase/',
        // error reporting
        'ini_error_reporting' => E_ALL,
        'ini_display_errors' => 'On',
        // environment setting 1 (use 'local' for localhost/testing OR 'onli
ne' for live, production environment)
        'location' => 'local',
        // environment setting 2 (use 'dev' together with 'local' in the pre
vious setting OR 'prod' with 'online')
        'environment' => 'dev',
        //'apache_mod_rewrite', 'iis_url_rewrite' -microsoft URL Rewrite mod
ule, 'iis_isapi_rewrite'
        'rewrite_mode' => 'apache_mod_rewrite'
);

here is my .htaccess from the jobberbase directory

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

RewriteEngine on
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>

here is my .htaccess from the admin directory

RewriteEngine on
Options +F

putypuruty

Re: The requested URL /page-unavailable/ was not found on this server.

I'm pretty sure that your problem is mod_rewrite related. Somewhere in Apache's httpd.conf file (this is the file's name on Windows, don't know about linux) you should have

Code:
AllowOverride None

but you should change it to

Code:
AllowOverride All

If this still doesn't work, maybe this will help you http://www.lavluda.com/2007/07/15/how-t … 22-debian/

hobo

Re: The requested URL /page-unavailable/ was not found on this server.

You posted your db password, make sure to change.

rondaniel58

Re: The requested URL /page-unavailable/ was not found on this server.

Hello all,

My install is fully working. Thank you to all for your posts.  So to sum up here are the config changes I needed to make to various files to make it work.

1. I was missing the mod_rewrite plugin for apache2.

2. Once I determined the apache2 username for public users, I chown'd and chgrp'd from the directory where jobberbase was installed. In my case from /var/www I executed the following commands

sudo chown -R username *
sudo chgrp -R username *

3. I edited the file /etc/apache2/sites-available/default and changed the following
<Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride none
to be
<Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all

After restarting apache2 with /etc/init.d/apache2 restart the admin functions were working but the links from the main page were not.

4. I then copied the file .htaccess from /var/www/jobberbase/admin/.htaccess to /var/www/jobberbase

The install guide for apache2 for linux users probably needs an update to include the items I mentioned at points 3 and 4 above.

Once again thanks be to all for your help.

Now i can really have a play with it an evaluate it for my project. Smiling.

firozhaneef

Re: The requested URL /page-unavailable/ was not found on this server.

Thanks a lot rondaniel58, I was also stuck up with ubuntu platform, I had spent hours to resolve the 404 page not found error, at last with the help of you i have resolved the issue.