Error when changing the file that Apache2 loads by default

OK...here we go.I love this gallery....in fact...I dumped the menalto gallery for this one :)
My issue is that

My zenphoto is installed in the root of my directory. so when I go to "http://mysite" it loads the default index.php for zenphoto.

I created a custom page called "start.php" and thought how cool it would be to load my start.php file by default rather than the index.php. This way my photos are not the first thing to show up.

I then edited my default site file and added in the lines:

[code]<Directory />
Options FollowSymLinks
AllowOverride None
DirectoryIndex start.php
</Directory>[/code]

Ok...so now that Apache2 is told to not load index.php though start.php by default one would think my issue is resolved......

now I have more issues....when you go to "http://mysite" I get an error
Zenphoto Error: the requested object was not found. Please go back and try again.

If I type in "http://mysite/start.php" the page loads with the theme without any errors

How can I make it to where Apache2 loads the custom file I specified instead of generating the error?

Comments

  • You will have to provide some more details, and possibly a link to the site. I'm having a hard time following what you are trying to do here. What is "start.php"? Is it just a splash page? Does it somehow interface with ZP?
  • acrylian Administrator, Developer
    The correct zenphoto path for a "custom page" (one that should use your zenphoto theme) is:
    zenphoto/index.php?p=pagetitle (non mod_rewrite)
    or
    zenphoto/page/pagetitle (mod_rewrite)
    http://www.zenphoto.org/2008/05/theming-tutorial/
  • enj Member
    Acrylian....I will elaborate for you.
    I installed zenphoto into the root of my site.....
    my site is /media/disk/www
    all the zenphoto folders and files reside there. so when people go to "enj.homelinux.com" they are automatically pulling up the index.php of zenphoto. I am creating custom page though I am trying to find out if there is a way to create a custom page and force that custom page to load rather than index.php....in my case....home.php

    this is why I was in the config for apache.....changing what file loads by default in my hosts file.
    I changed it to reflect home.php though when I navigate to enj.homelinux.com I get the error Zenphoto Error: the requested object was not found. Please go back and try again.

    Is what I am trying to do at all possible? Is this something that has to be set up in the zenphoto .htaccess?
  • acrylian Administrator, Developer
    Actually I think I had unterstood what you are trying to do. That's why I posted the correct paths to "custom pages" within zenphoto themes.

    I believe nobody has tried that before since it's simply not the "normal" way zenphoto works.I just would think that you have to change the zp htaccess a little.

    May I ask why you not just remove the album loop from index.php to use it? you could have "faked" for example the index with a top level album containing subalbums on album.php, too.
  • So, you want your page to load when a user first visits your site. Is there a link on this page to the zenphoto index.php?

    Why don't you just install zenphoto in a subfolder. Then you can have your startup page called indes.php and it will load. You can link from it to the zenphoto gallery which will then be `.../subfolder/index.php`
Sign In or Register to comment.