Installed but links not working...please help

Get general support for ADP here.

Moderator: pgolovko

Installed but links not working...please help

Postby gryffyn » 08/08/2007 12:41 pm

OK - first....in order to install I could not CHMOD 777 - I had to leave all at CHMOD 755. When I CHMODd to 777 I would get an Internal Error, and the log said something like "Premature end of script headers" or some such.

Next problem....after I got finished specifying the variables for the database (wasn't sure what was required for "HOST" - so I put "localhost" since the domain name was not working for it)...and it asked me to set my Admin username/password - when the screen popped up to login, it wouldn't let me. The login screen just kept popping up and popping up endlessly. So I had to nix the .htaccess and .htpassword files.

OK - so now I am working on creating categories. The admin area is taking everything without error messages, and when I view the main user screen those categories are showing up.

But when I click on a link - I get a 404 Not Found error.

I've looked at the directory in WinSCP - and I see the subdirectories created - but for whatever reason, they are inaccessible, even though the correct address appears in the browser.

Can someone tell me what's up with this???

Here's the URL:
http://allthingsdog.dawgdazed.net/


Thanks,

RLynn
gryffyn
 
Posts: 9
Joined: 08/08/2007 12:33 pm


Postby pgolovko » 08/08/2007 6:52 pm

Did you upload .htaccess file to your main ADP directory?
__________________
Best regards,
Pavel Golovko
User avatar
pgolovko
 
Posts: 494
Joined: 03/25/2006 1:23 am
Location: Somewhere on planet Earth ....

.htaccess

Postby gryffyn » 08/09/2007 5:10 am

Yes - it's in the ADP directory. Here's the contents:

Code: Select all
# enable mod_rewrite
RewriteEngine on

RewriteRule ^demo$ demo$1 [QSA,L]

RewriteRule ^(.*)/$ index.php?path=$1 [QSA,L]
RewriteRule ^(.*)/index.html$ index.php?path=$1 [QSA,L]
RewriteRule ^/$ index.php [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?path=$1&page=$2 [QSA,L]
RewriteRule ^index.html$ index.php [QSA,L]



Could this have something to do with it being on a subdomain? The path appearing on the 404 page is /home/virtual/site141/fst/var/subdomain/allthingsdog/html/index.php

but the URL (in this instance) is http://allthingsdog.dawgdazed.net/breeders/ - and there's no "html" directory in "allthingsdog" - so the path should be ....../allthingsdog/breeders/index.php

Shouldn't it?? (I am not the most techie of people).
gryffyn
 
Posts: 9
Joined: 08/08/2007 12:33 pm

Postby iamoso » 08/09/2007 5:47 am

Your .htaccess file should look like this:
Code: Select all
# enable mod_rewrite
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.*)/$ index.php?path=$1 [QSA,L]
RewriteRule ^(.*)/index.html$ index.php?path=$1 [QSA,L]
RewriteRule ^/$ index.php [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?path=$1&page=$2 [QSA,L]
RewriteRule ^index.html$ index.php [QSA,L]
or at a very minimum this:
Code: Select all
# enable mod_rewrite
RewriteEngine on

RewriteRule ^(.*)/$ index.php?path=$1 [QSA,L]
RewriteRule ^(.*)/index.html$ index.php?path=$1 [QSA,L]
RewriteRule ^/$ index.php [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?path=$1&page=$2 [QSA,L]
RewriteRule ^index.html$ index.php [QSA,L]
In your code you have the RewriteRule ^demo$ demo$1 [QSA,L], I think you should remove that part of the code.

Also on your website... if you go to this link:
Code: Select all
http://allthingsdog.dawgdazed.net/breeders/
it gives this error:
Code: Select all
/home/virtual/site141/fst/var/subdomain/allthingsdog/html/index.php


If you go to this link:
Code: Select all
http://allthingsdog.dawgdazed.net/breeders/index.php
it gives this error:
Code: Select all
Not Found

The requested URL /breeders/index.php was not found on this server.


So verify your .htaccess first with the codes above, make sure it is uploaded into your subdomains public html folder (which I assume is /home/virtual/site141/fst/var/subdomain/allthingsdog/). From that point we can move forward with helping you.
Best Regards,

Ryan Jauregui
Laf Innovative

laf innovative
User avatar
iamoso
Site Admin
 
Posts: 395
Joined: 03/25/2006 1:23 am
Location: Stanton, CA

Postby gryffyn » 08/09/2007 5:57 am

So verify your .htaccess first with the codes above, make sure it is uploaded into your subdomains public html folder (which I assume is /home/virtual/site141/fst/var/subdomain/allthingsdog/).


Yes - that's where it is.

I will make those changes - test - and report back.

Thx!
gryffyn
 
Posts: 9
Joined: 08/08/2007 12:33 pm

woohoo - but still problems with admin password access

Postby gryffyn » 08/09/2007 6:02 am

Wahoo - that fixed the problem with getting the error from the public side.

But I still cannot sign in as Admin - so had to disable the .htaccess for that.

Here's the .htaccess file for the admin directory...

Code: Select all
AuthName "ADP Admin"
AuthType Basic
AuthUserFile /var/www/allthingsdog/admin/.htpasswd
require valid-user
gryffyn
 
Posts: 9
Joined: 08/08/2007 12:33 pm

Postby iamoso » 08/09/2007 7:57 am

Try this:
Code: Select all
AuthName "ADP Admin"
AuthType Basic
AuthUserFile /home/virtual/site141/fst/var/subdomain/allthingsdog/admin/.htpasswd
require valid-user
Best Regards,

Ryan Jauregui
Laf Innovative

laf innovative
User avatar
iamoso
Site Admin
 
Posts: 395
Joined: 03/25/2006 1:23 am
Location: Stanton, CA

Postby gryffyn » 08/09/2007 2:04 pm

that didn't do it

:(
gryffyn
 
Posts: 9
Joined: 08/08/2007 12:33 pm

Postby pgolovko » 08/09/2007 2:28 pm

What is your server specs? Linux/Windows? Apache? versions?
Also, ask your server admin if you have mod_rewrite enabled at all. If its not, then you will only be able to build static pages, and dynamic pages will be off limits to you.
__________________
Best regards,
Pavel Golovko
User avatar
pgolovko
 
Posts: 494
Joined: 03/25/2006 1:23 am
Location: Somewhere on planet Earth ....

Postby gryffyn » 08/09/2007 2:36 pm

I know I have mod_rewrite because I've used it on other things with no problem.
gryffyn
 
Posts: 9
Joined: 08/08/2007 12:33 pm

Postby iamoso » 08/09/2007 7:44 pm

How about:
AuthName "ADP Admin"
AuthType Basic
AuthUserFile ./.htpasswd
require valid-user
Best Regards,

Ryan Jauregui
Laf Innovative

laf innovative
User avatar
iamoso
Site Admin
 
Posts: 395
Joined: 03/25/2006 1:23 am
Location: Stanton, CA

Postby pgolovko » 08/10/2007 12:23 am

Do not ever remove password protection from your admin directory, as you're opening a security hole to your server!
Try to access your admin area like this: http://sub.domain.com/admin/index.php
__________________
Best regards,
Pavel Golovko
User avatar
pgolovko
 
Posts: 494
Joined: 03/25/2006 1:23 am
Location: Somewhere on planet Earth ....

Postby gryffyn » 08/10/2007 5:18 am

AuthName "ADP Admin"
AuthType Basic
AuthUserFile ./.htpasswd
require valid-user


Tried that - didn't solve it :(

Also tried it with just .htpasswd - still will not.

Try to access your admin area like this: http://sub.domain.com/admin/index.php



That's the URL I've been trying to use - I just get the pop up to login in over and over and over and over.....

Ran the install again - setting up the password once again. Still will not let me login

:cussing:
gryffyn
 
Posts: 9
Joined: 08/08/2007 12:33 pm

Postby pgolovko » 08/10/2007 7:35 am

What is your server specs? Linux/Windows? Apache? versions?
__________________
Best regards,
Pavel Golovko
User avatar
pgolovko
 
Posts: 494
Joined: 03/25/2006 1:23 am
Location: Somewhere on planet Earth ....

servers

Postby gryffyn » 08/10/2007 8:05 am

Linux - I think CentOS4

PHP4.4

Perl 5.8
gryffyn
 
Posts: 9
Joined: 08/08/2007 12:33 pm

Postby pgolovko » 08/11/2007 1:27 am

There should be a way to password protect your admin directory from within your cPanel. Have you tried that?
__________________
Best regards,
Pavel Golovko
User avatar
pgolovko
 
Posts: 494
Joined: 03/25/2006 1:23 am
Location: Somewhere on planet Earth ....

Postby gryffyn » 08/14/2007 1:44 pm

Well - it won't let me do that for a subdomain. It's only listing those files under /var/www/html - and this is installed under /var/www/subdomain

I will contact the host's support and see if they can help with that.

Thx,
gryffyn
 
Posts: 9
Joined: 08/08/2007 12:33 pm



Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron