villalolo

Topic: Error 404... I made it!!

Hi,

its been 5 days I tried to get jobberbase working, i went through all the errors, in between nothing on screen to a bunch of errors... i finally got the first page working... what a relief.... the admin AND the front one too!!

and that was all i could get... we re talking about 5 days here!! ... no link where working... well the usual stuff...

so finally i got it running... how ?

I changed in 000-default as follow

sudo vi etc/apache2/sites-enabled/000-default

DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride All        << from None to All
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All        << from None to All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

sudo /etc/init.d/apache2 restart ...

i found the solution... there

http://httpd.apache.org/docs/2.0/howto/htaccess.html

I hope this will helps noobs like me

koshy

Re: Error 404... I made it!!

Well that change has changed a behaviour. It no more shows page not available.
But the link still does not work. Page refreshes (dropping back to the home page)
Here is the file 000-default

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

Also here is the .htaccess file from 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 all

deny from all

</files>
######################################