Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Directory Listing Denied - NEW user


thye

Recommended Posts

Posted

Hi,

 

As a new starter i do have a problem !

Uploaded all files to: www.xxx and when I now try to install throgh: www.xxx/catalog I get this message:

 

 

Directory Listing Denied

 

This Virtual Directory does not allow contents to be listed.

 

 

anyone who can help, please,

thye

Posted

That might be caused because the directory does not contain the index.php file. Maybe try to reupload all the files and make sure they all make it onto the server.

Matt

Posted

You probably have the automatic generation of a listing page (if there is no "index" file) shut off, which is good (don't change it). This can happen if you installed into /catalog (i.e., there is a /catalog/index.php file), which is also good. A visitor to just the domain root (http://www.yourdomain.com) would not see an index file and would get the message. The fix would be to redirect / to /catalog. In /.htaccess:

RewriteEngine On
RewriteCond  %{REQUEST_URI}  !^/catalog  [NC]
RewriteRule  ^(.*)$  /catalog/$1  [L]

would typically work (Apache servers, not IIS servers).

 

If you are sure that you are in fact requesting the directory where osC is installed, check that there is the "index.php" file there AND you are listed as the owner AND it is executable (typically 644 permissions). If there is no index.php, did you install into the wrong place? If there is an index.php, can it be run? If you use a URL of http://www.yourdomain.com/catalog/index.php (explicitly call up index.php), does it work? Does your /.htaccess or /catalog/.htaccess have a DirectoryIndex entry? If someone put one in who didn't know what they were doing, it might not be finding your index.php.

Posted

That might be caused because the directory does not contain the index.php file. Maybe try to reupload all the files and make sure they all make it onto the server.

That might be caused because the directory does not contain the index.php file. Maybe try to reupload all the files and make sure they all make it onto the server.

 

Hi and thank you for trying to help me.

I did upload the entire catalog folder and it does contain the index.php file - so can't really figure out what to do - i'm not very good at this :-)

Posted

You probably have the automatic generation of a listing page (if there is no "index" file) shut off, which is good (don't change it). This can happen if you installed into /catalog (i.e., there is a /catalog/index.php file), which is also good. A visitor to just the domain root (http://www.yourdomain.com) would not see an index file and would get the message. The fix would be to redirect / to /catalog. In /.htaccess:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/catalog [NC]
RewriteRule ^(.*)$ /catalog/$1 [L]

would typically work (Apache servers, not IIS servers).

 

If you are sure that you are in fact requesting the directory where osC is installed, check that there is the "index.php" file there AND you are listed as the owner AND it is executable (typically 644 permissions). If there is no index.php, did you install into the wrong place? If there is an index.php, can it be run? If you use a URL of http://www.yourdomain.com/catalog/index.php (explicitly call up index.php), does it work? Does your /.htaccess or /catalog/.htaccess have a DirectoryIndex entry? If someone put one in who didn't know what they were doing, it might not be finding your index.php.

You probably have the automatic generation of a listing page (if there is no "index" file) shut off, which is good (don't change it). This can happen if you installed into /catalog (i.e., there is a /catalog/index.php file), which is also good. A visitor to just the domain root (http://www.yourdomain.com) would not see an index file and would get the message. The fix would be to redirect / to /catalog. In /.htaccess:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/catalog [NC]
RewriteRule ^(.*)$ /catalog/$1 [L]

would typically work (Apache servers, not IIS servers).

 

If you are sure that you are in fact requesting the directory where osC is installed, check that there is the "index.php" file there AND you are listed as the owner AND it is executable (typically 644 permissions). If there is no index.php, did you install into the wrong place? If there is an index.php, can it be run? If you use a URL of http://www.yourdomain.com/catalog/index.php (explicitly call up index.php), does it work? Does your /.htaccess or /catalog/.htaccess have a DirectoryIndex entry? If someone put one in who didn't know what they were doing, it might not be finding your index.php.

 

The index.php is located under catalog and I can find it using my ftp - but using your suggested URL, then it dosen't work !! :-)

Posted

So, if you explicitly invoke /catalog/index.php, which you know is there and is of correct permissions (644), it doesn't work? Unless you have something strange in /.htaccess or /catalog/.htaccess, it means that your host needs to look into it (something sounds misconfigured).

Posted

Hi again,

 

Been trying to solve my issues not getting allowed to install the shop.

 

Everything is uploaded - and when I go to install through: www.xxx/catalog I get this message: DIRECTORY LISTING DENIED - This virtual directory does not allow contents to be listed.

 

I have been trying for the last couple of days - no luck, please help me if you can :-)

Thye

Posted

What exactly is your directory tree to get to index.php?

 

For example on my site it is /public_html

on my test site is is

/public_html/testsite/catalog/

Posted

Do you have any DirectoryIndex entries in any of the .htaccess file(s) processed for your site? It might be that you have a bad DirectoryIndex entry somewhere that is not looking for index.php. However, you still should be able to explicitly invoke /catalog/index.php to run the page. If you can't, is there any URL rewriting or redirection in your .htaccess file(s)? Maybe someone who didn't know what they were doing messed it up adding a bad rewrite?

 

Please list your /.htaccess file, and /catalog/.htaccess if it exists (label which is which).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...