Install help please

christ8

Joined: 2010-02-19
Posts: 53
Posted: Mon, 2013-04-15 15:14

I am using desktop pc running debian wheezy server where my gallery2 is installed. I am trying to install gallery3 on the same server. I created the database named gallery3. Followed instructions and installed gallery3 succesfully. The page looks like this:
Logged in as Gallery Administrator
Logout

Search the gallery

Gallery

There aren't any photos here yet! Add some.

First Previous
No photos
Next Last

Album info

Title: Gallery
Owner: Gallery Administrator

Available RSS feeds

All new comments
Comments on Gallery
Latest photos and movies
Gallery photos and movies

Popular tags
Add Tag

Add tag to album

Powered by Gallery 3.0.6 (Rive Gauche)


There is no menu, admin pages. When I tried to click Gallery Administrater, it returned
Not Found

The requested URL /gallery3/index.php/user_profile/show/2 was not found on this server.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-04-15 16:07

http://codex.galleryproject.org/Gallery3:Installation_on_Debian
Looks to me like some CSS and JS is not being delivered properly. Hard to tell by just looking at what you posted.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
christ8

Joined: 2010-02-19
Posts: 53
Posted: Mon, 2013-04-15 16:33

Here is what I have set up in apache2:

Quote:
<VirtualHost *:80>
ServerAdmin

ServerName shumtravel.hobby-site.com
ServerAlias shumtravel.com
DocumentRoot /var/www/shumtravel/

#RedirectMatch ^/ http://shumtravel.hobby-site.com/main.php
# Set Document Root directory options
<Directory /var/www/>

#added
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/shumtravel.com/
# Set CGI-BIN directory options
<Directory /cgi-bin>
AllowOverride None
Options +ExecCGI -Multiviews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
CustomLog /var/log/apache2/shumtravel.com-access.log common
ErrorLog /var/log/apache2/shumtravel.com-error.log
</VirtualHost>

It is exactly the same as what I used in Gallery2. I use dyndns.org and port 80 on my router ehich should bring all request to /var/www/shumtravel/gallery3. This is the same set up for gallery2. I just created the database with gallery3 as name and localhost root user with password. Then I installed gallery3, and everything seems to be fine.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-04-15 19:10

Sorry I don't know anything about what you just posted.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
christ8

Joined: 2010-02-19
Posts: 53
Posted: Tue, 2013-04-16 04:27

I resolved the mystery:
1. enable rewrite in apache2
#a2enmod rewrite
reload apache2
2. edit .htaccess(in gallery3 directory) and follow instructions:

Quote:
You can use the mod_rewrite Apache module to get rid of the
# "index.php" from your Gallery 3 urls. Uncomment the block below
# inside the <IfModule> ... </IfModule> lines and then edit the
# RewriteBase line to match your Gallery 3 URL.

This is the trick. I think it should be included in the install instructions to users who run their own server (in particular debian).

Thanks.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2013-04-16 13:31

Feel free to update the docs:
http://codex.galleryproject.org/Gallery3:Installation_on_Debian
the docs are for users by users. It is also a good way to contribute back to the community.

Glad you sorted it out.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
christ8

Joined: 2010-02-19
Posts: 53
Posted: Tue, 2013-04-16 15:15

I have added a few lines to the quick start guide, since this is where most new installation would get started.