.htaccess breaking installation

I have previously installed Zenphoto but realized that when I uploaded the installation the first time, the .htaccess file didnt get uploaded because it was invisible (im on a mac) and so I didnt have it selected when I dragged the files into my localhost. Anyway, I wanted cruft-free links and found out I needed that file so I redownloaded zenphoto, found the file and uploaded it. It broke my phpinfo.php file and nothing else past the front page loads. I rename the file and everything is ok again. I removed the config file and reloaded to try to trigger the setup.php to rewrite it and fix whatever is going on, but even the setup.php is not working. Everything just tells me "No input file specified."

How do I get the .htaccess file working, how do I get my config file recreated, and how do I get my cruft-free URLs?

EDIT: I just renamed the .htaccess file and went to setup, it laoded so I reinput my database info and saved. I then put the .htaccess file back and went back to setup.php and it gave me "No input file specified." again. Anyone know what is going on here?

Comments

  • acrylian Administrator, Developer
    You could just copy the whole folder to your localhost's htdoc folder. Or use one of the many tools like OnyX to make those files visible on a mac.

    You have to enter your db data to the config file manually. Setup will only adjust your htaccess file.
  • I found and used a program to make it visible. the .htaccess file is uploaded. Also, the setup.php file does edit the config file to reflect my database name and login info, I just did that. My problem is that when the .htaccess file is present, nothing in zenphoto loads, it all gives me the error "No input file specified."

    EDIT: Just for verification that it was the installation process and not something I did, I just uploaded the whole folder to another directory. The setup.php file was redirected to from the folder, but gave me the error "No input file specified."
  • After a lot of mucking around, I figured out what the problem is. mod_rewrite just isnt there. I turned it off in the .htaccess and everything was happy again.

    How do I install mod_rewrite? I still want pretty URLs.
  • It is quite possible that the rewrite engine is not installed/configured on your installation. That is a prerequisite.
  • acrylian Administrator, Developer
    If the rewrite engine is not active or not installed at all I suggest you ask your host about it.
  • I have asked the host about it, they told me that it was installed. I turned on mod_rewrite in the admin panel while it was turned off in the .htaccess file, then turned it on in the .htaccess file and the album pages were rewritten.

    see here: www.ronquillostudios.com/bazil The album "bazil" is rewritten, but here:
    www.ronquillostudios.com/zp-core/admin.php
    www.ronquillostudios.com/zp-core/setup.php
    www.ronquillostudios.com/phpinfo.php
    All are broken. If I comment out the line I mentioned, the rewrite breaks, but the links above work again.
  • ttdttd Member
    Hi jasronq,

    I checked your domain on netcraft and it appears your site is hosted by Dreamhost. I'm having the same problem you describe with one of my Dreamhost domains (as detailed here: http://www.zenphoto.org/support/topic.php?id=3478 )

    There is an issue with zenphoto & htaccess & mod_rewrite on some Dreamhost domains. After days of trying I was unable to get cruft free url's working but am hopeful there is a fix. Until then I've disabled them so that things simply work without 404's or "No input file specified" errors.

    Just wanted to confirm that I'm in the same boat and will stay tuned for a breakthrough.
Sign In or Register to comment.