Solved! - Directory listing denied - cannot get to initial page after install

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
akboat

Solved! - Directory listing denied - cannot get to initial page after install

Post by akboat »

Hello,

I have recently found CMSMS - and am very excited about it.  The installation was going well and I even got a "sucess" upon completion of #5 in the installation process; however, when I go to view the page that I should "read carefully for the first time," I cannot get to it.

The first error code read "Directory Listing Denied - This virtual Directory does not allow contents to be listed."  I called my server to be sure things were straight on that end.  Now the error reads "There is no config.php file or install/install.php please correct one these errors!".  There is no install folder, as I deleted it as mentioned in the install directions.  Also, there IS a config.php page (blank, but viewable).  I can get a database connection readily through cocoamysql and see all the cms_ files that were created upon install, but have also gotten errors that read that the database connection failed. 

Is there a place to view and verify the database connection info in the CMS folder?  I have placed the whole folder in my root, with the new config.php file within.  I work primarily on a mac, with safari, dreamweaver, Mysql, phpMyAdmin-2.8.2.4 (not extremely well versed) is installed on this site.  I used the ftp install, not the shell.  Please let me know the next best course of action to get up and running.  The site is alaskacharterboat.com.  Let me know if you need any other info.

Cheers and Thanks for your help.
Last edited by akboat on Thu Apr 05, 2007 11:06 pm, edited 1 time in total.
Pierre M.

Re: Directory listing denied - cannot get to initial page after install

Post by Pierre M. »

I see a working site. Have you solved your issue ?
Pierre M.
akboat

Re: Directory listing denied - cannot get to initial page after install

Post by akboat »

Hi,

Thanks for your reply.  The original site is up and already created.  I am trying to add the cms after the fact... is this a possibility?  I need to provide the rest of the office access to the existing site.  Let me know if there is a better avenue of attack.

I reinstalled from scratch and have come up with the same issues as noted previously.  Everything looks successful until I get to step 5 - visit your cms site and it goes to http://alaskacharterboat.com/cms/ - which is where it should be, but the message was again "Directory Listing Denied - This Virtual Directory does not allow contents to be listed".  I will hold off further experiments until I hear more.  Thanks so much for your direction and help.

Cheers,

Claire
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Directory listing denied - cannot get to initial page after install

Post by Nullig »

Have you tried changing the permissions on the cms folder to 777?
Perhaps the installer can't write to the config.php file.

Nullig
Pierre M.

Re: Directory listing denied - cannot get to initial page after install

Post by Pierre M. »

Here is a simple test :
-browse a webpage you like anywhere.
-save it.
-rename it from whatever.html to index.php
-open it in a text editor.
-at the end, just before , add Hello Claire'; ?>
-create a /testfolder at your hosting place.
-upload your static page in it.
-try to browse /testfolder, /testfolder/ and /testfolder/index.php
-tell us what you see at the bottom (Hello Claire ? Directory access denied ?)

If this doesn't greet you, your PHP installation has trouble, not CMSms.

Pierre M.
akboat

Re: Directory listing denied - cannot get to initial page after install

Post by akboat »

The test came up with the directory listing denied result for /testfolder, /testfolder/, but with the appropriate "Hello Claire" when pulled up by /testfolder/index.php

Does this help?  Otherwise still stuck. 

Thanks for your help.

PS - my server doesn't have chmod 777, but I changed the appropriate file permissions to read, write, execute, and delete for my user and everyone, there is another choice to change them for aspnet - would that help?

PSS - I have again deleted the install and am now getting the previous error again "There is no config.php file or install/install.php please correct one these errors!" when I go to CMS/index.php otherwise at CMS/ I get the directory error.  Is their a manual way to direct it to the config.php file that I created, since it does exist and is located inside of the CMS/ folder.
Last edited by akboat on Fri Mar 30, 2007 1:01 am, edited 1 time in total.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Directory listing denied - cannot get to initial page after install

Post by kermit »

akboat wrote: The test came up with the directory listing denied result for /testfolder, /testfolder/, but with the appropriate "Hello Claire" when pulled up by /testfolder/index.php
you need to add "index.php" as a valid 'default' or 'index' page. you're running windows & iis so it's not as easy as just dropping a line into an htaccess file.... check your host's control panel for something like a 'default page' setting. you'll probably find entries like index.htm, index.html, or default.htm.... put index.php in that list.

i think the following link is applicable for your host:
http://www.webcontrolcenter.com/Knowled ... x?KBID=238
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Pierre M.

Re: Directory listing denied - cannot get to initial page after install

Post by Pierre M. »

Yes, this is what I supposed : a misconfig of the webserver in front of PHP and CMSms.
With Apache, for example, it is described here :
http://httpd.apache.org/docs/2.2/mod/mo ... ctoryindex
You should have :
DirectoryIndex index.html index.php
Hope this helps
Pierre M.
akboat

Re: Directory listing denied - cannot get to initial page after install

Post by akboat »

Hi,

Thanks - I thought I had set the default to index.php on the first install.  Still that was the problem to pull up the appropriate key page, but now we're back to the error of "There is no config.php file or install/install.php please correct one these errors!".  As mentioned before there is a config.php file in the main cms folder - Is there a way to manually point it to this file?  I have deleted the install folder as requested.  And when I pull up the config on its own /CMS/config.php it is blank, unless I write something in it "hello claire" and then it comes up appropriately.  Should there automatically be code for accessing the database or php in this file?

Still hoping to perservere to page 1 so that I can get started....

Thanks for your help.
Last edited by akboat on Fri Mar 30, 2007 6:01 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Directory listing denied - cannot get to initial page after install

Post by Nullig »

Have you changed the permissions on the cms directory itself?
I think you need read, write, execute and modify on a windows server.

Nullig
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Directory listing denied - cannot get to initial page after install

Post by Dee »

Nullig wrote: Have you changed the permissions on the cms directory itself?
I think you need read, write, execute and modify on a windows server.
Only read and execute for the directory is enough if a config.php is present.
The webserver should have write access to config.php though (during install).
When installing without a config.php present, write access on the cms directory is needed to be able to create the file.
akboat wrote: when I pull up the config on its own /CMS/config.php it is blank, unless I write something in it "hello claire" and then it comes up appropriately.  Should there automatically be code for accessing the database or php in this file?
config.php should be filled with configuration variables during install, but shows as an empty page when you access it with your browser.
Make sure the webserver has write access to config.php, upload the install directory and run install again. Drop all tables present in the database if you want to do a completely clean install.

Regards,
D
Last edited by Anonymous on Fri Mar 30, 2007 11:38 pm, edited 1 time in total.
akboat

Re: Directory listing denied - cannot get to initial page after install

Post by akboat »

Whahoo!

The problem was that on the windows server you can only change file permissions for folders, not files - so I had to change the whole cms file to read, write, execute for it to take effect on the config file for the install - oofta - it was a long haul, but I appreciate all the feedback, help and direction. 

I look forward to getting to know this cms more thoroughly.

Thank You!!!!

Claire
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Directory listing denied - cannot get to initial page after install

Post by Nullig »

Glad to hear you got it running

Nullig
mono

Re: Solved! - Directory listing denied - cannot get to initial page after instal

Post by mono »

I got the same problem I manually type in the link,when I apply the domain name I will have it redirecting to www.mysite.com/index.php
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Solved! - Directory listing denied - cannot get to initial page after instal

Post by Dee »

mono wrote: I got the same problem I manually type in the link,when I apply the domain name I will have it redirecting to www.mysite.com/index.php
Guess it's better to open a new thread for that (this one is marked "Solved").
You mean you get a 404 when you open yoursite/ and the index when you open yoursite/index.php?
In that case it looks like index.php is not set as a DirectoryIndex on your server (assuming it uses apache).

Regards,
D
Locked

Return to “[locked] Installation, Setup and Upgrade”