Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Help. Getting "Index of /cpg148" instead of index.php  (Read 5953 times)

0 Members and 1 Guest are viewing this topic.

dshield

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Help. Getting "Index of /cpg148" instead of index.php
« on: June 12, 2006, 04:27:34 pm »

When I first installed  1.4.8 and pointed my browser to mydomain.com/cpg148 index.php would automatically execute and I'd get the login screen.  Then, after making further changes for the purpose of completing the install and configuration (nothing particularly having to do with this type of thing), I noticed that I no longer got the login screen but rather a page titled "Index of /cpg148" with a listing of all of the files in that folder.  I've noticed in previous projects using apache that I have had to specify "index.html" following mydomain.com/ in order to actually get that page to display.  Now, I'm experienceing the same result with index.php in the cpg148 folder.

index.php was coming up by default and now it must be explicitly specified.  What makes this happen and how can I fix it?


Thanks.

Dave.
« Last Edit: June 12, 2006, 05:38:40 pm by TranzNDance »
Logged

Nibbler

  • Guest
Re: Help. Getting "Index of /cpg148" instead of index.php
« Reply #1 on: June 12, 2006, 04:47:59 pm »

Upload a file named .htaccess containing the following code

Code: [Select]
DirectoryIndex index.php
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help. Getting "Index of /cpg148" instead of index.php
« Reply #2 on: June 12, 2006, 04:49:03 pm »

If you're on Apache: edit/create .htaccess in your webroot and enable the DirectoryIndex Directive and/or the Options Indexes directive. There are similar settings on IIS.
This is not related to your coppermine setup though, but to your webserver setup.

[edit]
Nibbler beat me to it while I still typed, with a more effective answer. Posting anyway.
[/edit]
Logged

dshield

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Help. Getting "Index of /cpg148" instead of index.php
« Reply #3 on: June 12, 2006, 05:25:09 pm »

OK guys...I've taken your advise and created a file called htaccess and placed in c:\apache\docs.  Since I'm running XP it doesn't let me name the file with the preceeding '.'  so it's just called htaccess.  I placed in htdocs as well as htdocs/cpg148 (with the code "DirectoryIndex  index.php") and I get no change in my problem.  I appreciate your help.  What should I do next?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Help. Getting "Index of /cpg148" instead of index.php
« Reply #4 on: June 12, 2006, 05:28:35 pm »

Are you self-hosting? If you are, you need to change the server settings. The .htaccess suggestion applies to people who are on shared webhost servers and don't have access to change server settings.

If your site will be available to the public, self-hosting is highly not recommended.
Logged

Nibbler

  • Guest
Re: Help. Getting "Index of /cpg148" instead of index.php
« Reply #5 on: June 12, 2006, 05:30:51 pm »

It won't work without the dot. Try searching the web for a workaround for windows users.
Logged

dshield

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Help. Getting "Index of /cpg148" instead of index.php
« Reply #6 on: June 12, 2006, 05:37:50 pm »

Yes, self-hosting.  But, I fixed it.  The cpg148 folder was read-only.  I changed that and I works.

Thanks.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help. Getting "Index of /cpg148" instead of index.php
« Reply #7 on: June 12, 2006, 10:42:51 pm »

On Windows+Apache, try
Quote
_.htaccess
Logged
Pages: [1]   Go Up
 

Page created in 0.039 seconds with 19 queries.