Deleted .htaccess in /var/www/html/gallery

y0manda

Joined: 2003-09-29
Posts: 13
Posted: Fri, 2009-07-10 23:38

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
www.Zacharen.com):

Title says most of it. I ran the config wizard to change the gallery's title from y0manda's Gallery
to Schmidt's gallery.
I reloaded the page and got a 500 error page will not display.
Read the FAQ's and accident deleted the .htaccess file in my gallery directory and not the set up.
The main page in gallery loads but when I click on a link it gets another error.
Any help on maybe creating an htaccess file I can use or another method on fixing this.
Thank You.
Michael.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-07-10 23:45

Your site appears to be working. Did you restore from backup?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Fri, 2009-07-10 23:47

No I really don't know much about gallery/ or linux

I am not sure what I should do w/o messing things up worse.
thanks for the quick responce

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Fri, 2009-07-10 23:51

All I did was log in... go to config and change the gallery's title to "schmidt's gallery" in mozilla browser.
After I saved the configs I re-visited the gallery in mozilla and I got a 500 page error .....
read the docs here and the FAQ's and it said to delete the .htaccess file well i deleted the one in the /var/www/html/gallery/.htaccess
with putty.
The page loaded up but when I click on an album i get another page error. not sure If i really am screwed at this point for deleting the htaccess fiel in the */gallery directory

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-07-10 23:54

Edit config.php and make sure it's looking at /albums instead of /gallery

I'm not getting 500 page server errors, but 404 = Not Found

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Fri, 2009-07-10 23:55

i'll try it now. thanks.

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Sat, 2009-07-11 00:00

/* Constants */
$gallery->app->galleryTitle = "Schmidt's Gallery";
$gallery->app->useIcons = "no";
$gallery->app->skinname = "bars002";
$gallery->app->uploadMode = "form";
$gallery->app->albumDir = "/var/www/html/albums";
$gallery->app->tmpDir = "/tmp";
$gallery->app->photoAlbumURL = "http://y0manda1.serveftp.net:81/gallery";
$gallery->app->albumDirURL = "http://y0manda1.serveftp.net:81/albums";
$gallery->app->movieThumbnail = "/var/www/html/gallery/images/movie.thumb.jpg";
// optional <i>mirrorSites</i> missing
$gallery->app->graphics = "NetPBM";
$gallery->app->ImPath = "/usr/X11R6/bin";
$gallery->app->pnmDir = "/usr/bin";
$gallery->app->pnmtojpeg = "pnmtojpeg";
$gallery->app->pnmcomp = "pnmcomp";
$gallery->app->autorotate = "yes";
$gallery->app->jpegImageQuality = "95";
$gallery->app->highlightJpegImageQuality = "70";
$gallery->app->thumbJpegImageQuality = "50";
// optional <i>geeklog_dir</i> missing
$gallery->app->albumTreeDepth = "1000";

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-07-11 00:02
Quote:
$gallery->app->photoAlbumURL = "http://y0manda1.serveftp.net:81/gallery"

Change that to albums
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Sat, 2009-07-11 00:03

k,

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Sat, 2009-07-11 00:06

it is taking me there, but it's not setup the way it was. more like viewing an ftp site with a web browser.
it has always been */gallery
This is strange.

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Sat, 2009-07-11 00:13

I have another gallery on this computer in a different directory and was able to view his .htaccess file.

I wonder if i can just copy and edit this and place back in my /var/www/html/gallery/ directory?

# BEGIN Gallery section
# (Automatically generated. Do not edit this section)
# Note: still under development, so format may change.
# If you edit this file, make a backup before runnng the Config. Wizard.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /john/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/([0-9]+)$ /john/view_photo.php?set_albumName=$1&index=$2 [QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$ /john/view_photo.php?set_albumName=$1&id=$2 [QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)/$ /john/$1 [R]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.\?/]+)$ /john/view_album.php?set_albumName=$1 [QSA]
</IfModule>
# END Gallery section. Add User changes below this line

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-07-11 00:20

Oh, you're right. I just looked at the lone G1 install I have running that I haven't touched for ages. Ignore my previous post ;)

As for editing .htaccess yeah, I think if you just change john to gallery (looking at my .htaccess) you should be good.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Sat, 2009-07-11 00:21

heh i must of lucked out..... I copied that above post and just changed the 'john' to 'gallery' and it worked like a charm.

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Sat, 2009-07-11 00:23

Nivekiam,
Thank you for giving me the support. I really appreciate it.......

 
y0manda

Joined: 2003-09-29
Posts: 13
Posted: Sat, 2009-07-11 00:25

BTW, for line
RewriteRule ^([^\.\?/]+)/$ /john/$1 [R]

what should I change that to?

wait heh, I think /gallery/