Page 1 of 1
Solved! - Directory listing denied - cannot get to initial page after install
Posted: Fri Mar 23, 2007 10:31 pm
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.
Re: Directory listing denied - cannot get to initial page after install
Posted: Tue Mar 27, 2007 4:20 pm
by Pierre M.
I see a working site. Have you solved your issue ?
Pierre M.
Re: Directory listing denied - cannot get to initial page after install
Posted: Wed Mar 28, 2007 8:00 pm
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
Re: Directory listing denied - cannot get to initial page after install
Posted: Thu Mar 29, 2007 2:52 am
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
Re: Directory listing denied - cannot get to initial page after install
Posted: Thu Mar 29, 2007 5:10 pm
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.
Re: Directory listing denied - cannot get to initial page after install
Posted: Fri Mar 30, 2007 12:43 am
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.
Re: Directory listing denied - cannot get to initial page after install
Posted: Fri Mar 30, 2007 2:50 am
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
Re: Directory listing denied - cannot get to initial page after install
Posted: Fri Mar 30, 2007 1:02 pm
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.
Re: Directory listing denied - cannot get to initial page after install
Posted: Fri Mar 30, 2007 5:45 pm
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.
Re: Directory listing denied - cannot get to initial page after install
Posted: Fri Mar 30, 2007 11:14 pm
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
Re: Directory listing denied - cannot get to initial page after install
Posted: Fri Mar 30, 2007 11:37 pm
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
Re: Directory listing denied - cannot get to initial page after install
Posted: Sat Mar 31, 2007 1:01 am
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
Re: Directory listing denied - cannot get to initial page after install
Posted: Sat Mar 31, 2007 4:26 am
by Nullig
Glad to hear you got it running
Nullig
Re: Solved! - Directory listing denied - cannot get to initial page after instal
Posted: Wed Apr 11, 2007 4:18 pm
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
Re: Solved! - Directory listing denied - cannot get to initial page after instal
Posted: Wed Apr 11, 2007 4:28 pm
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